node/node-addon-api/except.gypi
raw| 1 | { |
| 2 | 'defines': [ 'NAPI_CPP_EXCEPTIONS' ], |
| 3 | 'cflags!': [ '-fno-exceptions' ], |
| 4 | 'cflags_cc!': [ '-fno-exceptions' ], |
| 5 | 'conditions': [ |
| 6 | ["OS=='win'", { |
| 7 | "defines": [ |
| 8 | "_HAS_EXCEPTIONS=1" |
| 9 | ], |
| 10 | "msvs_settings": { |
| 11 | "VCCLCompilerTool": { |
| 12 | "ExceptionHandling": 1, |
| 13 | 'EnablePREfast': 'true', |
| 14 | }, |
| 15 | }, |
| 16 | }], |
| 17 | ["OS=='mac'", { |
| 18 | 'xcode_settings': { |
| 19 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', |
| 20 | 'CLANG_CXX_LIBRARY': 'libc++', |
| 21 | 'MACOSX_DEPLOYMENT_TARGET': '10.7', |
| 22 | }, |
| 23 | }], |
| 24 | ], |
| 25 | } |