aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-27 23:57:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-27 23:57:16 +0200
commit1963538d18459e1e9f09808912cb0aae9ace1f3c (patch)
treec1b98011494ac6559eade509195118bdf53344df /build.sh
parentb5b996507c6287b5216a7c628adfdf23ec7dc4a2 (diff)
Use bpkg structs in package
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