You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 line
1.4KB

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