aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-15 21:49:50 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-15 21:49:50 -0400
commit972a4730c3092b89846714f8f48a9633ad037dba (patch)
tree3266e93a0d63afa4458be678095fb5e9e368bc79
parenta48a42efe07273d042bde4a806771409a0f227b3 (diff)
downloadsubsurface-972a4730c3092b89846714f8f48a9633ad037dba.tar.gz
build.sh: add option for force BT support off
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xscripts/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 41ada3654..d61a91306 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -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