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

56 lines
1.8KB

  1. SHELL:=/bin/bash
  2. v8:
  3. # git clone https://github.com/rayburgemeestre/v8pp
  4. #
  5. git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
  6. bash ../ubuntu1804.sh make build
  7. bash ../ubuntu1804.sh make archive # outside container not enough permissions
  8. # will be factored out at some point
  9. git clone https://github.com/pmed/v8pp
  10. pushd v8pp && git checkout 8ad6c07b13a811d9132c202f48b4a902d5685a98 # master at time of writing
  11. # also packages v8pp for now
  12. make package
  13. build:
  14. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-9 40
  15. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-9 40
  16. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 40
  17. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 40
  18. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-9 40
  19. apt-get update
  20. apt-get install pkg-config -y
  21. ./build-v8.sh
  22. archive:
  23. rm -rf v8.a
  24. ar rvs v8.a $$(cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o')
  25. echo all included object files listed below
  26. cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o'
  27. echo all .so files listed below
  28. find ./ -name '*.so'
  29. package:
  30. rm -rf out
  31. rm -rf v8pp_1.0_amd64.deb
  32. mkdir -p out/opt/cppse/build/v8pp/lib
  33. mkdir -p out/opt/cppse/build/v8pp/include
  34. cp -prv v8.a out/opt/cppse/build/v8pp/lib
  35. cp -prv v8pp/v8pp out/opt/cppse/build/v8pp/include/
  36. cp -prv v8/include out/opt/cppse/build/v8pp/include/v8
  37. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n v8pp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "v8pp - build dependency" --url "https://github.com/rayburgemeestre/v8pp" --deb-generate-changes -C /src/out
  38. clean:
  39. rm -rf v8pp
  40. rm -rf out
  41. rm -rf depot_tools
  42. shell:
  43. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash