| 1 |
{ |
| 2 |
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ], |
| 3 |
'cflags': [ '-fno-exceptions' ], |
| 4 |
'cflags_cc': [ '-fno-exceptions' ], |
| 5 |
'conditions': [ |
| 6 |
["OS=='win'", { |
| 7 |
# _HAS_EXCEPTIONS is already defined and set to 0 in common.gypi |
| 8 |
#"defines": [ |
| 9 |
# "_HAS_EXCEPTIONS=0" |
| 10 |
#], |
| 11 |
"msvs_settings": { |
| 12 |
"VCCLCompilerTool": { |
| 13 |
'ExceptionHandling': 0, |
| 14 |
'EnablePREfast': 'true', |
| 15 |
}, |
| 16 |
}, |
| 17 |
}], |
| 18 |
["OS=='mac'", { |
| 19 |
'xcode_settings': { |
| 20 |
'CLANG_CXX_LIBRARY': 'libc++', |
| 21 |
'MACOSX_DEPLOYMENT_TARGET': '10.7', |
| 22 |
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', |
| 23 |
}, |
| 24 |
}], |
| 25 |
], |
| 26 |
} |