nomyo-js/native/binding.gyp

29 lines
633 B
Text
Raw Normal View History

{
"targets": [{
"target_name": "nomyo_native",
"sources": ["src/mlock.cc"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
"conditions": [
["OS=='linux'", {
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"]
}],
["OS=='mac'", {
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
}
}],
["OS=='win'", {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1
}
}
}]
]
}]
}