32 lines
801 B
Python
32 lines
801 B
Python
{
|
|
"targets": [
|
|
{
|
|
"target_name": "addon",
|
|
"sources": [ "src/addon.cc" ],
|
|
"include_dirs": ["<!(node -p \"require('node-addon-api').include_dir\")"],
|
|
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
|
|
"cflags!": [ "-fno-exceptions" ],
|
|
"cflags_cc!": [ "-fno-exceptions" ],
|
|
"conditions": [
|
|
["OS=='win'", {
|
|
"defines": [
|
|
"_HAS_EXCEPTIONS=1"
|
|
],
|
|
"msvs_settings": {
|
|
"VCCLCompilerTool": {
|
|
"ExceptionHandling": 1
|
|
},
|
|
},
|
|
}],
|
|
["OS=='mac'", {
|
|
"cflags+": [ "-fvisibility=hidden" ],
|
|
"xcode_settings": {
|
|
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
|
|
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES"
|
|
}
|
|
}]
|
|
]
|
|
}
|
|
]
|
|
}
|