Skip to content

Commit 5061fa3

Browse files
targosnodejs-github-bot
authored andcommitted
tools: update V8 gypfiles for 12.0
Refs: v8/v8@ba401aa
1 parent a3ded7f commit 5061fa3

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

tools/v8_gypfiles/features.gypi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@
279279
# Compile V8 using zlib as dependency.
280280
# Sets -DV8_USE_ZLIB
281281
'v8_use_zlib%': 1,
282+
283+
# Enable Sparkplug
284+
# Sets -DV8_ENABLE_SPARKPLUG.
285+
'v8_enable_sparkplug%': 1,
282286

283287
# Whether custom embedder snapshots may extend (= allocate new objects in)
284288
# ReadOnlySpace.
@@ -470,6 +474,9 @@
470474
['v8_enable_precise_zone_stats==1', {
471475
'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',],
472476
}],
477+
['v8_enable_sparkplug==1', {
478+
'defines': ['V8_ENABLE_SPARKPLUG',],
479+
}],
473480
['v8_enable_maglev==1', {
474481
'defines': ['V8_ENABLE_MAGLEV',],
475482
}],

tools/v8_gypfiles/v8.gyp

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,11 @@
547547
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_snapshot_compression.*?sources \\+= ")',
548548
],
549549
}],
550+
['v8_enable_sparkplug==1', {
551+
'sources': [
552+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_sparkplug.*?sources \\+= ")',
553+
],
554+
}],
550555
['v8_enable_maglev==1', {
551556
'sources': [
552557
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_maglev.*?sources \\+= ")',
@@ -588,6 +593,13 @@
588593
'sources': [
589594
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"x86\\".*?sources \\+= ")',
590595
],
596+
'conditions': [
597+
['v8_enable_sparkplug==1', {
598+
'sources': [
599+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"x86\\".*?v8_enable_sparkplug.*?sources \\+= ")',
600+
],
601+
}],
602+
],
591603
}],
592604
['v8_target_arch=="x64"', {
593605
'sources': [
@@ -599,6 +611,11 @@
599611
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"x64\\".*?is_win.*?sources \\+= ")',
600612
],
601613
}],
614+
['v8_enable_sparkplug==1', {
615+
'sources': [
616+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"x64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
617+
],
618+
}],
602619
['v8_enable_webassembly==1', {
603620
'conditions': [
604621
['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', {
@@ -619,6 +636,13 @@
619636
'sources': [
620637
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"arm\\".*?sources \\+= ")',
621638
],
639+
'conditions': [
640+
['v8_enable_sparkplug==1', {
641+
'sources': [
642+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"arm\\".*?v8_enable_sparkplug.*?sources \\+= ")',
643+
],
644+
}],
645+
],
622646
}],
623647
['v8_target_arch=="arm64"', {
624648
'sources': [
@@ -630,6 +654,11 @@
630654
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"arm64\\".*?v8_control_flow_integrity.*?sources \\+= ")',
631655
],
632656
}],
657+
['v8_enable_sparkplug==1', {
658+
'sources': [
659+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"arm64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
660+
],
661+
}],
633662
['v8_enable_webassembly==1', {
634663
'conditions': [
635664
['((_toolset=="host" and host_arch=="arm64" or _toolset=="target" and target_arch=="arm64") and (OS=="linux" or OS=="mac")) or ((_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64") and (OS=="linux" or OS=="mac"))', {
@@ -655,6 +684,13 @@
655684
'sources': [
656685
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"mips64\\".*?sources \\+= ")',
657686
],
687+
'conditions': [
688+
['v8_enable_sparkplug==1', {
689+
'sources': [
690+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"mips64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
691+
],
692+
}],
693+
],
658694
}],
659695
['v8_target_arch=="ppc"', {
660696
'sources': [
@@ -665,21 +701,49 @@
665701
'sources': [
666702
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"ppc64\\".*?sources \\+= ")',
667703
],
704+
'conditions': [
705+
['v8_enable_sparkplug==1', {
706+
'sources': [
707+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"ppc64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
708+
],
709+
}],
710+
],
668711
}],
669712
['v8_target_arch=="s390x"', {
670713
'sources': [
671714
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")',
672715
],
716+
'conditions': [
717+
['v8_enable_sparkplug==1', {
718+
'sources': [
719+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390\\".*?v8_enable_sparkplug.*?sources \\+= ")',
720+
],
721+
}],
722+
],
673723
}],
674724
['v8_target_arch=="riscv64"', {
675725
'sources': [
676726
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
677727
],
728+
'conditions': [
729+
['v8_enable_sparkplug==1', {
730+
'sources': [
731+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"riscv64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
732+
],
733+
}],
734+
],
678735
}],
679736
['v8_target_arch=="loong64"', {
680737
'sources': [
681738
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")',
682739
],
740+
'conditions': [
741+
['v8_enable_sparkplug==1', {
742+
'sources': [
743+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"loong64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
744+
],
745+
}],
746+
],
683747
}],
684748
],
685749
},
@@ -880,6 +944,11 @@
880944
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_snapshot_compression.*?sources \\+= ")',
881945
],
882946
}],
947+
['v8_enable_sparkplug==1', {
948+
'sources': [
949+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_sparkplug.*?sources \\+= ")',
950+
],
951+
}],
883952
['v8_enable_maglev==1', {
884953
'sources': [
885954
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?sources \\+= ")',

0 commit comments

Comments
 (0)