Skip to content

Commit 5dc11c1

Browse files
targosnodejs-ci
authored andcommitted
tools: add cppgc_base and v8_cppgc_shared to v8.gyp
Refs: #161
1 parent 17afb8c commit 5dc11c1

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@
727727
'type': 'static_library',
728728
'dependencies': [
729729
# Code generators that only need to be build for the host.
730+
'cppgc_base',
730731
'torque_generated_definitions',
731732
'v8_headers',
732733
'v8_libbase',
@@ -736,6 +737,7 @@
736737
# BUILD.gn public_deps
737738
'generate_bytecode_builtins_list',
738739
'run_torque',
740+
'v8_cppgc_shared',
739741
'v8_maybe_icu',
740742
'v8_zlib',
741743
],
@@ -1460,6 +1462,95 @@
14601462
},
14611463
],
14621464
}, # run_gen-regexp-special-case
1465+
{
1466+
'target_name': 'cppgc_base',
1467+
'type': 'none',
1468+
'conditions': [
1469+
['want_separate_host_toolset', {
1470+
'toolsets': ['host', 'target'],
1471+
}],
1472+
],
1473+
'direct_dependent_settings': {
1474+
'sources': [
1475+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"cppgc_base.*?sources = ")',
1476+
],
1477+
},
1478+
}, # cppgc_base
1479+
{
1480+
'target_name': 'v8_cppgc_shared',
1481+
'type': 'none',
1482+
'direct_dependent_settings': {
1483+
'sources': [
1484+
'<(V8_ROOT)/src/heap/base/stack.cc',
1485+
'<(V8_ROOT)/src/heap/base/stack.h',
1486+
],
1487+
'conditions': [
1488+
['clang or OS!="win"', {
1489+
'conditions': [
1490+
['v8_target_arch=="x64"', {
1491+
'sources': [
1492+
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_asm.cc',
1493+
],
1494+
}],
1495+
['v8_target_arch=="x32"', {
1496+
'sources': [
1497+
'<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_asm.cc',
1498+
],
1499+
}],
1500+
['v8_target_arch=="arm"', {
1501+
'sources': [
1502+
'<(V8_ROOT)/src/heap/base/asm/arm/push_registers_asm.cc',
1503+
],
1504+
}],
1505+
['v8_target_arch=="arm64"', {
1506+
'sources': [
1507+
'<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_asm.cc',
1508+
],
1509+
}],
1510+
['v8_target_arch=="ppc64"', {
1511+
'sources': [
1512+
'<(V8_ROOT)/src/heap/base/asm/ppc/push_registers_asm.cc',
1513+
],
1514+
}],
1515+
['v8_target_arch=="s390x"', {
1516+
'sources': [
1517+
'<(V8_ROOT)/src/heap/base/asm/s390/push_registers_asm.cc',
1518+
],
1519+
}],
1520+
['v8_target_arch=="mips" or v8_target_arch=="mipsel"', {
1521+
'sources': [
1522+
'<(V8_ROOT)/src/heap/base/asm/mips/push_registers_asm.cc',
1523+
],
1524+
}],
1525+
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
1526+
'sources': [
1527+
'<(V8_ROOT)/src/heap/base/asm/mpis64/push_registers_asm.cc',
1528+
],
1529+
}],
1530+
]
1531+
}],
1532+
['OS=="win"', {
1533+
'conditions': [
1534+
['v8_target_arch=="x64"', {
1535+
'sources': [
1536+
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_masm.S',
1537+
],
1538+
}],
1539+
['v8_target_arch=="x86"', {
1540+
'sources': [
1541+
'<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_masm.S',
1542+
],
1543+
}],
1544+
['v8_target_arch=="arm64"', {
1545+
'sources': [
1546+
'<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_masm.S',
1547+
],
1548+
}],
1549+
],
1550+
}],
1551+
],
1552+
},
1553+
}, # v8_cppgc_shared
14631554

14641555
###############################################################################
14651556
# Public targets

0 commit comments

Comments
 (0)