-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
43 lines (42 loc) · 1.03 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
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"targets": [{
"target_name": "itemsjs_addon",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": ["-pthread", "-O3", "-fno-exceptions", "-std=gnu++0x", "-std=gnu++1y"],
"cflags_cc+": ["-pthread", "-O3", "-std=c++17"],
"sources": [
"cpp/main.cpp",
"cpp/itemsjs.cpp",
"cpp/simdjson.cpp"
],
'include_dirs': [
"<!@(node -p \"require('node-addon-api').include\")"
],
'libraries': [
"<!(node -p \"require('./src/binding').liblmdb()\")"
],
"xcode_settings": {
"OTHER_CFLAGS": ["-std=c++17"],
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
},
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/std:c++17"]
}
},
'dependencies': [
"<!(node -p \"require('node-addon-api').gyp\")"
],
'defines': [],
'conditions': [
['OS=="linux"', {
'libraries': [
],
}],
['OS=="win"', {
'defines': [
],
}]
]
}]
}