|
8 | 8 | "src/sync.cc", |
9 | 9 | "src/async.cc" |
10 | 10 | ], |
11 | | - "actions": [ |
12 | | - { |
13 | | - "outputs": ['libpg_query/include/pg_query.h'], |
14 | | - "inputs": [], |
15 | | - "action": ['script/buildAddon.sh'], |
16 | | - "action_name": 'prebuild_dependencies' |
17 | | - } |
18 | | - ], |
19 | 11 | 'cflags!': [ '-fno-exceptions' ], |
20 | 12 | 'cflags_cc!': [ '-fno-exceptions' ], |
21 | 13 | 'include_dirs': [ |
|
25 | 17 | 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], |
26 | 18 | 'conditions': [ |
27 | 19 | ['OS=="linux"', { |
28 | | - "libraries": [ "-L<!(pwd)/libpg_query/linux", "-lpg_query" ] |
| 20 | + "libraries": [ "-L<!(pwd)/libpg_query/linux", "-lpg_query" ], |
| 21 | + "actions": [ |
| 22 | + { |
| 23 | + "outputs": ['libpg_query/include/pg_query.h'], |
| 24 | + "inputs": [], |
| 25 | + "action": ['script/buildAddon.sh'], |
| 26 | + "action_name": 'prebuild_dependencies' |
| 27 | + } |
| 28 | + ], |
29 | 29 | }], |
30 | 30 | ['OS=="mac"', { |
31 | 31 | "libraries": [ "-L<!(pwd)/libpg_query/osx", "-lpg_query" ], |
32 | 32 | "xcode_settings": { |
33 | 33 | "CLANG_CXX_LIBRARY": "libc++", |
34 | 34 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', |
35 | 35 | 'MACOSX_DEPLOYMENT_TARGET': '10.7' |
36 | | - } |
| 36 | + }, |
| 37 | + "actions": [ |
| 38 | + { |
| 39 | + "outputs": ['libpg_query/include/pg_query.h'], |
| 40 | + "inputs": [], |
| 41 | + "action": ['script/buildAddon.sh'], |
| 42 | + "action_name": 'prebuild_dependencies' |
| 43 | + } |
| 44 | + ], |
37 | 45 | }], |
38 | 46 | ['OS=="win"', { |
| 47 | + "link_settings": { |
| 48 | + "library_dirs": [ |
| 49 | + "../libpg_query/windows" |
| 50 | + ], |
| 51 | + "libraries": [ |
| 52 | + "../libpg_query/windows/pg_query.lib" |
| 53 | + ], |
| 54 | + }, |
39 | 55 | "msvs_settings": { |
40 | 56 | "VCCLCompilerTool": { |
41 | | - "ExceptionHandling": 1 |
| 57 | + "ExceptionHandling": 0, |
| 58 | + "AdditionalOptions": ["/EHsc"] |
| 59 | + } |
| 60 | + }, |
| 61 | + "defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ], |
| 62 | + "actions":[ |
| 63 | + { |
| 64 | + "outputs": [ |
| 65 | + "" |
| 66 | + ], |
| 67 | + "inputs": [], |
| 68 | + "action": ['../script/buildAddon.bat'], |
| 69 | + "action_name": 'prebuild_dependencies' |
42 | 70 | } |
43 | | - } |
| 71 | + ] |
44 | 72 | }] |
45 | 73 | ] |
46 | 74 | } |
|
0 commit comments