-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
33 lines (33 loc) · 1.24 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
{
'targets': [
{
'target_name': 'binding',
'sources': ['binding.cc'],
'include_dirs': ["/usr/include/python3.8", "/tmp/boost_1_76_0", "<!(node -p \"require('node-addon-api').include_dir\")"],
'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exceptions'],
"cflags": ["-fPIC", "-DBOOST_ALL_NO_LIB", "-static"],
"cflags_cc": ["-fPIC", "-DBOOST_ALL_NO_LIB", "-static"],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
},
'msvs_settings': {
'VCCLCompilerTool': {'ExceptionHandling': 1},
},
"libraries": ["/tmp/cpython/libpython3.8.a", "/tmp/boost_1_76_0/stage/lib/libboost_filesystem.a", "/tmp/boost_1_76_0/stage/lib/libboost_system.a"]
}
],
'conditions': [
['OS=="mac"', {
'cflags+': ['-fvisibility=hidden'],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
}
}]
],
'dependencies': [
"<!(node -p \"require('node-addon-api').gyp\")",
]
}