|
55 | 55 | 'deps/undici/undici.js',
|
56 | 56 | ],
|
57 | 57 | 'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)',
|
58 |
| - 'mkcodecache_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)', |
59 | 58 | 'conditions': [
|
60 | 59 | ['GENERATOR == "ninja"', {
|
61 | 60 | 'node_text_start_object_path': 'src/large_pages/node_text_start.node_text_start.o'
|
|
304 | 303 | },
|
305 | 304 | },
|
306 | 305 | }],
|
307 |
| - ['node_use_node_code_cache=="true"', { |
308 |
| - 'dependencies': [ |
309 |
| - 'mkcodecache', |
310 |
| - ], |
311 |
| - 'actions': [ |
312 |
| - { |
313 |
| - 'action_name': 'run_mkcodecache', |
314 |
| - 'process_outputs_as_sources': 1, |
315 |
| - 'inputs': [ |
316 |
| - '<(mkcodecache_exec)', |
317 |
| - ], |
318 |
| - 'outputs': [ |
319 |
| - '<(SHARED_INTERMEDIATE_DIR)/node_code_cache.cc', |
320 |
| - ], |
321 |
| - 'action': [ |
322 |
| - '<@(_inputs)', |
323 |
| - '<@(_outputs)', |
324 |
| - ], |
325 |
| - }, |
326 |
| - ], |
327 |
| - }, { |
328 |
| - 'sources': [ |
329 |
| - 'src/node_code_cache_stub.cc' |
330 |
| - ], |
331 |
| - }], |
332 |
| - ['node_use_node_snapshot=="true"', { |
| 306 | + ['node_use_node_snapshot=="true"', { |
333 | 307 | 'dependencies': [
|
334 | 308 | 'node_mksnapshot',
|
335 | 309 | ],
|
|
735 | 709 | [ 'node_shared=="true"', {
|
736 | 710 | 'sources': [
|
737 | 711 | 'src/node_snapshot_stub.cc',
|
738 |
| - 'src/node_code_cache_stub.cc', |
739 | 712 | ]
|
740 | 713 | }],
|
741 | 714 | [ 'node_shared=="true" and node_module_version!="" and OS!="win"', {
|
|
745 | 718 | '@rpath/lib<(node_core_target_name).<(shlib_suffix)'
|
746 | 719 | },
|
747 | 720 | }],
|
| 721 | + [ 'node_use_node_code_cache=="true"', { |
| 722 | + 'defines': [ |
| 723 | + 'NODE_USE_NODE_CODE_CACHE=1', |
| 724 | + ], |
| 725 | + }], |
748 | 726 | ['node_shared=="true" and OS=="aix"', {
|
749 | 727 | 'product_name': 'node_base',
|
750 | 728 | }],
|
|
1145 | 1123 | ],
|
1146 | 1124 | 'sources': [
|
1147 | 1125 | 'src/node_snapshot_stub.cc',
|
1148 |
| - 'src/node_code_cache_stub.cc', |
1149 | 1126 | 'test/fuzzers/fuzz_url.cc',
|
1150 | 1127 | ],
|
1151 | 1128 | 'conditions': [
|
|
1188 | 1165 | ],
|
1189 | 1166 | 'sources': [
|
1190 | 1167 | 'src/node_snapshot_stub.cc',
|
1191 |
| - 'src/node_code_cache_stub.cc', |
1192 | 1168 | 'test/fuzzers/fuzz_env.cc',
|
1193 | 1169 | ],
|
1194 | 1170 | 'conditions': [
|
|
1238 | 1214 |
|
1239 | 1215 | 'sources': [
|
1240 | 1216 | 'src/node_snapshot_stub.cc',
|
1241 |
| - 'src/node_code_cache_stub.cc', |
1242 | 1217 | 'test/cctest/node_test_fixture.cc',
|
1243 | 1218 | 'test/cctest/node_test_fixture.h',
|
1244 | 1219 | 'test/cctest/test_aliased_buffer.cc',
|
|
1331 | 1306 |
|
1332 | 1307 | 'sources': [
|
1333 | 1308 | 'src/node_snapshot_stub.cc',
|
1334 |
| - 'src/node_code_cache_stub.cc', |
1335 | 1309 | 'test/embedding/embedtest.cc',
|
1336 | 1310 | ],
|
1337 | 1311 |
|
|
1375 | 1349 | }],
|
1376 | 1350 | ]
|
1377 | 1351 | }, # overlapped-checker
|
1378 |
| - |
1379 |
| - # TODO(joyeecheung): do not depend on node_lib, |
1380 |
| - # instead create a smaller static library node_lib_base that does |
1381 |
| - # just enough for node_native_module.cc and the cache builder to |
1382 |
| - # compile without compiling the generated code cache C++ file. |
1383 |
| - # So generate_code_cache -> mkcodecache -> node_lib_base, |
1384 |
| - # node_lib -> node_lib_base & generate_code_cache |
1385 |
| - { |
1386 |
| - 'target_name': 'mkcodecache', |
1387 |
| - 'type': 'executable', |
1388 |
| - |
1389 |
| - 'dependencies': [ |
1390 |
| - '<(node_lib_target_name)', |
1391 |
| - 'deps/histogram/histogram.gyp:histogram', |
1392 |
| - 'deps/uvwasi/uvwasi.gyp:uvwasi', |
1393 |
| - ], |
1394 |
| - |
1395 |
| - 'includes': [ |
1396 |
| - 'node.gypi' |
1397 |
| - ], |
1398 |
| - |
1399 |
| - 'include_dirs': [ |
1400 |
| - 'src', |
1401 |
| - 'tools/msvs/genfiles', |
1402 |
| - 'deps/v8/include', |
1403 |
| - 'deps/cares/include', |
1404 |
| - 'deps/uv/include', |
1405 |
| - 'deps/uvwasi/include', |
1406 |
| - ], |
1407 |
| - |
1408 |
| - 'defines': [ |
1409 |
| - 'NODE_WANT_INTERNALS=1' |
1410 |
| - ], |
1411 |
| - 'sources': [ |
1412 |
| - 'src/node_snapshot_stub.cc', |
1413 |
| - 'src/node_code_cache_stub.cc', |
1414 |
| - 'tools/code_cache/mkcodecache.cc', |
1415 |
| - 'tools/code_cache/cache_builder.cc', |
1416 |
| - 'tools/code_cache/cache_builder.h', |
1417 |
| - ], |
1418 |
| - |
1419 |
| - 'conditions': [ |
1420 |
| - [ 'node_use_openssl=="true"', { |
1421 |
| - 'defines': [ |
1422 |
| - 'HAVE_OPENSSL=1', |
1423 |
| - ], |
1424 |
| - }], |
1425 |
| - ['v8_enable_inspector==1', { |
1426 |
| - 'defines': [ |
1427 |
| - 'HAVE_INSPECTOR=1', |
1428 |
| - ], |
1429 |
| - }], |
1430 |
| - ['OS=="win"', { |
1431 |
| - 'libraries': [ |
1432 |
| - 'dbghelp.lib', |
1433 |
| - 'PsApi.lib', |
1434 |
| - 'winmm.lib', |
1435 |
| - 'Ws2_32.lib', |
1436 |
| - ], |
1437 |
| - }], |
1438 |
| - ], |
1439 |
| - }, # mkcodecache |
1440 | 1352 | {
|
1441 | 1353 | 'target_name': 'node_mksnapshot',
|
1442 | 1354 | 'type': 'executable',
|
|
1464 | 1376 |
|
1465 | 1377 | 'sources': [
|
1466 | 1378 | 'src/node_snapshot_stub.cc',
|
1467 |
| - 'src/node_code_cache_stub.cc', |
1468 | 1379 | 'tools/snapshot/node_mksnapshot.cc',
|
1469 | 1380 | ],
|
1470 | 1381 |
|
|
1474 | 1385 | 'HAVE_OPENSSL=1',
|
1475 | 1386 | ],
|
1476 | 1387 | }],
|
| 1388 | + [ 'node_use_node_code_cache=="true"', { |
| 1389 | + 'defines': [ |
| 1390 | + 'NODE_USE_NODE_CODE_CACHE=1', |
| 1391 | + ], |
| 1392 | + }], |
1477 | 1393 | ['v8_enable_inspector==1', {
|
1478 | 1394 | 'defines': [
|
1479 | 1395 | 'HAVE_INSPECTOR=1',
|
|
0 commit comments