aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/android/build.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-15 18:16:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-16 07:58:20 -0700
commit7719373f1a028939d135d2796e07512ff82d47e5 (patch)
tree49c4cd67698cac8c2713e162c7efa7cee61519c2 /packaging/android/build.sh
parent2265a27912dca82cd7bbf51dadadf25be5084174 (diff)
downloadsubsurface-7719373f1a028939d135d2796e07512ff82d47e5.tar.gz
Android: remove legacy FTDI support
This works on almost no devices anymore and has been replaced by the USB serial support for Android. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/android/build.sh')
-rwxr-xr-xpackaging/android/build.sh22
1 files changed, 1 insertions, 21 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index 70c73b060..018380349 100755
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -344,20 +344,6 @@ if [ "$QUICK" = "" ] ; then
popd
fi
- "${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . libftdi1
- if [ ! -e "$PKG_CONFIG_LIBDIR/libftdi1.pc" ] && [ "$PLATFORM" != "Darwin" ] ; then
- mkdir -p libftdi1-build-"$ARCH"
- pushd libftdi1-build-"$ARCH"
- cmake ../libftdi1 -DCMAKE_C_COMPILER="$CC" -DCMAKE_INSTALL_PREFIX="$PREFIX" -DCMAKE_PREFIX_PATH="$PREFIX" -DSTATICLIBS=ON -DPYTHON_BINDINGS=OFF -DDOCUMENTATION=OFF -DFTDIPP=OFF -DBUILD_TESTS=OFF -DEXAMPLES=OFF -DFTDI_EEPROM=OFF
- make
- make install
- popd
- fi
- # Blast away the shared version to force static linking
- if [ -e "$PREFIX/lib/libftdi1.so" ] ; then
- rm "$PREFIX"/lib/libftdi1.so*
- fi
-
fi # QUICK
pushd "$SUBSURFACE_SOURCE"
@@ -408,12 +394,6 @@ else
BUILD_NAME=Subsurface
fi
-if [ "$PLATFORM" = "Darwin" ] ; then
- FTDI=OFF
-else
- FTDI=ON
-fi
-
PKGCONF=$(which pkg-config)
cmake $MOBILE_CMAKE \
-DCMAKE_SYSTEM_NAME="Android" \
@@ -434,7 +414,7 @@ cmake $MOBILE_CMAKE \
-DCMAKE_PREFIX_PATH:UNINITIALIZED="$QT5_ANDROID_CMAKE" \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
-DMAKE_TESTS=OFF \
- -DFTDISUPPORT=${FTDI} \
+ -DFTDISUPPORT=OFF \
-DANDROID_NATIVE_LIBSSL="$BUILDROOT/ndk-$ARCH/sysroot/usr/lib/libssl_1_1.so" \
-DANDROID_NATIVE_LIBCRYPT="$BUILDROOT/ndk-$ARCH/sysroot/usr/lib/libcrypto_1_1.so" \
-DCMAKE_MAKE_PROGRAM="make" \