Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

48 lines
1.4KB

  1. #!/bin/bash
  2. export PATH=`pwd`/depot_tools:"$PATH"
  3. # https://github.com/prahladyeri/tuxdrive/issues/3
  4. apt-get install python3-pip -y
  5. pip3 install httplib2 --upgrade
  6. fetch v8
  7. #gclient sync -r 6.9.427.6 # 55da769bafac8b531cd8b388df56161b8b7c6416
  8. # gclient sync -r 7.1.69 #
  9. #gclient sync -r lkgr/6.9
  10. # newest version I found supported via v8pp CI:
  11. # gclient sync -r 6.9.427.13 # https://ci.appveyor.com/project/pmed/v8pp
  12. cd v8
  13. gclient sync -r 7.5.288.23 #https://github.com/pmed/v8-nuget/
  14. # old version
  15. #git checkout 5.5.372.7
  16. #GYP_DIR=build
  17. #if [ ! -f "$GYP_DIR"/gyp_v8 ] ; then
  18. # GYP_DIR=gypfiles
  19. #fi
  20. # Google got rid of this gyp stuff: https://chromium-review.googlesource.com/c/v8/v8/+/897566
  21. # Looks like we have to use GN now: https://github.com/v8/v8/wiki/Building-with-GN
  22. # OLD
  23. #GYP_GENERATORS=make "$GYP_DIR"/gyp_v8 --generator-output=out --depth=. -I"$GYP_DIR"/standalone.gypi -I../v8_options.gypi "$GYP_DIR"/all.gyp
  24. #make v8 v8_libplatform -C out BUILDTYPE=Release -j8 builddir=$(pwd)/out/Release
  25. # NEW
  26. # ./build/install-build-deps.sh
  27. ./tools/dev/gm.py x64.release
  28. # workaround, see notes.txt
  29. echo "v8_enable_embedded_builtins = false" | tee -a out/x64.release/args.gn
  30. ./tools/dev/gm.py x64.release
  31. #mkdir -p lib
  32. #cp out/Release/lib.target/*.so lib
  33. #cp out/Release/lib* lib
  34. #cp out/x64.release/obj/*.a lib
  35. #cp out/x64.release/obj/*.so lib
  36. #cp out/x64.release/obj/libv8* lib
  37. #./v8/out/x64.release/obj/libv8_libbase.a