aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/node-addon-api/except.gypi
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--node_modules/node-addon-api/except.gypi25
1 files changed, 25 insertions, 0 deletions
diff --git a/node_modules/node-addon-api/except.gypi b/node_modules/node-addon-api/except.gypi
new file mode 100644
index 0000000..e2fb2c5
--- /dev/null
+++ b/node_modules/node-addon-api/except.gypi
@@ -0,0 +1,25 @@
+{
+ 'defines': [ 'NAPI_CPP_EXCEPTIONS' ],
+ 'cflags!': [ '-fno-exceptions' ],
+ 'cflags_cc!': [ '-fno-exceptions' ],
+ 'conditions': [
+ ["OS=='win'", {
+ "defines": [
+ "_HAS_EXCEPTIONS=1"
+ ],
+ "msvs_settings": {
+ "VCCLCompilerTool": {
+ "ExceptionHandling": 1,
+ 'EnablePREfast': 'true',
+ },
+ },
+ }],
+ ["OS=='mac'", {
+ 'xcode_settings': {
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
+ 'CLANG_CXX_LIBRARY': 'libc++',
+ 'MACOSX_DEPLOYMENT_TARGET': '10.7',
+ },
+ }],
+ ],
+}