11#! /bin/bash
22#  Build Path: /app/.heroku/php/
3- #  Build Deps: utils/chrpath
43
54OUT_PREFIX=1ドル 
65
@@ -9,7 +8,7 @@ set -o pipefail
98#  fail harder
109set  -eux
1110
12- DEFAULT_VERSION=" 5.5.372.29 " 
11+ DEFAULT_VERSION=" 6.1.534.31 " 
1312dep_version=${VERSION:- $DEFAULT_VERSION } 
1413dep_dirname=v8
1514
@@ -23,21 +22,16 @@ pushd ${dep_dirname}
2322git checkout ${dep_version} 
2423gclient sync
2524
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
2826
29- make native library=shared snapshot=on -j8 
27+ ninja -C out.gn/x64.release/ 
3028
31- #  fix RPATH on libv8.so to not have lib.target/ in it
32- /app/.heroku/php/bin/chrpath -r ' $ORIGIN' 
33- 34- #  chrpath was a build dep, and it's in $OUT_PREFIX. nuke that first
35- rm -rf ${OUT_PREFIX} /* 
3629
3730mkdir -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/
3934cp -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
4135popd 
4236
4337echo  " -----> Done." 
0 commit comments