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.

32 líneas
1.1KB

  1. SHELL:=/bin/bash
  2. caf:
  3. git clone https://bitbucket.org/rayburgemeestre/benchmarklib
  4. pushd benchmarklib && git checkout master
  5. bash ../ubuntu1804.sh make impl
  6. make package
  7. impl:
  8. # TODO install boost from apt repo
  9. # if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi
  10. dpkg -i boost/pkg/*.deb
  11. pushd benchmarklib && \
  12. CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost . && \
  13. make -j $$(nproc) && \
  14. make install
  15. package:
  16. rm -rf out
  17. mkdir -p out/opt/cppse/build/benchmarklib/{include,lib}
  18. cp -prv /usr/local/lib/libbenchmarklib.a out/opt/cppse/build/benchmarklib/lib/
  19. cp -prv /usr/local/include/benchmark.h out/opt/cppse/build/benchmarklib/include/
  20. rm -rf benchmarklib_1.0_amd64.deb
  21. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n benchmarklib --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "benchmarklib - build dependency" --url "https://bitbucket.org/rayburgemeestre/benchmarklib" --deb-generate-changes -C /src/out
  22. clean:
  23. rm -rf benchmarklib
  24. rm -rf out
  25. shell:
  26. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash