Skip to content

Commit 7784773

Browse files
committed
tools: update V8 gypfiles for 12.0
Refs: v8/v8@ba401aa PR-URL: #51362 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 61a0d3b commit 7784773

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
@@ -290,6 +290,10 @@
290290
# Sets -DV8_USE_ZLIB
291291
'v8_use_zlib%': 1,
292292

293+
# Enable Sparkplug
294+
# Sets -DV8_ENABLE_SPARKPLUG.
295+
'v8_enable_sparkplug%': 1,
296+
293297
# Whether custom embedder snapshots may extend (= allocate new objects in)
294298
# ReadOnlySpace.
295299
'v8_enable_extensible_ro_snapshot%': 1,
@@ -491,6 +495,9 @@
491495
['v8_enable_precise_zone_stats==1', {
492496
'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',],
493497
}],
498+
['v8_enable_sparkplug==1', {
499+
'defines': ['V8_ENABLE_SPARKPLUG',],
500+
}],
494501
['v8_enable_maglev==1', {
495502
'defines': ['V8_ENABLE_MAGLEV',],
496503
}],

tools/v8_gypfiles/v8.gyp

+69
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@
583583
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_snapshot_compression.*?sources \\+= ")',
584584
],
585585
}],
586+
['v8_enable_sparkplug==1', {
587+
'sources': [
588+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_sparkplug.*?sources \\+= ")',
589+
],
590+
}],
586591
['v8_enable_maglev==1', {
587592
'sources': [
588593
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_maglev.*?sources \\+= ")',
@@ -629,6 +634,13 @@
629634
'sources': [
630635
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"x86\\".*?sources \\+= ")',
631636
],
637+
'conditions': [
638+
['v8_enable_sparkplug==1', {
639+
'sources': [
640+
'<!@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 \\+= ")',
641+
],
642+
}],
643+
],
632644
}],
633645
['v8_target_arch=="x64"', {
634646
'sources': [
@@ -640,6 +652,11 @@
640652
'<!@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 \\+= ")',
641653
],
642654
}],
655+
['v8_enable_sparkplug==1', {
656+
'sources': [
657+
'<!@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 \\+= ")',
658+
],
659+
}],
643660
['v8_enable_webassembly==1', {
644661
'conditions': [
645662
['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', {
@@ -660,6 +677,13 @@
660677
'sources': [
661678
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"arm\\".*?sources \\+= ")',
662679
],
680+
'conditions': [
681+
['v8_enable_sparkplug==1', {
682+
'sources': [
683+
'<!@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 \\+= ")',
684+
],
685+
}],
686+
],
663687
}],
664688
['v8_target_arch=="arm64"', {
665689
'sources': [
@@ -671,6 +695,11 @@
671695
'<!@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 \\+= ")',
672696
],
673697
}],
698+
['v8_enable_sparkplug==1', {
699+
'sources': [
700+
'<!@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 \\+= ")',
701+
],
702+
}],
674703
['v8_enable_webassembly==1', {
675704
'conditions': [
676705
['((_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"))', {
@@ -696,6 +725,13 @@
696725
'sources': [
697726
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"mips64\\".*?sources \\+= ")',
698727
],
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 == \\"mips64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
732+
],
733+
}],
734+
],
699735
}],
700736
['v8_target_arch=="ppc"', {
701737
'sources': [
@@ -706,21 +742,49 @@
706742
'sources': [
707743
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"ppc64\\".*?sources \\+= ")',
708744
],
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 == \\"ppc64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
749+
],
750+
}],
751+
],
709752
}],
710753
['v8_target_arch=="s390x"', {
711754
'sources': [
712755
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")',
713756
],
757+
'conditions': [
758+
['v8_enable_sparkplug==1', {
759+
'sources': [
760+
'<!@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 \\+= ")',
761+
],
762+
}],
763+
],
714764
}],
715765
['v8_target_arch=="riscv64"', {
716766
'sources': [
717767
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
718768
],
769+
'conditions': [
770+
['v8_enable_sparkplug==1', {
771+
'sources': [
772+
'<!@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 \\+= ")',
773+
],
774+
}],
775+
],
719776
}],
720777
['v8_target_arch=="loong64"', {
721778
'sources': [
722779
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")',
723780
],
781+
'conditions': [
782+
['v8_enable_sparkplug==1', {
783+
'sources': [
784+
'<!@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 \\+= ")',
785+
],
786+
}],
787+
],
724788
}],
725789
],
726790
},
@@ -921,6 +985,11 @@
921985
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_snapshot_compression.*?sources \\+= ")',
922986
],
923987
}],
988+
['v8_enable_sparkplug==1', {
989+
'sources': [
990+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_sparkplug.*?sources \\+= ")',
991+
],
992+
}],
924993
['v8_enable_maglev==1', {
925994
'sources': [
926995
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?sources \\+= ")',

0 commit comments

Comments
 (0)