|
38 | 38 | ], |
39 | 39 | }], |
40 | 40 | ], |
| 41 | + 'perfetto_gyp_file': '../../deps/perfetto/perfetto.gyp', |
41 | 42 | }, |
42 | 43 | 'includes': ['toolchain.gypi', 'features.gypi'], |
43 | 44 | 'target_defaults': { |
|
292 | 293 | 'sources': [ |
293 | 294 | '<(V8_ROOT)/src/init/setup-isolate-full.cc', |
294 | 295 | ], |
| 296 | + 'conditions': [ |
| 297 | + ['v8_use_perfetto==1', { |
| 298 | + 'dependencies': [ |
| 299 | + '<(perfetto_gyp_file):perfetto_sdk', |
| 300 | + ], |
| 301 | + }], |
| 302 | + ], |
295 | 303 | }, # v8_init |
296 | 304 | { |
297 | 305 | 'target_name': 'v8_initializers', |
|
312 | 320 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_initializers.*?sources = ")', |
313 | 321 | ], |
314 | 322 | 'conditions': [ |
| 323 | + ['v8_use_perfetto==1', { |
| 324 | + 'dependencies': [ |
| 325 | + '<(perfetto_gyp_file):perfetto_sdk', |
| 326 | + ], |
| 327 | + }], |
315 | 328 | ['v8_enable_webassembly==1', { |
316 | 329 | 'sources': [ |
317 | 330 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_initializers.*?v8_enable_webassembly.*?sources \\+= ")', |
|
479 | 492 | }, |
480 | 493 | ], |
481 | 494 | 'conditions': [ |
| 495 | + ['v8_use_perfetto==1', { |
| 496 | + 'dependencies': [ |
| 497 | + '<(perfetto_gyp_file):perfetto_sdk', |
| 498 | + ], |
| 499 | + }], |
482 | 500 | ['want_separate_host_toolset', { |
483 | 501 | 'dependencies': [ |
484 | 502 | 'generate_bytecode_builtins_list', |
|
678 | 696 | }], |
679 | 697 | ], |
680 | 698 | }], |
| 699 | + ['v8_use_perfetto==1', { |
| 700 | + 'sources!': [ |
| 701 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_use_perfetto.*?sources \\-= ")', |
| 702 | + ], |
| 703 | + 'sources': [ |
| 704 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_use_perfetto.*?sources \\+= ")', |
| 705 | + ], |
| 706 | + }], |
681 | 707 | ['v8_enable_webassembly==1', { |
682 | 708 | 'sources': [ |
683 | 709 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_webassembly.*?sources \\+= ")', |
|
960 | 986 | 'abseil.gyp:abseil', |
961 | 987 | ], |
962 | 988 | 'conditions': [ |
| 989 | + ['v8_use_perfetto==1', { |
| 990 | + 'dependencies': [ |
| 991 | + '<(perfetto_gyp_file):perfetto_sdk', |
| 992 | + ], |
| 993 | + }], |
963 | 994 | ['v8_enable_maglev==0', { |
964 | 995 | 'sources': [ |
965 | 996 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?!v8_enable_maglev.*?sources \\+= ")', |
|
1090 | 1121 | '<@(inspector_all_sources)', |
1091 | 1122 | ], |
1092 | 1123 | 'conditions': [ |
| 1124 | + ['v8_use_perfetto==1', { |
| 1125 | + 'sources': [ |
| 1126 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_use_perfetto.*?sources \\+= ")', |
| 1127 | + ], |
| 1128 | + 'dependencies': [ |
| 1129 | + '<(perfetto_gyp_file):perfetto_sdk', |
| 1130 | + ], |
| 1131 | + }], |
1093 | 1132 | ['v8_enable_snapshot_compression==1', { |
1094 | 1133 | 'sources': [ |
1095 | 1134 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_snapshot_compression.*?sources \\+= ")', |
|
1707 | 1746 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libplatform.*?v8_use_perfetto.*?sources += ")', |
1708 | 1747 | ], |
1709 | 1748 | 'dependencies': [ |
1710 | | - '<(V8_ROOT)/third_party/perfetto:libperfetto', |
1711 | | - '<(V8_ROOT)/third_party/perfetto/protos/perfetto/trace:lite', |
| 1749 | + '<(perfetto_gyp_file):perfetto_sdk', |
1712 | 1750 | ], |
1713 | 1751 | }], |
1714 | 1752 | ['v8_enable_system_instrumentation==1 and is_win', { |
|
1818 | 1856 | }, |
1819 | 1857 | }, |
1820 | 1858 | 'conditions': [ |
| 1859 | + ['v8_use_perfetto==1', { |
| 1860 | + 'dependencies': [ |
| 1861 | + '<(perfetto_gyp_file):perfetto_sdk', |
| 1862 | + ], |
| 1863 | + }], |
1821 | 1864 | ['want_separate_host_toolset', { |
1822 | 1865 | 'toolsets': ['host'], |
1823 | 1866 | }], |
|
2028 | 2071 | 'sources': [ |
2029 | 2072 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"cppgc_base.*?sources = ")', |
2030 | 2073 | ], |
| 2074 | + 'conditions': [ |
| 2075 | + ['v8_use_perfetto==1', { |
| 2076 | + 'sources': [ |
| 2077 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"cppgc_base.*?if .v8_use_perfetto.*?sources \\+= ")', |
| 2078 | + ], |
| 2079 | + }], |
| 2080 | + ], |
2031 | 2081 | }, |
2032 | 2082 | }, # cppgc_base |
2033 | 2083 | { |
|
0 commit comments