mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build.sh: add option for force BT support off
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a48a42efe0
commit
972a4730c3
1 changed files with 6 additions and 0 deletions
|
@ -21,10 +21,15 @@ exec 1> >(tee build.log) 2>&1
|
|||
SRC=$(pwd)
|
||||
PLATFORM=$(uname)
|
||||
|
||||
BTSUPPORT="ON"
|
||||
|
||||
# deal with all the command line arguments
|
||||
while [[ $# -gt 0 ]] ; do
|
||||
arg="$1"
|
||||
case $arg in
|
||||
-no-bt)
|
||||
# force Bluetooth support off
|
||||
BTSUPPORT="OFF"
|
||||
-build-deps)
|
||||
# in order to build the dependencies on Mac for release builds (to deal with the macosx-version-min for those
|
||||
# call this script with -build-deps
|
||||
|
@ -468,6 +473,7 @@ for (( i=0 ; i < ${#BUILDS[@]} ; i++ )) ; do
|
|||
-DLIBDIVECOMPUTER_INCLUDE_DIR=$INSTALL_ROOT/include \
|
||||
-DLIBDIVECOMPUTER_LIBRARIES=$INSTALL_ROOT/lib/libdivecomputer.a \
|
||||
-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH \
|
||||
-DBTSUPPORT=${BTSUPPORT} \
|
||||
$PRINTING $EXTRA_OPTS
|
||||
|
||||
if [ $PLATFORM = Darwin ] ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue