Преглед изворни кода

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 година
родитељ
комит
35e5096889
3 измењених фајлова са 22 додато и 8 уклоњено
  1. +11
    -4
      v8pp/Makefile
  2. +6
    -2
      v8pp/build-v8.sh
  3. +5
    -2
      v8pp/v8-include.txt

+ 11
- 4
v8pp/Makefile Прегледај датотеку

@@ -27,14 +27,19 @@ build:
archive:
rm -rf v8.a
#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.
# ./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
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:
rm -rf out
@@ -43,7 +48,9 @@ package:
mkdir -p out/opt/cppse/build/v8pp/lib
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/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 v8/include out/opt/cppse/build/v8pp/include/v8

+ 6
- 2
v8pp/build-v8.sh Прегледај датотеку

@@ -35,11 +35,15 @@ gclient sync -r 7.5.288.23 #https://github.com/pmed/v8-nuget/
./tools/dev/gm.py x64.release

# 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

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

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

+ 5
- 2
v8pp/v8-include.txt Прегледај датотеку

@@ -1,6 +1,4 @@
./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/src/inspector/inspector
./v8/out/x64.release/obj/third_party/icu/icui18n
@@ -13,3 +11,8 @@
./v8/out/x64.release/obj/v8_libplatform
./v8/out/x64.release/obj/v8_libsampler
./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…
Откажи
Сачувај