aboutsummaryrefslogtreecommitdiff
path: root/bpkg/odb.sh
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-01 13:50:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-01 15:02:14 +0300
commit2319d01e262b705716e19474865f555f3ca81a7d (patch)
tree15ffb5b3f998a2cc0def729d2f1f76f578d8d139 /bpkg/odb.sh
parent5fb0df6f63e02c141e8a0e5ad4543dea525df3fc (diff)
Add hxx extension for headers and lib prefix for library dirs
Diffstat (limited to 'bpkg/odb.sh')
-rwxr-xr-xbpkg/odb.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/bpkg/odb.sh b/bpkg/odb.sh
index 1d8b66a..776cccb 100755
--- a/bpkg/odb.sh
+++ b/bpkg/odb.sh
@@ -9,9 +9,10 @@ lib="\
-I$HOME/work/odb/libodb-default \
-I$HOME/work/odb/libodb"
-$odb $lib -I.. -I../../libbpkg -I../../libbutl \
- -d sqlite --std c++11 --hxx-suffix "" --generate-query --generate-schema \
- --odb-epilogue '#include <bpkg/wrapper-traits>' \
- --hxx-prologue '#include <bpkg/wrapper-traits>' \
- --include-with-brackets --include-prefix bpkg --guard-prefix BPKG \
- --sqlite-override-null package
+$odb $lib -I.. -I../../libbpkg -I../../libbutl \
+ -DLIBODB_BUILD2 -DLIBODB_SQLITE_BUILD2 --generate-schema \
+ -d sqlite --std c++11 --hxx-suffix ".hxx" --generate-query \
+ --odb-epilogue '#include <bpkg/wrapper-traits.hxx>' \
+ --hxx-prologue '#include <bpkg/wrapper-traits.hxx>' \
+ --include-with-brackets --include-prefix bpkg --guard-prefix BPKG \
+ --sqlite-override-null package.hxx