|
6 | 6 | 'node_use_dtrace%': 'false', |
7 | 7 | 'node_use_etw%': 'false', |
8 | 8 | 'node_no_browser_globals%': 'false', |
9 | | - 'node_code_cache_path%': '', |
10 | 9 | 'node_use_v8_platform%': 'true', |
11 | 10 | 'node_use_bundled_v8%': 'true', |
12 | 11 | 'node_shared%': 'false', |
|
224 | 223 | 'deps/acorn/acorn/dist/acorn.js', |
225 | 224 | 'deps/acorn/acorn-walk/dist/walk.js', |
226 | 225 | ], |
| 226 | + 'mkcodecache_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)', |
227 | 227 | 'conditions': [ |
228 | 228 | [ 'node_shared=="true"', { |
229 | 229 | 'node_target_type%': 'shared_library', |
|
280 | 280 | { |
281 | 281 | 'target_name': '<(node_core_target_name)', |
282 | 282 | 'type': 'executable', |
283 | | - 'sources': [ |
284 | | - 'src/node_main.cc' |
| 283 | + |
| 284 | + 'defines': [ |
| 285 | + 'NODE_WANT_INTERNALS=1', |
285 | 286 | ], |
| 287 | + |
286 | 288 | 'includes': [ |
287 | 289 | 'node.gypi' |
288 | 290 | ], |
| 291 | + |
289 | 292 | 'include_dirs': [ |
290 | 293 | 'src', |
291 | 294 | 'deps/v8/include' |
292 | 295 | ], |
| 296 | + |
| 297 | + 'sources': [ |
| 298 | + 'src/node_main.cc' |
| 299 | + ], |
| 300 | + |
293 | 301 | 'dependencies': [ 'deps/histogram/histogram.gyp:histogram' ], |
294 | 302 |
|
295 | 303 | 'msvs_settings': { |
|
402 | 410 | 'LinkIncremental': 2 # enable incremental linking |
403 | 411 | }, |
404 | 412 | }, |
405 | | - }] |
| 413 | + }], |
| 414 | + ['want_separate_host_toolset==0', { |
| 415 | + 'dependencies': [ |
| 416 | + 'mkcodecache', |
| 417 | + ], |
| 418 | + 'actions': [ |
| 419 | + { |
| 420 | + 'action_name': 'run_mkcodecache', |
| 421 | + 'process_outputs_as_sources': 1, |
| 422 | + 'inputs': [ |
| 423 | + '<(mkcodecache_exec)', |
| 424 | + ], |
| 425 | + 'outputs': [ |
| 426 | + '<(SHARED_INTERMEDIATE_DIR)/node_code_cache.cc', |
| 427 | + ], |
| 428 | + 'action': [ |
| 429 | + '<@(_inputs)', |
| 430 | + '<@(_outputs)', |
| 431 | + ], |
| 432 | + }, |
| 433 | + ], |
| 434 | + }, { |
| 435 | + 'sources': [ |
| 436 | + 'src/node_code_cache_stub.cc' |
| 437 | + ], |
| 438 | + }], |
406 | 439 | ], |
407 | 440 | }, # node_core_target_name |
408 | 441 | { |
|
615 | 648 | 'msvs_disabled_warnings!': [4244], |
616 | 649 |
|
617 | 650 | 'conditions': [ |
618 | | - [ 'node_code_cache_path!=""', { |
619 | | - 'sources': [ '<(node_code_cache_path)' ] |
620 | | - }, { |
621 | | - 'sources': [ 'src/node_code_cache_stub.cc' ] |
622 | | - }], |
623 | 651 | [ 'node_shared=="true" and node_module_version!="" and OS!="win"', { |
624 | 652 | 'product_extension': '<(shlib_suffix)', |
625 | 653 | 'xcode_settings': { |
|
1047 | 1075 | 'defines': [ 'NODE_WANT_INTERNALS=1' ], |
1048 | 1076 |
|
1049 | 1077 | 'sources': [ |
| 1078 | + 'src/node_code_cache_stub.cc', |
1050 | 1079 | 'test/cctest/node_test_fixture.cc', |
1051 | 1080 | 'test/cctest/test_aliased_buffer.cc', |
1052 | 1081 | 'test/cctest/test_base64.cc', |
|
1075 | 1104 | 'HAVE_INSPECTOR=1', |
1076 | 1105 | ], |
1077 | 1106 | }, { |
1078 | | - 'defines': [ 'HAVE_INSPECTOR=0' ] |
| 1107 | + 'defines': [ |
| 1108 | + 'HAVE_INSPECTOR=0', |
| 1109 | + ] |
1079 | 1110 | }], |
1080 | 1111 | ['OS=="solaris"', { |
1081 | 1112 | 'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ] |
|
1130 | 1161 | 'deps/uv/include', |
1131 | 1162 | ], |
1132 | 1163 |
|
1133 | | - 'defines': [ 'NODE_WANT_INTERNALS=1' ], |
1134 | | - |
| 1164 | + 'defines': [ |
| 1165 | + 'NODE_WANT_INTERNALS=1' |
| 1166 | + ], |
1135 | 1167 | 'sources': [ |
| 1168 | + 'src/node_code_cache_stub.cc', |
1136 | 1169 | 'tools/code_cache/mkcodecache.cc', |
1137 | | - 'tools/code_cache/cache_builder.cc' |
| 1170 | + 'tools/code_cache/cache_builder.cc', |
| 1171 | + 'tools/code_cache/cache_builder.h', |
1138 | 1172 | ], |
1139 | 1173 |
|
1140 | 1174 | 'conditions': [ |
|
1155 | 1189 | ], |
1156 | 1190 | }], |
1157 | 1191 | ], |
1158 | | - }, # cache_builder |
1159 | | - ], # end targets |
| 1192 | + }, # mkcodecache |
| 1193 | + ], # end targets |
1160 | 1194 |
|
1161 | 1195 | 'conditions': [ |
1162 | | - [ 'OS=="aix" and node_shared=="true"', { |
| 1196 | + ['OS=="aix" and node_shared=="true"', { |
1163 | 1197 | 'targets': [ |
1164 | 1198 | { |
1165 | 1199 | 'target_name': 'node_aix_shared', |
1166 | 1200 | 'type': 'shared_library', |
1167 | 1201 | 'product_name': '<(node_core_target_name)', |
1168 | | - 'ldflags': [ '--shared' ], |
| 1202 | + 'ldflags': ['--shared'], |
1169 | 1203 | 'product_extension': '<(shlib_suffix)', |
1170 | 1204 | 'includes': [ |
1171 | 1205 | 'node.gypi' |
1172 | 1206 | ], |
1173 | | - 'dependencies': [ '<(node_lib_target_name)' ], |
| 1207 | + 'dependencies': ['<(node_lib_target_name)'], |
1174 | 1208 | 'include_dirs': [ |
1175 | 1209 | 'src', |
1176 | 1210 | 'deps/v8/include', |
|
0 commit comments