aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 6 insertions, 2 deletions
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 <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 \
- -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