-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbinding.gyp
36 lines (36 loc) · 1.07 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
{
'targets': [
{
'target_name': 'asherah',
'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")", "lib/", "src/"],
"cflags": ["-fexceptions", "-g", "-O3", "-std=c++17", "-fPIC", "-Wno-unknown-pragmas"],
"cflags_cc": ["-fexceptions", "-g", "-O3", "-std=c++17", "-fPIC", "-Wno-unknown-pragmas"],
"cflags!": [ "-fno-exceptions"],
"cflags_cc!": [ "-fno-exceptions" ],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_CFLAGS': [
'-fexceptions',
'-g',
'-O3',
'-std=c++17',
'-fPIC',
'-Wno-unknown-pragmas'
],
},
'defines': [
'NAPI_CPP_EXCEPTIONS',
'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS',
'NODE_ADDON_API_DISABLE_DEPRECATED',
'NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED',
'USE_SCOPED_ALLOCATE_BUFFER',
],
'sources': [
'src/asherah.cc',
'src/logging_napi.cc',
'src/logging_stderr.cc'
],
'libraries': [ '../lib/libasherah.a' ]
}
]
}