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

48 lines
1.5KB

  1. SHELL:=/bin/bash
  2. v8pp:
  3. env
  4. git clone https://github.com/rayburgemeestre/v8pp
  5. bash ../ubuntu1804.sh make build
  6. bash ../ubuntu1804.sh make archive # outside container not enough permissions
  7. make package
  8. build:
  9. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 40
  10. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 40
  11. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 40
  12. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 40
  13. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-7 40
  14. apt-get update
  15. apt-get install pkg-config -y
  16. cd v8pp && ./build-v8.sh
  17. archive:
  18. rm -rf v8.a
  19. ar rvs v8.a $$(cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o')
  20. echo all included object files listed below
  21. cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o'
  22. echo all .so files listed below
  23. find ./ -name '*.so'
  24. package:
  25. rm -rf out
  26. rm -rf v8pp_1.0_amd64.deb
  27. mkdir -p out/opt/cppse/build/v8pp/lib
  28. mkdir -p out/opt/cppse/build/v8pp/include
  29. cp -prv v8.a out/opt/cppse/build/v8pp/lib
  30. cp -prv v8pp/v8pp out/opt/cppse/build/v8pp/include/
  31. cp -prv v8pp/v8/include out/opt/cppse/build/v8pp/include/v8
  32. 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
  33. clean:
  34. rm -rf v8pp
  35. rm -rf out
  36. shell:
  37. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash