From 972a4730c3092b89846714f8f48a9633ad037dba Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 15 Oct 2017 21:49:50 -0400 Subject: build.sh: add option for force BT support off Signed-off-by: Dirk Hohndel --- scripts/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/build.sh') 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 -- cgit v1.2.3-70-g09d2