Skip to content

Commit 4ba0b28

Browse files
committed
tools: add cppgc_base and v8_cppgc_shared to v8.gyp
Refs: nodejs/node-v8#161
1 parent d371a54 commit 4ba0b28

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 86 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,90 @@
14601462
},
14611463
],
14621464
}, # run_gen-regexp-special-case
1465+
{
1466+
'target_name': 'cppgc_base',
1467+
'type': 'none',
1468+
'direct_dependent_settings': {
1469+
'sources': [
1470+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"cppgc_base.*?sources = ")',
1471+
],
1472+
},
1473+
}, # cppgc_base
1474+
{
1475+
'target_name': 'v8_cppgc_shared',
1476+
'type': 'none',
1477+
'direct_dependent_settings': {
1478+
'sources': [
1479+
'<(V8_ROOT)/src/heap/base/stack.cc',
1480+
'<(V8_ROOT)/src/heap/base/stack.h',
1481+
],
1482+
'conditions': [
1483+
['clang or OS!="win"', {
1484+
'conditions': [
1485+
['v8_target_arch=="x64"', {
1486+
'sources': [
1487+
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_asm.cc',
1488+
],
1489+
}],
1490+
['v8_target_arch=="x32"', {
1491+
'sources': [
1492+
'<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_asm.cc',
1493+
],
1494+
}],
1495+
['v8_target_arch=="arm"', {
1496+
'sources': [
1497+
'<(V8_ROOT)/src/heap/base/asm/arm/push_registers_asm.cc',
1498+
],
1499+
}],
1500+
['v8_target_arch=="arm64"', {
1501+
'sources': [
1502+
'<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_asm.cc',
1503+
],
1504+
}],
1505+
['v8_target_arch=="ppc64"', {
1506+
'sources': [
1507+
'<(V8_ROOT)/src/heap/base/asm/ppc/push_registers_asm.cc',
1508+
],
1509+
}],
1510+
['v8_target_arch=="s390x"', {
1511+
'sources': [
1512+
'<(V8_ROOT)/src/heap/base/asm/s390/push_registers_asm.cc',
1513+
],
1514+
}],
1515+
['v8_target_arch=="mips" or v8_target_arch=="mipsel"', {
1516+
'sources': [
1517+
'<(V8_ROOT)/src/heap/base/asm/mips/push_registers_asm.cc',
1518+
],
1519+
}],
1520+
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
1521+
'sources': [
1522+
'<(V8_ROOT)/src/heap/base/asm/mpis64/push_registers_asm.cc',
1523+
],
1524+
}],
1525+
]
1526+
}],
1527+
['OS=="win"', {
1528+
'conditions': [
1529+
['v8_target_arch=="x64"', {
1530+
'sources': [
1531+
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_masm.S',
1532+
],
1533+
}],
1534+
['v8_target_arch=="x86"', {
1535+
'sources': [
1536+
'<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_masm.S',
1537+
],
1538+
}],
1539+
['v8_target_arch=="arm64"', {
1540+
'sources': [
1541+
'<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_masm.S',
1542+
],
1543+
}],
1544+
],
1545+
}],
1546+
],
1547+
},
1548+
}, # v8_cppgc_shared
14631549

14641550
###############################################################################
14651551
# Public targets

0 commit comments

Comments
 (0)