-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
30 lines (30 loc) · 1.33 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ "targets": [{
"target_name": "NativeExtension",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
},
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 1 },
},
"sources": [ "NativeExtension.cc", "functions.cc" ],
"arflags": [ "cr" ],
"cflags_cc": [ "-O3", "-static", "-fPIC","-rdynamic","-Wl,-whole-archive" ],
"cxxflags_cc": [ "-static", "-fPIC","-rdynamic","-Wl,-whole-archive" ],
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"libraries": [
"-L <!(dirname $(find /usr/lib -name libz.a | head -n1))",
"-lboost_thread", "-lpthread", "-lboost_filesystem", "-lz", "-ldl",
"-L ../upscaledb/3rdparty/streamvbyte/libstreamvbyte.la",
"-L ../upscaledb/3rdparty/murmurhash3/libmurmurhash3.la",
"-L ../upscaledb/3rdparty/simdcomp/libsimdcomp.la",
"-L ../upscaledb/3rdparty/varint/libvarint.la",
"-L ../upscaledb/3rdparty/liblzf/liblzf.la",
"-L ../upscaledb/3rdparty/for/libfor.la",
"../upscaledb/dest/lib/libupscaledb.a" ],
"include_dirs" : [ 'upscaledb/include', "<!@(node -p \"require('node-addon-api').include\")" ],
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
}]}