Skip to content

Commit 4e3fc72

Browse files
targosnodejs-github-bot
authored andcommitted
tools: update V8 gypfiles for 12.0
Refs: v8/v8@ba401aa
1 parent 03c3f88 commit 4e3fc72

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

tools/v8_gypfiles/features.gypi

+7
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

+69
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 \\+= ")',
@@ -593,6 +598,13 @@
593598
'sources': [
594599
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"x86\\".*?sources \\+= ")',
595600
],
601+
'conditions': [
602+
['v8_enable_sparkplug==1', {
603+
'sources': [
604+
'<!@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 \\+= ")',
605+
],
606+
}],
607+
],
596608
}],
597609
['v8_target_arch=="x64"', {
598610
'sources': [
@@ -604,6 +616,11 @@
604616
'<!@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 \\+= ")',
605617
],
606618
}],
619+
['v8_enable_sparkplug==1', {
620+
'sources': [
621+
'<!@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 \\+= ")',
622+
],
623+
}],
607624
['v8_enable_webassembly==1', {
608625
'conditions': [
609626
['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', {
@@ -624,6 +641,13 @@
624641
'sources': [
625642
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"arm\\".*?sources \\+= ")',
626643
],
644+
'conditions': [
645+
['v8_enable_sparkplug==1', {
646+
'sources': [
647+
'<!@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 \\+= ")',
648+
],
649+
}],
650+
],
627651
}],
628652
['v8_target_arch=="arm64"', {
629653
'sources': [
@@ -635,6 +659,11 @@
635659
'<!@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 \\+= ")',
636660
],
637661
}],
662+
['v8_enable_sparkplug==1', {
663+
'sources': [
664+
'<!@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 \\+= ")',
665+
],
666+
}],
638667
['v8_enable_webassembly==1', {
639668
'conditions': [
640669
['((_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"))', {
@@ -660,6 +689,13 @@
660689
'sources': [
661690
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"mips64\\".*?sources \\+= ")',
662691
],
692+
'conditions': [
693+
['v8_enable_sparkplug==1', {
694+
'sources': [
695+
'<!@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 \\+= ")',
696+
],
697+
}],
698+
],
663699
}],
664700
['v8_target_arch=="ppc"', {
665701
'sources': [
@@ -670,21 +706,49 @@
670706
'sources': [
671707
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"ppc64\\".*?sources \\+= ")',
672708
],
709+
'conditions': [
710+
['v8_enable_sparkplug==1', {
711+
'sources': [
712+
'<!@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 \\+= ")',
713+
],
714+
}],
715+
],
673716
}],
674717
['v8_target_arch=="s390x"', {
675718
'sources': [
676719
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")',
677720
],
721+
'conditions': [
722+
['v8_enable_sparkplug==1', {
723+
'sources': [
724+
'<!@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 \\+= ")',
725+
],
726+
}],
727+
],
678728
}],
679729
['v8_target_arch=="riscv64"', {
680730
'sources': [
681731
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
682732
],
733+
'conditions': [
734+
['v8_enable_sparkplug==1', {
735+
'sources': [
736+
'<!@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 \\+= ")',
737+
],
738+
}],
739+
],
683740
}],
684741
['v8_target_arch=="loong64"', {
685742
'sources': [
686743
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")',
687744
],
745+
'conditions': [
746+
['v8_enable_sparkplug==1', {
747+
'sources': [
748+
'<!@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 \\+= ")',
749+
],
750+
}],
751+
],
688752
}],
689753
],
690754
},
@@ -885,6 +949,11 @@
885949
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_snapshot_compression.*?sources \\+= ")',
886950
],
887951
}],
952+
['v8_enable_sparkplug==1', {
953+
'sources': [
954+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_sparkplug.*?sources \\+= ")',
955+
],
956+
}],
888957
['v8_enable_maglev==1', {
889958
'sources': [
890959
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?sources \\+= ")',

0 commit comments

Comments
 (0)