Parcourir la source

Add v8_monolithic in args.gn, apparently needed before it can build v8_monolith.

master
Ray Burgemeestre il y a 5 ans
Parent
révision
b04e97ab38
2 fichiers modifiés avec 9 ajouts et 29 suppressions
  1. +1
    -1
      v8pp/Makefile
  2. +8
    -28
      v8pp/build-v8.sh

+ 1
- 1
v8pp/Makefile Voir le fichier

echo all included object files listed below echo all included object files listed below
cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o' cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o'
# We'll use this one below.. # We'll use this one below..
ls -al ./v8/out/x64.release/obj/libv8_monolith.a
find ./v8/out/x64.release/ -name 'libv8_monolith.a' -type f
# We'll also include .so files.. # We'll also include .so files..
find ./v8/out/x64.release/ -name '*v8*.so' -type f find ./v8/out/x64.release/ -name '*v8*.so' -type f



+ 8
- 28
v8pp/build-v8.sh Voir le fichier

apt-get install python3-pip -y apt-get install python3-pip -y
pip3 install httplib2 --upgrade pip3 install httplib2 --upgrade



fetch v8 fetch v8
#gclient sync -r 6.9.427.6 # 55da769bafac8b531cd8b388df56161b8b7c6416 #gclient sync -r 6.9.427.6 # 55da769bafac8b531cd8b388df56161b8b7c6416
# gclient sync -r 7.1.69 #
#gclient sync -r 7.1.69 #
#gclient sync -r lkgr/6.9 #gclient sync -r lkgr/6.9

# newest version I found supported via v8pp CI:
# gclient sync -r 6.9.427.13 # https://ci.appveyor.com/project/pmed/v8pp
#gclient sync -r 6.9.427.13 # https://ci.appveyor.com/project/pmed/v8pp
cd v8 cd v8
gclient sync -r 7.5.288.23 #https://github.com/pmed/v8-nuget/
gclient sync -r 7.5.288.23 # https://github.com/pmed/v8-nuget/
# old version # old version
#git checkout 5.5.372.7
# git checkout 5.5.372.7


#GYP_DIR=build
#if [ ! -f "$GYP_DIR"/gyp_v8 ] ; then
# GYP_DIR=gypfiles
#fi
# Google got rid of this gyp stuff: https://chromium-review.googlesource.com/c/v8/v8/+/897566
# Looks like we have to use GN now: https://github.com/v8/v8/wiki/Building-with-GN # Looks like we have to use GN now: https://github.com/v8/v8/wiki/Building-with-GN


# OLD
#GYP_GENERATORS=make "$GYP_DIR"/gyp_v8 --generator-output=out --depth=. -I"$GYP_DIR"/standalone.gypi -I../v8_options.gypi "$GYP_DIR"/all.gyp
#make v8 v8_libplatform -C out BUILDTYPE=Release -j8 builddir=$(pwd)/out/Release

# NEW
# ./build/install-build-deps.sh
# initial build
./tools/dev/gm.py x64.release ./tools/dev/gm.py x64.release


# workaround, see notes.txt # workaround, see notes.txt


./tools/dev/gm.py x64.release ./tools/dev/gm.py x64.release


# also produce the static .a
# produce monolith (single static all in one .a file)
echo "v8_monolithic = true" | tee -a out/x64.release/args.gn
ninja -C out/x64.release v8_monolith ninja -C out/x64.release v8_monolith


# produce .so files (shared libs)
echo "is_component_build = true" | tee -a out/x64.release/args.gn echo "is_component_build = true" | tee -a out/x64.release/args.gn

ninja -C out/x64.release ninja -C out/x64.release

#mkdir -p lib
#cp out/Release/lib.target/*.so lib
#cp out/Release/lib* lib
#cp out/x64.release/obj/*.a lib
#cp out/x64.release/obj/*.so lib
#cp out/x64.release/obj/libv8* lib
#./v8/out/x64.release/obj/libv8_libbase.a

Chargement…
Annuler
Enregistrer