diff options
author | Anton Lundin <glance@acc.umu.se> | 2016-08-17 21:37:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-08-17 21:44:31 -0700 |
commit | 11df8d9a906d0c75ffe598b1a88e51fe7db94209 (patch) | |
tree | acb36d86d86d384af7a25cb76f00aa6421a9e515 /scripts | |
parent | 04d8d7cb13286d763b0078c53e3671352c94b1c6 (diff) | |
download | subsurface-11df8d9a906d0c75ffe598b1a88e51fe7db94209.tar.gz |
scripts: Don't build marble for mobile
When only building the mobile version, we don't need to build marble.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 65bbcfb79..9f785db1a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -39,6 +39,7 @@ fi # if the first argument is "-mobile" then build Subsurface-mobile in subsurface/build-mobile # if the first argument is "-both" then build both in subsurface/build and subsurface/build-mobile BUILDGRANTLEE=0 +BUILDMARBLE=0 if [ "$1" = "-mobile" ] ; then echo "building Subsurface-mobile in subsurface/build-mobile" BUILDS=( "MobileExecutable" ) @@ -49,12 +50,14 @@ elif [ "$1" = "-both" ] ; then BUILDS=( "DesktopExecutable" "MobileExecutable" ) BUILDDIRS=( "build" "build-mobile" ) BUILDGRANTLEE=1 + BUILDMARBLE=1 shift else echo "building Subsurface in subsurface/build" BUILDS=( "DesktopExecutable" ) BUILDDIRS=( "build" ) BUILDGRANTLEE=1 + BUILDMARBLE=1 fi if [[ ! -d "subsurface" ]] ; then @@ -164,23 +167,25 @@ if [ $PLATFORM = Darwin ] ; then exit 1 fi fi -cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE -DQT5BUILD=ON \ - -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT \ - -DBUILD_MARBLE_TESTS=NO \ - -DWITH_DESIGNER_PLUGIN=NO \ - -DBUILD_MARBLE_APPS=NO \ - $SRC/marble-source -cd src/lib/marble -make -j4 -make install +if [ "$BUILDMARBLE" = "1" ] ; then + cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE -DQT5BUILD=ON \ + -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT \ + -DBUILD_MARBLE_TESTS=NO \ + -DWITH_DESIGNER_PLUGIN=NO \ + -DBUILD_MARBLE_APPS=NO \ + $SRC/marble-source + cd src/lib/marble + make -j4 + make install -if [ $PLATFORM = Darwin ] ; then - # in order for macdeployqt to do its job correctly, we need the full path in the dylib ID - cd $INSTALL_ROOT/lib - NAME=$(otool -L libssrfmarblewidget.dylib | grep -v : | head -1 | cut -f1 -d\ | tr -d '\t' | cut -f3 -d/ ) - echo $NAME | grep / > /dev/null 2>&1 - if [ $? -eq 1 ] ; then - install_name_tool -id "$INSTALL_ROOT/lib/$NAME" "$INSTALL_ROOT/lib/$NAME" + if [ $PLATFORM = Darwin ] ; then + # in order for macdeployqt to do its job correctly, we need the full path in the dylib ID + cd $INSTALL_ROOT/lib + NAME=$(otool -L libssrfmarblewidget.dylib | grep -v : | head -1 | cut -f1 -d\ | tr -d '\t' | cut -f3 -d/ ) + echo $NAME | grep / > /dev/null 2>&1 + if [ $? -eq 1 ] ; then + install_name_tool -id "$INSTALL_ROOT/lib/$NAME" "$INSTALL_ROOT/lib/$NAME" + fi fi fi |