-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbinding.gyp
34 lines (33 loc) · 889 Bytes
/
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
{
'targets': [{
'target_name': 'abletonlink',
'sources': [
'src/napi-abletonlink.cc',
],
'include_dirs': [
"<!@(node -p \"require('node-addon-api').include\")",
'<(module_root_dir)/libs/link/include',
'<(module_root_dir)/libs/link/modules/asio-standalone/asio/include'
],
'cflags_cc!': ['-std=c++11'],
'defines': ['NAPI_ENABLE_CPP_EXCEPTIONS'],
'conditions': [
['OS=="mac"', {
'defines': ['LINK_PLATFORM_MACOSX=1'],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11'
}
}],
['OS=="linux"', {
'defines': ['LINK_PLATFORM_LINUX=1'],
'cflags_cc': ['-fexceptions']
}],
['OS=="win"', {
'defines': ['LINK_PLATFORM_WINDOWS=1', '_WIN32_WINNT=0x0501','NAPI_DISABLE_CPP_EXCEPTIONS'],
'defines!': ['_HAS_EXCEPTIONS=0'],
}],
],
}],
}