From 1963538d18459e1e9f09808912cb0aae9ace1f3c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 27 Jun 2015 23:57:16 +0200 Subject: Use bpkg structs in package --- build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index ef4e11a..8ff422e 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,11 @@ 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 ' \ + --hxx-prologue '#include ' \ + -I .. -I ../../libbpkg -I ../../libbutl \ package; cd .. -g++ -shared $DEBUG -std=c++11 -I. -I/usr/include/apr-1 \ - -fPIC -o libbrep.so `find . -name '*.cxx'` -lodb-pgsql -lodb +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 -- cgit v1.1