mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e19d38193d
commit
fdef2adfae
1 changed files with 8 additions and 2 deletions
|
@ -101,16 +101,22 @@ cd src/lib/marble
|
||||||
make -j4
|
make -j4
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
if [ $PLATFORM = Darwin ] ; then
|
||||||
|
SH_LIB_EXT=dylib
|
||||||
|
else
|
||||||
|
SH_LIB_EXT=so
|
||||||
|
fi
|
||||||
|
|
||||||
cd $SRC/subsurface
|
cd $SRC/subsurface
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT .. \
|
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT .. \
|
||||||
-DLIBGIT2_INCLUDE_DIR=$INSTALL_ROOT/include \
|
-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_INCLUDE_DIR=$INSTALL_ROOT/include \
|
||||||
-DLIBDIVECOMPUTER_LIBRARIES=$INSTALL_ROOT/lib/libdivecomputer.a \
|
-DLIBDIVECOMPUTER_LIBRARIES=$INSTALL_ROOT/lib/libdivecomputer.a \
|
||||||
-DMARBLE_INCLUDE_DIR=$INSTALL_ROOT/include \
|
-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 -j4
|
||||||
make install
|
make install
|
||||||
|
|
Loading…
Add table
Reference in a new issue