|
4 | 4 | 'targets': [ |
5 | 5 | { |
6 | 6 | 'target_name': 'conpty', |
| 7 | + 'cflags!': [ '-fno-exceptions' ], |
| 8 | + 'cflags_cc!': [ '-fno-exceptions' ], |
| 9 | + 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', |
| 10 | + 'CLANG_CXX_LIBRARY': 'libc++', |
| 11 | + 'MACOSX_DEPLOYMENT_TARGET': '10.7', |
| 12 | + }, |
| 13 | + 'msvs_settings': { |
| 14 | + 'VCCLCompilerTool': { 'ExceptionHandling': 1 }, |
| 15 | + }, |
7 | 16 | 'include_dirs' : [ |
8 | | - '<!(node -e "require(\'nan\')")' |
| 17 | + '<!(node -p "require(\'node-addon-api\').include_dir")' |
9 | 18 | ], |
10 | 19 | 'sources' : [ |
11 | 20 | 'src/win/conpty.cc', |
|
17 | 26 | }, |
18 | 27 | { |
19 | 28 | 'target_name': 'conpty_console_list', |
| 29 | + 'cflags!': [ '-fno-exceptions' ], |
| 30 | + 'cflags_cc!': [ '-fno-exceptions' ], |
| 31 | + 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', |
| 32 | + 'CLANG_CXX_LIBRARY': 'libc++', |
| 33 | + 'MACOSX_DEPLOYMENT_TARGET': '10.7', |
| 34 | + }, |
| 35 | + 'msvs_settings': { |
| 36 | + 'VCCLCompilerTool': { 'ExceptionHandling': 1 }, |
| 37 | + }, |
20 | 38 | 'include_dirs' : [ |
21 | | - '<!(node -e "require(\'nan\')")' |
| 39 | + '<!(node -p "require(\'node-addon-api\').include_dir")' |
22 | 40 | ], |
23 | 41 | 'sources' : [ |
24 | 42 | 'src/win/conpty_console_list.cc' |
25 | 43 | ] |
26 | 44 | }, |
27 | 45 | { |
28 | 46 | 'target_name': 'pty', |
| 47 | + 'cflags!': [ '-fno-exceptions' ], |
| 48 | + 'cflags_cc!': [ '-fno-exceptions' ], |
| 49 | + 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', |
| 50 | + 'CLANG_CXX_LIBRARY': 'libc++', |
| 51 | + 'MACOSX_DEPLOYMENT_TARGET': '10.7', |
| 52 | + }, |
| 53 | + 'msvs_settings': { |
| 54 | + 'VCCLCompilerTool': { 'ExceptionHandling': 1 }, |
| 55 | + }, |
29 | 56 | 'include_dirs' : [ |
30 | | - '<!(node -e "require(\'nan\')")', |
| 57 | + '<!(node -p "require(\'node-addon-api\').include_dir")', |
31 | 58 | 'deps/winpty/src/include', |
32 | 59 | ], |
33 | 60 | # Disabled due to winpty |
|
48 | 75 | }, { # OS!="win" |
49 | 76 | 'targets': [{ |
50 | 77 | 'target_name': 'pty', |
| 78 | + 'cflags!': [ '-fno-exceptions' ], |
| 79 | + 'cflags_cc!': [ '-fno-exceptions' ], |
| 80 | + 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', |
| 81 | + 'CLANG_CXX_LIBRARY': 'libc++', |
| 82 | + 'MACOSX_DEPLOYMENT_TARGET': '10.7', |
| 83 | + }, |
| 84 | + 'msvs_settings': { |
| 85 | + 'VCCLCompilerTool': { 'ExceptionHandling': 1 }, |
| 86 | + }, |
51 | 87 | 'include_dirs' : [ |
52 | | - '<!(node -e "require(\'nan\')")' |
| 88 | + '<!(node -p "require(\'node-addon-api\').include_dir")' |
53 | 89 | ], |
54 | 90 | 'sources': [ |
55 | 91 | 'src/unix/pty.cc' |
|
67 | 103 | ] |
68 | 104 | }], |
69 | 105 | ['OS=="mac"', { |
| 106 | + "cflags+": ["-fvisibility=hidden"], |
70 | 107 | "xcode_settings": { |
71 | 108 | "OTHER_CPLUSPLUSFLAGS": [ |
72 | 109 | "-std=c++11", |
|
75 | 112 | "OTHER_LDFLAGS": [ |
76 | 113 | "-stdlib=libc++" |
77 | 114 | ], |
78 | | - "MACOSX_DEPLOYMENT_TARGET":"10.7" |
| 115 | + "MACOSX_DEPLOYMENT_TARGET":"10.7", |
| 116 | + "GCC_SYMBOLS_PRIVATE_EXTERN": "YES", # -fvisibility=hidden |
79 | 117 | } |
80 | 118 | }] |
81 | 119 | ] |
|
0 commit comments