Selaa lähdekoodia

Add benchmarklib project

master
Ray Burgemeestre 5 vuotta sitten
vanhempi
commit
fb75068c7c
1 muutettua tiedostoa jossa 29 lisäystä ja 0 poistoa
  1. +29
    -0
      benchmarklib/Makefile

+ 29
- 0
benchmarklib/Makefile Näytä tiedosto

@@ -0,0 +1,29 @@
SHELL:=/bin/bash

caf:
git clone https://bitbucket.org/rayburgemeestre/benchmarklib
pushd benchmarklib && git checkout master
bash ../ubuntu1804.sh make impl
make package

impl:
# TODO install boost from apt repo
# if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi
pushd benchmarklib && \
CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost . && \
make -j $$(nproc) && \
make install && \

package:
rm -rf out
mkdir -p out/opt/cppse/build/benchmarklib
cp -prv /path/to.a out/opt/cppse/build/benchmarklib/
rm -rf benchmarklib_1.0_amd64.deb
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://github.com/liballeg/benchmarklib.git" --deb-generate-changes -C /src/out

clean:
rm -rf benchmarklib
rm -rf out

shell:
FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash

Loading…
Peruuta
Tallenna