1
1
#! /bin/bash
2
2
# Build Path: /app/.heroku/php/
3
- # Build Deps: utils/chrpath
4
3
5
4
OUT_PREFIX=1ドル
6
5
@@ -9,7 +8,7 @@ set -o pipefail
9
8
# fail harder
10
9
set -eux
11
10
12
- DEFAULT_VERSION=" 5.5.372.29 "
11
+ DEFAULT_VERSION=" 6.1.534.31 "
13
12
dep_version=${VERSION:- $DEFAULT_VERSION }
14
13
dep_dirname=v8
15
14
@@ -23,21 +22,16 @@ pushd ${dep_dirname}
23
22
git checkout ${dep_version}
24
23
gclient sync
25
24
26
- export GYPFLAGS=" -Dv8_use_external_startup_data=0"
27
- export GYPFLAGS=" ${GYPFLAGS} -Dlinux_use_bundled_gold=0"
25
+ tools/dev/v8gen.py -vv x64.release -- is_component_build=true
28
26
29
- make native library=shared snapshot=on -j8
27
+ ninja -C out.gn/x64.release/
30
28
31
- # fix RPATH on libv8.so to not have lib.target/ in it
32
- /app/.heroku/php/bin/chrpath -r ' $ORIGIN' out/native/lib.target/libv8.so
33
-
34
- # chrpath was a build dep, and it's in $OUT_PREFIX. nuke that first
35
- rm -rf ${OUT_PREFIX} /*
36
29
37
30
mkdir -p ${OUT_PREFIX} /lib ${OUT_PREFIX} /include
38
- cp out/native/lib.target/lib* .so ${OUT_PREFIX} /lib/
31
+ cp out.gn/x64.release/lib* .so ${OUT_PREFIX} /lib/
32
+ cp out.gn/x64.release/* _blob.bin ${OUT_PREFIX} /lib/
33
+ cp out.gn/x64.release/icudtl.dat ${OUT_PREFIX} /lib/
39
34
cp -R include/* ${OUT_PREFIX} /include/
40
- echo -e " create ${OUT_PREFIX} /lib/libv8_libplatform.a\naddlib out/native/obj.target/src/libv8_libplatform.a\nsave\nend" | ar -M
41
35
popd
42
36
43
37
echo " -----> Done."
0 commit comments