mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build.sh: don't build Grantlee for Subsurface-mobile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a7f8a7574e
commit
0d9b22cf94
1 changed files with 22 additions and 20 deletions
|
@ -141,30 +141,32 @@ if [ $PLATFORM = Darwin ] ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build grantlee
|
if [ "$SUBSURFACE_EXECUTABLE" = "DesktopExecutable" ] ; then
|
||||||
|
# build grantlee
|
||||||
|
|
||||||
cd $SRC
|
cd $SRC
|
||||||
|
|
||||||
if [ ! -d grantlee ] ; then
|
if [ ! -d grantlee ] ; then
|
||||||
if [[ $1 = local ]] ; then
|
if [[ $1 = local ]] ; then
|
||||||
git clone $SRC/../grantlee grantlee
|
git clone $SRC/../grantlee grantlee
|
||||||
else
|
else
|
||||||
git clone git://subsurface-divelog.org/grantlee
|
git clone git://subsurface-divelog.org/grantlee
|
||||||
|
fi
|
||||||
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
|
||||||
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
|
|
||||||
|
|
||||||
# pull the plasma-mobile components from upstream if building Subsurface-mobile
|
# pull the plasma-mobile components from upstream if building Subsurface-mobile
|
||||||
if [ "$SUBSURFACE_EXECUTABLE" = "MobileExecutable" ] ; then
|
if [ "$SUBSURFACE_EXECUTABLE" = "MobileExecutable" ] ; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue