diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-04 11:53:31 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-04 11:53:31 -0700 |
commit | d9606022b414c61741a31f980ddabc0741799da8 (patch) | |
tree | 339ce8970582205625643bf89f95e39f7ce6353c | |
parent | a798bb010c63e84e2c4551b2ff73435cae2b3126 (diff) | |
download | subsurface-d9606022b414c61741a31f980ddabc0741799da8.tar.gz |
Build script: Integrate Grantlee & build Subsurface with printing
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-x | scripts/build.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index c740e8be0..829659f9a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -145,6 +145,33 @@ cd src/lib/marble make -j4 make install +# build grantlee + +cd $SRC + +if [ ! -d grantlee ] ; then + if [[ $1 = local ]] ; then + git clone $SRC/../grantlee grantlee + else + git clone git://gitorious.org/grantlee/grantlee + fi +fi +cd grantlee +if [ ! git checkout v5.0.0 ] ; then + echo "can't check out v5.0.0 of grantlee -- giving up" + exit 1 +fi +mkdir -p build +cd build +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT \ + -DBUILD__TESTS=NO \ + $SRC/grantlee +make -j4 +make install + +# finally, build Subsurface + if [ $PLATFORM = Darwin ] ; then SH_LIB_EXT=dylib else @@ -161,6 +188,7 @@ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT .. \ -DLIBDIVECOMPUTER_LIBRARIES=$INSTALL_ROOT/lib/libdivecomputer.a \ -DMARBLE_INCLUDE_DIR=$INSTALL_ROOT/include \ -DMARBLE_LIBRARIES=$INSTALL_ROOT/lib/libssrfmarblewidget.$SH_LIB_EXT \ + -DNO_PRINTING=OFF \ -DUSE_LIBGIT23_API=1 if [ $PLATFORM = Darwin ] ; then |