|
11 | 11 | 'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way |
12 | 12 | 'python%': 'python', |
13 | 13 |
|
14 | | - 'node_shared%': 'false', |
| 14 | + 'node_shared%': 'true', |
15 | 15 | 'force_dynamic_crt%': 0, |
16 | 16 | 'node_use_v8_platform%': 'true', |
17 | 17 | 'node_use_bundled_v8%': 'true', |
18 | 18 | 'node_module_version%': '', |
| 19 | + 'mac_product_name': 'nwjs', |
19 | 20 |
|
20 | 21 | 'node_tag%': '', |
21 | 22 | 'uv_library%': 'static_library', |
|
28 | 29 | # Enable disassembler for `--print-code` v8 options |
29 | 30 | 'v8_enable_disassembler': 1, |
30 | 31 |
|
31 | | - # Don't bake anything extra into the snapshot. |
32 | | - 'v8_use_external_startup_data%': 0, |
33 | | - |
| 32 | + 'v8_use_external_startup_data': 1, |
| 33 | + 'v8_enable_i18n_support%': 1, |
| 34 | + #'icu_use_data_file_flag%': 1, |
| 35 | + 'win_fastlink': 0, |
34 | 36 |
|
35 | 37 | # Don't use ICU data file (icudtl.dat) from V8, we use our own. |
36 | 38 | 'icu_use_data_file_flag%': 0, |
|
42 | 44 | }, { |
43 | 45 | 'os_posix': 1, |
44 | 46 | 'v8_postmortem_support%': 'true', |
| 47 | + 'clang_dir': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-build/Release+Asserts', |
45 | 48 | }], |
46 | 49 | ['GENERATOR == "ninja" or OS== "mac"', { |
47 | 50 | 'OBJ_DIR': '<(PRODUCT_DIR)/obj', |
48 | | - 'V8_BASE': '<(PRODUCT_DIR)/libv8_base.a', |
| 51 | + #'V8_BASE': '<(PRODUCT_DIR)/libv8_base.a', |
49 | 52 | }, { |
50 | 53 | 'OBJ_DIR': '<(PRODUCT_DIR)/obj.target', |
51 | 54 | 'V8_BASE': '<(PRODUCT_DIR)/obj.target/deps/v8/src/libv8_base.a', |
|
63 | 66 | ], |
64 | 67 | }, |
65 | 68 |
|
| 69 | + 'conditions': [ |
| 70 | + [ 'clang==1 and OS != "mac"', { |
| 71 | + 'make_global_settings': [ |
| 72 | + ['CC', '<(clang_dir)/bin/clang'], |
| 73 | + ['CXX', '<(clang_dir)/bin/clang++'], |
| 74 | + ['CC.host', '$(CC)'], |
| 75 | + ['CXX.host', '$(CXX)'], |
| 76 | + ], |
| 77 | + }], |
| 78 | + ], |
66 | 79 | 'target_defaults': { |
67 | 80 | 'default_configuration': 'Release', |
68 | 81 | 'variables': { |
|
79 | 92 | ], |
80 | 93 | }, |
81 | 94 | 'configurations': { |
82 | | - 'Debug': { |
| 95 | + 'Common_Base': { |
| 96 | + 'abstract': 1, |
| 97 | + 'msvs_settings':{ |
| 98 | + 'VCCLCompilerTool': { |
| 99 | + 'AdditionalOptions': [ |
| 100 | + '/bigobj', |
| 101 | + # Tell the compiler to crash on failures. This is undocumented |
| 102 | + # and unsupported but very handy. |
| 103 | + '/d2FastFail', |
| 104 | + ], |
| 105 | + }, |
| 106 | + 'VCLinkerTool': { |
| 107 | + # Add the default import libs. |
| 108 | + 'AdditionalDependencies': [ |
| 109 | + 'kernel32.lib', |
| 110 | + 'gdi32.lib', |
| 111 | + 'winspool.lib', |
| 112 | + 'comdlg32.lib', |
| 113 | + 'advapi32.lib', |
| 114 | + 'shell32.lib', |
| 115 | + 'ole32.lib', |
| 116 | + 'oleaut32.lib', |
| 117 | + 'user32.lib', |
| 118 | + 'uuid.lib', |
| 119 | + 'odbc32.lib', |
| 120 | + 'odbccp32.lib', |
| 121 | + 'delayimp.lib', |
| 122 | + 'credui.lib', |
| 123 | + 'dbghelp.lib', |
| 124 | + 'shlwapi.lib', |
| 125 | + 'winmm.lib', |
| 126 | + ], |
| 127 | + 'AdditionalOptions': [ |
| 128 | + # Suggested by Microsoft Devrel to avoid |
| 129 | + # LINK : fatal error LNK1248: image size (80000000) exceeds maximum allowable size (80000000) |
| 130 | + # which started happening more regularly after VS2013 Update 4. |
| 131 | + # Needs to be a bit lower for VS2015, or else errors out. |
| 132 | + '/maxilksize:0x7ff00000', |
| 133 | + # Tell the linker to crash on failures. |
| 134 | + '/fastfail', |
| 135 | + ], |
| 136 | + }, |
| 137 | + }, |
| 138 | + 'conditions': [ |
| 139 | + ['OS=="win" and win_fastlink==1 and MSVS_VERSION != "2013"', { |
| 140 | + 'msvs_settings': { |
| 141 | + 'VCLinkerTool': { |
| 142 | + # /PROFILE is incompatible with /debug:fastlink |
| 143 | + 'Profile': 'false', |
| 144 | + 'AdditionalOptions': [ |
| 145 | + # Tell VS 2015+ to create a PDB that references debug |
| 146 | + # information in .obj and .lib files instead of copying |
| 147 | + # it all. |
| 148 | + '/DEBUG:FASTLINK', |
| 149 | + ], |
| 150 | + }, |
| 151 | + }, |
| 152 | + }], |
| 153 | + ['OS=="win" and MSVS_VERSION == "2015"', { |
| 154 | + 'msvs_settings': { |
| 155 | + 'VCCLCompilerTool': { |
| 156 | + 'AdditionalOptions': [ |
| 157 | + # Work around crbug.com/526851, bug in VS 2015 RTM compiler. |
| 158 | + '/Zc:sizedDealloc-', |
| 159 | + # Disable thread-safe statics to avoid overhead and because |
| 160 | + # they are disabled on other platforms. See crbug.com/587210 |
| 161 | + # and -fno-threadsafe-statics. |
| 162 | + '/Zc:threadSafeInit-', |
| 163 | + ], |
| 164 | + }, |
| 165 | + }, |
| 166 | + }], |
| 167 | + ], |
| 168 | + }, |
| 169 | + 'Debug_Base': { |
| 170 | + 'abstract': 1, |
83 | 171 | 'variables': { |
84 | 172 | 'v8_enable_handle_zapping': 1, |
85 | 173 | }, |
|
114 | 202 | 'GCC_OPTIMIZATION_LEVEL': '0', # stop gyp from defaulting to -Os |
115 | 203 | }, |
116 | 204 | }, |
117 | | - 'Release': { |
| 205 | + 'Release_Base': { |
| 206 | + 'abstract': 1, |
118 | 207 | 'variables': { |
119 | 208 | 'v8_enable_handle_zapping': 0, |
120 | 209 | }, |
|
162 | 251 | 'LinkIncremental': 1, # disable incremental linking |
163 | 252 | }, |
164 | 253 | }, |
165 | | - } |
| 254 | + }, |
| 255 | + 'Debug': { |
| 256 | + 'inherit_from': ['Common_Base', 'Debug_Base'], |
| 257 | + }, |
| 258 | + 'Release': { |
| 259 | + 'inherit_from': ['Common_Base', 'Release_Base'], |
| 260 | + }, |
| 261 | + 'conditions': [ |
| 262 | + [ 'OS=="win"', { |
| 263 | + 'Debug_x64': { 'inherit_from': ['Debug'] }, |
| 264 | + 'Release_x64': { 'inherit_from': ['Release'], }, |
| 265 | + }], |
| 266 | + ], |
166 | 267 | }, |
167 | 268 | # Forcibly disable -Werror. We support a wide range of compilers, it's |
168 | 269 | # simply not feasible to squelch all warnings, never mind that the |
|
208 | 309 | 'SuppressStartupBanner': 'true', |
209 | 310 | }, |
210 | 311 | }, |
211 | | - 'msvs_disabled_warnings': [4351, 4355, 4800], |
| 312 | + 'msvs_disabled_warnings': [4351, 4355, 4800, 4595], |
212 | 313 | 'conditions': [ |
213 | 314 | ['asan == 1 and OS != "mac"', { |
214 | 315 | 'cflags+': [ |
|
249 | 350 | '_CRT_NONSTDC_NO_DEPRECATE', |
250 | 351 | # Make sure the STL doesn't try to use exceptions |
251 | 352 | '_HAS_EXCEPTIONS=0', |
252 | | - 'BUILDING_V8_SHARED=1', |
| 353 | + #'BUILDING_V8_SHARED=1', |
253 | 354 | 'BUILDING_UV_SHARED=1', |
254 | 355 | ], |
255 | 356 | }], |
256 | 357 | [ 'OS in "linux freebsd openbsd solaris aix"', { |
257 | | - 'cflags': [ '-pthread', ], |
258 | | - 'ldflags': [ '-pthread' ], |
| 358 | + 'cflags': [ '-pthread'], |
| 359 | + 'ldflags': [ '-pthread'], |
259 | 360 | }], |
260 | 361 | [ 'OS in "linux freebsd openbsd solaris android aix"', { |
261 | 362 | 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ], |
|
0 commit comments