Browse Source

Start using v8-include.txt again and lots of attempts later decide to

use the monolith build thing that's part of v8. In theory that should
do the right thing already.
master
Ray Burgemeestre 5 years ago
parent
commit
35e5096889
3 changed files with 22 additions and 8 deletions
  1. +11
    -4
      v8pp/Makefile
  2. +6
    -2
      v8pp/build-v8.sh
  3. +5
    -2
      v8pp/v8-include.txt

+ 11
- 4
v8pp/Makefile View File

archive: archive:
rm -rf v8.a rm -rf v8.a
#ar rvs v8.a $$(cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o') #ar rvs v8.a $$(cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o')
# third_party/
# third_party/
# excluding buildtools/third_party directory which contains libc++ etc., or you will get linker errors. # excluding buildtools/third_party directory which contains libc++ etc., or you will get linker errors.
# ./out/x64.release/obj/buildtools/third_party/libc++/libc++/ # ./out/x64.release/obj/buildtools/third_party/libc++/libc++/
ar rvs v8.a $$(find ./v8/out/x64.release/ -type f -name '*.o' | grep -v "buildtools/third_party/libc++/libc++")
# second exclude for external snapshot, we need only the non-external one, or we get some weeiiird results of course!
# both implement DefaultSnapshotBlob() and we need to add the right one to the object file.
# ERR, ar rvs v8.a $$(find ./v8/out/x64.release/ -type f -name '*.o' | grep -v "buildtools/third_party/libc++/libc++" | grep -v "v8_external_snapshot")
# Let's go back to our white-list approach.. let's see...
#ar rvs v8.a $$(cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o')
# We no longer use our v8.a, still including it for now.
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'
echo all .so files listed below
find ./ -name '*.so'
# We'll use this one below..
ls -al ./v8/out/x64.release/obj/libv8_monolith.a


package: package:
rm -rf out rm -rf out
mkdir -p out/opt/cppse/build/v8pp/lib mkdir -p out/opt/cppse/build/v8pp/lib
mkdir -p out/opt/cppse/build/v8pp/include mkdir -p out/opt/cppse/build/v8pp/include


# Legacy include our own v8.a
cp -prv v8.a out/opt/cppse/build/v8pp/lib cp -prv v8.a out/opt/cppse/build/v8pp/lib
cp -prv v8/out/x64.release/obj/libv8_monolith.a out/opt/cppse/build/v8pp/lib


cp -prv v8pp/v8pp out/opt/cppse/build/v8pp/include/ cp -prv v8pp/v8pp out/opt/cppse/build/v8pp/include/
cp -prv v8/include out/opt/cppse/build/v8pp/include/v8 cp -prv v8/include out/opt/cppse/build/v8pp/include/v8

+ 6
- 2
v8pp/build-v8.sh View File

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


# workaround, see notes.txt # workaround, see notes.txt
echo "v8_enable_embedded_builtins = false" | tee -a out/x64.release/args.gn
echo "v8_use_snapshot = false" | tee -a out/x64.release/args.gn
echo "v8_enable_embedded_builtins = false" | tee -a out/x64.release/args.gn
echo "v8_use_external_startup_data = false" | tee -a out/x64.release/args.gn
echo "v8_use_snapshot = false" | tee -a out/x64.release/args.gn


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


# also produce the static .a
ninja -C out/x64.release v8_monolith¬

#mkdir -p lib #mkdir -p lib
#cp out/Release/lib.target/*.so lib #cp out/Release/lib.target/*.so lib
#cp out/Release/lib* lib #cp out/Release/lib* lib

+ 5
- 2
v8pp/v8-include.txt View File

./v8/out/x64.release/obj/buildtools/third_party/libc++abi/libc++abi ./v8/out/x64.release/obj/buildtools/third_party/libc++abi/libc++abi
./v8/out/x64.release/obj/buildtools/third_party/libc++/libc++
./v8/out/x64.release/obj/d8
./v8/out/x64.release/obj/mksnapshot ./v8/out/x64.release/obj/mksnapshot
./v8/out/x64.release/obj/src/inspector/inspector ./v8/out/x64.release/obj/src/inspector/inspector
./v8/out/x64.release/obj/third_party/icu/icui18n ./v8/out/x64.release/obj/third_party/icu/icui18n
./v8/out/x64.release/obj/v8_libplatform ./v8/out/x64.release/obj/v8_libplatform
./v8/out/x64.release/obj/v8_libsampler ./v8/out/x64.release/obj/v8_libsampler
./v8/out/x64.release/obj/v8_nosnapshot ./v8/out/x64.release/obj/v8_nosnapshot
./v8/out/x64.release/obj/bytecode_builtins_list_generator
./v8/out/x64.release/obj/torque_base
./v8/out/x64.release/obj/torque_generated_definitions
./v8/out/x64.release/obj/v8_base_without_compiler
./v8/out/x64.release/obj/v8_compiler

Loading…
Cancel
Save