summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-25 14:19:44 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-25 14:27:48 +0200
commit922bb49f892e6da8d0dd6eaae3edff62ab300980 (patch)
treedf5489b926fc7e728e11f122a249e35964cd0aa9 /test
parentad32ee8f80fabe4d2da81fa944be3c1aca7269d0 (diff)
Update mingw build script to include pgsql
Diffstat (limited to 'test')
-rwxr-xr-xtest/windows/odb/mingw/build9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/windows/odb/mingw/build b/test/windows/odb/mingw/build
index 9065265..bf65db2 100755
--- a/test/windows/odb/mingw/build
+++ b/test/windows/odb/mingw/build
@@ -23,15 +23,17 @@ function clean ()
ROOT=/c/projects
MYSQL=$ROOT/mysql-mingw32
SQLITE=$ROOT/sqlite-mingw32
+PGSQL=$ROOT/pgsql-mingw32
BOOST=$ROOT/boost-mingw32
QTCORE=$ROOT/qtcore-mingw32
-CPPFLAGS="-I$BOOST -I$QTCORE/include -I$QTCORE/include/QtCore -I$SQLITE -I$MYSQL/include"
-LDFLAGS="-L$BOOST/stage/lib -L$QTCORE/lib -L$SQLITE -L$MYSQL/lib -Wl,--enable-auto-import"
+CPPFLAGS="-I$BOOST -I$QTCORE/include -I$QTCORE/include/QtCore -I$PGSQL/include -I$SQLITE -I$MYSQL/include"
+LDFLAGS="-L$BOOST/stage/lib -L$QTCORE/lib -L$PGSQL/lib -L$SQLITE -L$MYSQL/lib -Wl,--enable-auto-import"
PATH="$QTCORE/bin:$PATH"
mysql_options="--with-mysql-host=192.168.0.5 --with-mysql-client=$MYSQL/bin/mysql.exe"
sqlite_options="--with-sqlite-db=c:\\projects\\odb\\odb_test.db"
+pgsql_options="--with-pgsql-host=192.168.0.5 --with-pgsql-client=$PGSQL/bin/psql.exe"
test=n
rebuild=n
@@ -60,13 +62,14 @@ while [ $# -gt 0 ]; do
done
if [ "$db" = "" ]; then
- db="sqlite mysql"
+ db="pgsql sqlite mysql"
fi
# Clean everything up if we are rebuilding.
#
if [ $rebuild = y ]; then
clean libodb
+ clean libodb-pgsql
clean libodb-sqlite
clean libodb-mysql
clean libodb-tracer