Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

51 line
1.9KB

  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. #gclient sync -r 6.9.427.13 # https://ci.appveyor.com/project/pmed/v8pp
  11. cd v8
  12. gclient sync -r 7.5.288.23 # https://github.com/pmed/v8-nuget/
  13. #gclient sync -r 8.0.426.15 # stupid test
  14. #gclient sync -r 7.2.1 # stupid test
  15. # old version
  16. # git checkout 5.5.372.7
  17. # Looks like we have to use GN now: https://github.com/v8/v8/wiki/Building-with-GN
  18. # initial build
  19. # temp
  20. #rm -rf out/x64.release
  21. ./tools/dev/gm.py x64.release
  22. sed -i.bak 's/_LIBCPP_ABI_VERSION=Cr/_LIBCPP_ABI_VERSION=1/' build/config/c++/BUILD.gn
  23. # workaround, see notes.txt
  24. echo "v8_enable_embedded_builtins = false" | tee -a out/x64.release/args.gn
  25. echo "v8_use_external_startup_data = false" | tee -a out/x64.release/args.gn
  26. echo "v8_use_snapshot = false" | tee -a out/x64.release/args.gn
  27. echo "use_custom_libcxx = true" | tee -a out/x64.release/args.gn
  28. # possibly they use a different version of clang compiling v8.
  29. # however, I already set my own, probably newer clang version.
  30. # ran into: https://groups.google.com/forum/#!topic/v8-users/Jb1VSouy2Z0
  31. #echo "is_clang = false" | tee -a out/x64.release/args.gn
  32. # setting to true now, and see if we use this clang on starcry if it works..
  33. echo "is_clang = true" | tee -a out/x64.release/args.gn
  34. # produce monolith (single static all in one .a file)
  35. echo "v8_monolithic = true" | tee -a out/x64.release/args.gn
  36. ninja -C out/x64.release v8_monolith
  37. # produce .so files (shared libs)
  38. sed -i.bak '/^v8_monolithic/d' out/x64.release/args.gn
  39. echo "is_component_build = true" | tee -a out/x64.release/args.gn
  40. ninja -C out/x64.release