Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

43 lines
1.6KB

  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. # old version
  14. # git checkout 5.5.372.7
  15. # Looks like we have to use GN now: https://github.com/v8/v8/wiki/Building-with-GN
  16. # initial build
  17. ./tools/dev/gm.py x64.release
  18. # workaround, see notes.txt
  19. echo "v8_enable_embedded_builtins = false" | tee -a out/x64.release/args.gn
  20. echo "v8_use_external_startup_data = false" | tee -a out/x64.release/args.gn
  21. echo "v8_use_snapshot = false" | tee -a out/x64.release/args.gn
  22. echo "use_custom_libcxx = false" | tee -a out/x64.release/args.gn
  23. # possibly they use a different version of clang compiling v8.
  24. # however, I already set my own, probably newer clang version.
  25. # ran into: https://groups.google.com/forum/#!topic/v8-users/Jb1VSouy2Z0
  26. echo "is_clang = false" | tee -a out/x64.release/args.gn
  27. # produce monolith (single static all in one .a file)
  28. echo "v8_monolithic = true" | tee -a out/x64.release/args.gn
  29. ninja -C out/x64.release v8_monolith
  30. # produce .so files (shared libs)
  31. sed -i.bak '/^v8_monolithic/d' out/x64.release/args.gn
  32. echo "is_component_build = true" | tee -a out/x64.release/args.gn
  33. ninja -C out/x64.release