-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
41 lines (41 loc) · 1.29 KB
/
binding.gyp
File metadata and controls
41 lines (41 loc) · 1.29 KB
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
{
"targets": [
{
"target_name": "color-quant",
"type": "static_library",
"sources": [
"./color-quant/src/colorquant.cpp",
"./color-quant/src/pix.cpp",
"./color-quant/src/vbox.cpp"
]
},
{
"target_name": "cquant",
"dependencies": [
"color-quant",
"<!(node -p \"require('node-addon-api').gyp\")"
],
"sources":[
"./src/addon.cc",
"./src/async.cc"
],
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions", ],
"include_dirs":[
"color-quant/src",
"<!@(node -p \"require('node-addon-api').include\")"
],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS", ],
"conditions":[
['OS=="mac"', {
'cflags+': ['-fvisibility=hidden'],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_CXX_LANGUAGE_STANDARD': 'c++17',
}
}]
]
}
]
}