aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 8ff422ec51dd8f4994a04497ac1d5bd6ab05cf00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
DEBUG="-g -ggdb -fno-inline"

cd ./brep; cli --generate-file-scanner --suppress-usage --hxx-suffix "" \
	       --option-prefix "" ./options.cli; cd ..

cd ./brep; odb -d pgsql --std c++11 --generate-query --generate-schema \
               --odb-epilogue '#include <brep/wrapper-traits>' \
               --hxx-prologue '#include <brep/wrapper-traits>' \
	       -I .. -I ../../libbpkg -I ../../libbutl \
	       package; cd ..

g++ -shared $DEBUG -std=c++11 -I. -I/usr/include/apr-1 -I ../libbpkg \
     -I ../libbutl -L ../libbpkg/bpkg \
    -fPIC -o libbrep.so `find . -name '*.cxx'` -lbpkg -lodb-pgsql -lodb