|
671 | 671 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")',
|
672 | 672 | ],
|
673 | 673 | }],
|
| 674 | + ['v8_target_arch=="riscv64"', { |
| 675 | + 'sources': [ |
| 676 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")', |
| 677 | + ], |
| 678 | + }], |
674 | 679 | ],
|
675 | 680 | },
|
676 | 681 | }, # v8_internal_headers
|
|
856 | 861 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"mips\\".*?sources \\+= ")',
|
857 | 862 | ],
|
858 | 863 | }],
|
859 |
| - ['v8_target_arch=="riscv64"', { |
860 |
| - 'sources': [ ### gcmole(arch:riscv64) ### |
861 |
| - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"riscv64.*?sources \+= ")', |
862 |
| - ], |
863 |
| - }], |
864 | 864 | ['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
|
865 | 865 | 'sources': [
|
866 | 866 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"mips64\\".*?sources \\+= ")',
|
|
881 | 881 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")',
|
882 | 882 | ],
|
883 | 883 | }],
|
| 884 | + ['v8_target_arch=="riscv64"', { |
| 885 | + 'sources': [ |
| 886 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")', |
| 887 | + ], |
| 888 | + }], |
884 | 889 | ['OS=="win"', {
|
885 | 890 | 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
|
886 | 891 | 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc',
|
|
895 | 900 | 'ObjectFile': '$(IntDir)%(Extension)\\',
|
896 | 901 | },
|
897 | 902 | },
|
| 903 | + 'conditions': [ |
| 904 | + ['v8_enable_system_instrumentation==1', { |
| 905 | + 'sources': [ |
| 906 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?is_win.*?v8_enable_system_instrumentation.*?sources \\+= ")', |
| 907 | + ], |
| 908 | + }], |
| 909 | + ], |
898 | 910 | }],
|
899 | 911 | ['component=="shared_library"', {
|
900 | 912 | 'defines': [
|
|
1133 | 1145 | '<(V8_ROOT)/src/base/platform/platform-win32.cc',
|
1134 | 1146 | '<(V8_ROOT)/src/base/win32-headers.h',
|
1135 | 1147 | ],
|
1136 |
| - 'conditions': [['target_arch == "arm64"', { |
1137 |
| - 'defines': ['_WIN32_WINNT=0x0602'], # For GetCurrentThreadStackLimits on Windows on Arm |
1138 |
| - }]], |
| 1148 | + 'conditions': [ |
| 1149 | + ['target_arch == "arm64"', { |
| 1150 | + 'defines': ['_WIN32_WINNT=0x0602'], # For GetCurrentThreadStackLimits on Windows on Arm |
| 1151 | + }], |
| 1152 | + ], |
1139 | 1153 | 'defines': ['_CRT_RAND_S'], # for rand_s()
|
1140 | 1154 | 'direct_dependent_settings': {
|
1141 | 1155 | 'msvs_settings': {
|
|
1147 | 1161 | ]
|
1148 | 1162 | }
|
1149 | 1163 | },
|
| 1164 | + 'conditions': [ |
| 1165 | + ['v8_enable_system_instrumentation==1', { |
| 1166 | + 'msvs_settings': { |
| 1167 | + 'VCLinkerTool': { |
| 1168 | + 'AdditionalDependencies': [ |
| 1169 | + 'advapi32.lib', |
| 1170 | + ], |
| 1171 | + }, |
| 1172 | + }, |
| 1173 | + }], |
| 1174 | + ], |
1150 | 1175 | },
|
1151 | 1176 | }],
|
1152 | 1177 | ['target_arch == "mips" or OS == "mips64"', {
|
|
1288 | 1313 | '<(V8_ROOT)/src/libplatform/delayed-task-queue.h',
|
1289 | 1314 | '<(V8_ROOT)/src/libplatform/task-queue.cc',
|
1290 | 1315 | '<(V8_ROOT)/src/libplatform/task-queue.h',
|
1291 |
| - '<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc', |
1292 |
| - '<(V8_ROOT)/src/libplatform/tracing/recorder.h', |
1293 | 1316 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.cc',
|
1294 | 1317 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.h',
|
1295 | 1318 | '<(V8_ROOT)/src/libplatform/tracing/trace-config.cc',
|
|
1313 | 1336 | ['v8_use_perfetto==1', {
|
1314 | 1337 | 'sources!': [
|
1315 | 1338 | '<(V8_ROOT)/base/trace_event/common/trace_event_common.h',
|
1316 |
| - '<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc', |
1317 | 1339 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.cc',
|
1318 | 1340 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.h',
|
1319 | 1341 | '<(V8_ROOT)/src/libplatform/tracing/trace-object.cc',
|
|
1329 | 1351 | '<(V8_ROOT)/third_party/perfetto/protos/perfetto/trace:lite',
|
1330 | 1352 | ],
|
1331 | 1353 | }],
|
1332 |
| - ['v8_use_perfetto==0 and is_win', { |
1333 |
| - 'sources!': [ |
1334 |
| - '<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc', |
1335 |
| - ], |
| 1354 | + ['v8_enable_system_instrumentation==1 and is_win', { |
1336 | 1355 | 'sources': [
|
| 1356 | + '<(V8_ROOT)/src/libplatform/tracing/recorder.h', |
1337 | 1357 | '<(V8_ROOT)/src/libplatform/tracing/recorder-win.cc',
|
1338 | 1358 | ],
|
1339 | 1359 | }],
|
| 1360 | + ['v8_enable_system_instrumentation==1 and OS=="mac"', { |
| 1361 | + 'sources': [ |
| 1362 | + '<(V8_ROOT)/src/libplatform/tracing/recorder.h', |
| 1363 | + '<(V8_ROOT)/src/libplatform/tracing/recorder-mac.cc', |
| 1364 | + ], |
| 1365 | + }], |
1340 | 1366 | ],
|
1341 | 1367 | 'direct_dependent_settings': {
|
1342 | 1368 | 'include_dirs': [
|
|
0 commit comments