Skip to content

Commit 5150f41

Browse files
committed
Add monolith targets to gyp
1 parent ef6fad2 commit 5150f41

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

build-libv8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ esac
3636
"${PYTHON}" configure --openssl-no-asm --without-npm --shared --with-intl=small-icu
3737
make BUILDTYPE=Release config.gypi
3838
make BUILDTYPE=Release out/Makefile
39+
3940
export PATH="${PWD}/out/tools/bin:${PATH}"
40-
make -j"${NJOBS}" -C out BUILDTYPE=Release V=0 v8 v8_libbase v8_libplatform v8_libsampler
41+
make -j"${NJOBS}" -C out BUILDTYPE=Release V=0 libv8_monolith

extract-node

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ esac
2020

2121
cd "src/node-${version}"
2222

23+
patch -p1 < ../../gyp-libv8_monolith.patch
2324
patch -p1 < ../../py2-icutrim.patch
2425
patch -p1 < ../../py2-genv8constants.patch
2526

gyp-libv8_monolith.patch

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--- a/node.gyp 2020-11-04 15:55:48.000000000 +0100
2+
+++ b/node.gyp 2020-11-04 15:55:51.000000000 +0100
3+
@@ -1467,6 +1467,16 @@
4+
}],
5+
],
6+
}, # node_mksnapshot
7+
+ {
8+
+ 'target_name': 'libv8_monolith',
9+
+ 'type': 'none',
10+
+ 'includes': [
11+
+ 'node.gypi'
12+
+ ],
13+
+ #'dependencies': [
14+
+ # 'tools/v8_gypfiles/v8.gyp:v8_monolith',
15+
+ #],
16+
+ },
17+
], # end targets
18+
19+
'conditions': [
20+
--- a/tools/v8_gypfiles/v8.gyp 2020-11-04 16:34:06.000000000 +0100
21+
+++ b/tools/v8_gypfiles/v8.gyp 2020-11-04 16:34:10.000000000 +0100
22+
@@ -1726,5 +1726,21 @@
23+
'<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.h',
24+
],
25+
}, # v8_zlib
26+
+ {
27+
+ 'target_name': 'v8_monolith',
28+
+ 'type': 'static_library',
29+
+ 'sources': [
30+
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8.*?sources = ")',
31+
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libbase.*?sources = ")',
32+
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libplatform.*?sources = ")',
33+
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libsampler.*?sources = ")',
34+
+ ],
35+
+ 'dependencies': [
36+
+ 'v8',
37+
+ 'v8_libbase',
38+
+ 'v8_libplatform',
39+
+ 'v8_libsampler',
40+
+ ],
41+
+ }
42+
],
43+
}
44+

0 commit comments

Comments
 (0)