summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2015-04-27 13:18:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-27 06:10:31 -0700
commitfdef2adfae0dafbcb3bb7b4132e94eb937f2c622 (patch)
treeec3f85bd22ff5f4f77689b4b7997e382d66a26cd /scripts
parente19d38193dc30adca60f992b3975625314e5ecc5 (diff)
downloadsubsurface-fdef2adfae0dafbcb3bb7b4132e94eb937f2c622.tar.gz
Set the shared library file extenstion for the specific platform.
The shared library extension differs on MacOS. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 20892691d..f4db5518d 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -101,16 +101,22 @@ cd src/lib/marble
make -j4
make install
+if [ $PLATFORM = Darwin ] ; then
+ SH_LIB_EXT=dylib
+else
+ SH_LIB_EXT=so
+fi
+
cd $SRC/subsurface
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT .. \
-DLIBGIT2_INCLUDE_DIR=$INSTALL_ROOT/include \
- -DLIBGIT2_LIBRARIES=$INSTALL_ROOT/lib/libgit2.dylib \
+ -DLIBGIT2_LIBRARIES=$INSTALL_ROOT/lib/libgit2.$SH_LIB_EXT \
-DLIBDIVECOMPUTER_INCLUDE_DIR=$INSTALL_ROOT/include \
-DLIBDIVECOMPUTER_LIBRARIES=$INSTALL_ROOT/lib/libdivecomputer.a \
-DMARBLE_INCLUDE_DIR=$INSTALL_ROOT/include \
- -DMARBLE_LIBRARIES=$INSTALL_ROOT/lib/libssrfmarblewidget.dylib
+ -DMARBLE_LIBRARIES=$INSTALL_ROOT/lib/libssrfmarblewidget.$SH_LIB_EXT
make -j4
make install