From 55a4f1fc869e41aca748c63d3018f0448b1606e0 Mon Sep 17 00:00:00 2001 From: pack Date: Sun, 9 Aug 2026 10:37:07 +0000 Subject: first commit --- node_modules/node-addon-api/except.gypi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 node_modules/node-addon-api/except.gypi (limited to 'node_modules/node-addon-api/except.gypi') 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', + }, + }], + ], +} -- cgit v1.2.3