aboutsummaryrefslogtreecommitdiff
path: root/bdep/odb.sh
blob: a2596e39260260b1bc324d4f55e6cb93b4fe71e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /usr/bin/env bash

trap 'exit 1' ERR

odb=odb
lib="\
-I$HOME/work/odb/builds/default/libodb-sqlite-default \
-I$HOME/work/odb/libodb-sqlite \
-I$HOME/work/odb/builds/default/libodb-default \
-I$HOME/work/odb/libodb"

$odb $lib -I.. -I../../libbpkg -I../../libbutl                        \
    -DLIBODB_BUILD2 -DLIBODB_SQLITE_BUILD2 --generate-schema          \
    -d sqlite --std c++14 --generate-query                            \
    --odb-epilogue '#include <bdep/wrapper-traits.hxx>'               \
    --hxx-prologue '#include <bdep/wrapper-traits.hxx>'               \
    --hxx-prologue '#include <bdep/value-traits.hxx>'                 \
    --include-with-brackets --include-prefix bdep --guard-prefix BDEP \
    --sqlite-override-null project.hxx

$odb $lib -I.. -I../../libbpkg -I../../libbutl                        \
    -DLIBODB_BUILD2 -DLIBODB_SQLITE_BUILD2                            \
    -d sqlite --std c++14 --generate-query                            \
    --odb-epilogue '#include <bdep/wrapper-traits.hxx>'               \
    --hxx-prologue '#include <bdep/wrapper-traits.hxx>'               \
    --include-with-brackets --include-prefix bdep --guard-prefix BDEP \
    --sqlite-override-null database-views.hxx