No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

72 líneas
2.9KB

  1. SHELL:=/bin/bash
  2. ubuntu2004:
  3. git clone https://github.com/rayburgemeestre/fmt --branch 7.1.3
  4. bash ../ubuntu2004.sh make impl
  5. bash ../ubuntu2004.sh make impl-emscripten
  6. make package-ubuntu2004
  7. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  8. ubuntu2204:
  9. git clone https://github.com/rayburgemeestre/fmt --branch 7.1.3
  10. bash ../ubuntu2204.sh make impl
  11. bash ../ubuntu2204.sh make impl-emscripten
  12. make package-ubuntu2204
  13. bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  14. ubuntu2404:
  15. git clone https://github.com/rayburgemeestre/fmt --branch 7.1.3
  16. bash ../ubuntu2404.sh make impl
  17. bash ../ubuntu2404.sh make impl-emscripten
  18. make package-ubuntu2404
  19. bash ../ubuntu2404.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  20. impl:
  21. switch-to-latest-clang
  22. apt-get update && apt-get install libz-dev -y && \
  23. pushd fmt && \
  24. mkdir build && pushd build && \
  25. CXX=$$(which c++) cmake -DCMAKE_C_FLAGS=-fPIC -DFMT_TEST=off -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=$$PWD/fmt_out .. && \
  26. make -j $$(nproc) && \
  27. make install
  28. impl-emscripten:
  29. switch-to-latest-clang
  30. apt-get update && apt-get install libz-dev -y && \
  31. pushd fmt && \
  32. mkdir build2 && pushd build2 && \
  33. CXX=/emsdk/upstream/emscripten/em++ cmake -DFMT_TEST=off -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=$$PWD/fmt_out .. && \
  34. make -j $$(nproc) && \
  35. make install
  36. package-ubuntu2004:
  37. rm -rf out
  38. mkdir -p out/opt/cppse/build/fmt
  39. cp -prv fmt/build/fmt_out/* out/opt/cppse/build/fmt/
  40. cp -prv fmt/build2/fmt_out/lib/libfmt.a out/opt/cppse/build/fmt/lib/libfmt-em.a
  41. rm -rf fmt_*_amd64.deb
  42. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n fmt --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fmt - build dependency" --url "https://github.com/mattgodbolt/fmt" --deb-generate-changes -C /src/out
  43. package-ubuntu2204:
  44. rm -rf out
  45. mkdir -p out/opt/cppse/build/fmt
  46. cp -prv fmt/build/fmt_out/* out/opt/cppse/build/fmt/
  47. cp -prv fmt/build2/fmt_out/lib/libfmt.a out/opt/cppse/build/fmt/lib/libfmt-em.a
  48. rm -rf fmt_*_amd64.deb
  49. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1.1 -s dir -t deb -n fmt --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fmt - build dependency" --url "https://github.com/mattgodbolt/fmt" --deb-generate-changes -C /src/out
  50. package-ubuntu2404:
  51. rm -rf out
  52. mkdir -p out/opt/cppse/build/fmt
  53. cp -prv fmt/build/fmt_out/* out/opt/cppse/build/fmt/
  54. cp -prv fmt/build2/fmt_out/lib/libfmt.a out/opt/cppse/build/fmt/lib/libfmt-em.a
  55. rm -rf fmt_*_amd64.deb
  56. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v 1.1.1 -s dir -t deb -n fmt --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fmt - build dependency" --url "https://github.com/mattgodbolt/fmt" --deb-generate-changes -C /src/out
  57. clean:
  58. rm -rf fmt
  59. rm -rf out
  60. shell:
  61. FLAGS="-i --privileged" bash ../ubuntu2004.sh /bin/bash