|
7 | 7 | "targets": [ |
8 | 8 | { |
9 | 9 | "target_name": "<(module_name)", |
10 | | - "include_dirs": ["<!(node -e \"require('nan')\")"], |
| 10 | + "cflags!": [ "-fno-exceptions" ], |
| 11 | + "cflags_cc!": [ "-fno-exceptions" ], |
| 12 | + "xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", |
| 13 | + "CLANG_CXX_LIBRARY": "libc++", |
| 14 | + "MACOSX_DEPLOYMENT_TARGET": "10.7", |
| 15 | + }, |
| 16 | + "msvs_settings": { |
| 17 | + "VCCLCompilerTool": { "ExceptionHandling": 1 }, |
| 18 | + }, |
| 19 | + "include_dirs": [ |
| 20 | + "<!@(node -p \"require('node-addon-api').include\")","<!(node -e \"require('nan')\")"], |
11 | 21 | "conditions": [ |
12 | 22 | ["sqlite != 'internal'", { |
13 | | - "include_dirs": [ "<(sqlite)/include" ], |
| 23 | + "include_dirs": [ |
| 24 | + "<!@(node -p \"require('node-addon-api').include\")", "<(sqlite)/include" ], |
14 | 25 | "libraries": [ |
15 | 26 | "-l<(sqlite_libname)" |
16 | 27 | ], |
|
26 | 37 | }, |
27 | 38 | { |
28 | 39 | "dependencies": [ |
| 40 | + "<!(node -p 'require(\"node-addon-api\").gyp')", |
29 | 41 | "deps/sqlite3.gyp:sqlite3" |
30 | 42 | ] |
31 | 43 | } |
|
40 | 52 | }, |
41 | 53 | { |
42 | 54 | "target_name": "action_after_build", |
| 55 | + "cflags!": [ "-fno-exceptions" ], |
| 56 | + "cflags_cc!": [ "-fno-exceptions" ], |
| 57 | + "xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", |
| 58 | + "CLANG_CXX_LIBRARY": "libc++", |
| 59 | + "MACOSX_DEPLOYMENT_TARGET": "10.7", |
| 60 | + }, |
| 61 | + "msvs_settings": { |
| 62 | + "VCCLCompilerTool": { "ExceptionHandling": 1 }, |
| 63 | + }, |
43 | 64 | "type": "none", |
44 | | - "dependencies": [ "<(module_name)" ], |
| 65 | + "dependencies": [ |
| 66 | + "<!(node -p 'require(\"node-addon-api\").gyp')", "<(module_name)" ], |
45 | 67 | "copies": [ |
46 | 68 | { |
47 | 69 | "files": [ "<(PRODUCT_DIR)/<(module_name).node" ], |
|
0 commit comments