summaryrefslogtreecommitdiff
path: root/dist.sh
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-03-30 16:52:10 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-04-22 17:52:55 +0200
commit851daff69fc6487d6cba853d2c0db802031c660b (patch)
tree9fb71c8ed9af369cdb4f9bb1edc92afa69810147 /dist.sh
parent78377242a75057a6f82a608c0aac9ea737ba8f53 (diff)
Add code for Qt profile dist build
Diffstat (limited to 'dist.sh')
-rwxr-xr-xdist.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/dist.sh b/dist.sh
index 37aa447..932b1c5 100755
--- a/dist.sh
+++ b/dist.sh
@@ -71,6 +71,7 @@ if [ $rebuild = y ]; then
rm -rf $out_root/libodb-mysql/*
rm -rf $out_root/libodb-tracer/*
rm -rf $out_root/libodb-boost/*
+ rm -rf $out_root/libodb-qt/*
rm -rf $out_root/odb-tests/* $out_root/odb-tests-*
rm -rf $out_root/odb-examples/* $out_root/odb-examples-*
@@ -86,6 +87,7 @@ mkdir -p $out_root/libodb
mkdir -p $out_root/libodb-mysql
mkdir -p $out_root/libodb-tracer
mkdir -p $out_root/libodb-boost
+mkdir -p $out_root/libodb-qt
mkdir -p $out_root/odb-tests
mkdir -p $out_root/odb-examples
@@ -226,6 +228,26 @@ cp $out_root/libodb-boost/libodb-boost-$ver.zip $out_root/pack/
cp $out_root/libodb-boost/libodb-boost-$ver.tar.gz $out_root/pack/
cp $out_root/libodb-boost/libodb-boost-$ver.tar.bz2 $out_root/pack/
+# Build libodb-qt
+#
+make -C $src_root/libodb-qt dist dist_prefix=$out_root/libodb-qt
+
+cd $out_root/libodb-qt
+
+if [ $rebuild = y ]; then
+ ./bootstrap
+ ./configure --with-libodb=../libodb CXXFLAGS="$CXXFLAGS"
+fi
+
+make -j 8
+make dist
+
+cd $wd
+
+cp $out_root/libodb-qt/libodb-qt-$ver.zip $out_root/pack/
+cp $out_root/libodb-qt/libodb-qt-$ver.tar.gz $out_root/pack/
+cp $out_root/libodb-qt/libodb-qt-$ver.tar.bz2 $out_root/pack/
+
# Build odb-tests
#
make -C $src_root/tests-mysql -f $src_root/tests/makefile dist \
@@ -252,6 +274,7 @@ for d in $db; do
--with-libodb-tracer=../libodb-tracer \
--with-libodb-$d=../libodb-$d \
--with-libodb-boost=../libodb-boost \
+--with-libodb-qt=../libodb-qt \
CXXFLAGS="$CXXFLAGS" \
ODB=$odb
fi
@@ -298,6 +321,7 @@ for d in $db; do
--with-libodb=../libodb \
--with-libodb-$d=../libodb-$d \
--with-libodb-boost=../libodb-boost \
+--with-libodb-qt=../libodb-qt \
CXXFLAGS="$CXXFLAGS" \
ODB=$odb
fi