diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2015-11-08 16:50:49 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-08 09:46:01 -0800 |
commit | bc1473b1a05c2bd1dc51ebc49ccc68931c696b03 (patch) | |
tree | 584f63a5388ee92d77c13ef358e484e0802b22f4 | |
parent | f44d47325db3fdb9d09ff1ce9f905ceba0f9b56c (diff) | |
download | subsurface-bc1473b1a05c2bd1dc51ebc49ccc68931c696b03.tar.gz |
Android: disable ftdi on mac
Until we can get libftdi to build on mac we are better of just diabeling it.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | packaging/android/build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh index 124835d31..ba724cd85 100644 --- a/packaging/android/build.sh +++ b/packaging/android/build.sh @@ -234,7 +234,7 @@ fi if [ ! -e libftdi1-${LIBFTDI_VERSION} ] ; then tar -jxf libftdi1-${LIBFTDI_VERSION}.tar.bz2 fi -if [ ! -e $PKG_CONFIG_LIBDIR/libftdi1.pc ] ; then +if [ ! -e $PKG_CONFIG_LIBDIR/libftdi1.pc ] && [ $PLATFORM != Darwin ] ; then mkdir -p libftdi1-build-$ARCH pushd libftdi1-build-$ARCH cmake ../libftdi1-${LIBFTDI_VERSION} -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 @@ -278,8 +278,10 @@ fi # somehting in the qt-android-cmake-thingies mangles your path, so thats why we need to hard-code ant and pkg-config here. if [ $PLATFORM = Darwin ] ; then ANT=/usr/local/bin/ant + FTDI=OFF else ANT=/usr/bin/ant + FTDI=ON fi cmake $MOBILE_CMAKE \ -DQT_ANDROID_ANT=${ANT} \ @@ -297,7 +299,7 @@ cmake $MOBILE_CMAKE \ -DNO_USERMANUAL=ON \ -DCMAKE_PREFIX_PATH:UNINITIALIZED=${QT5_ANDROID}/android_${QT_ARCH}/lib/cmake \ -DCMAKE_BUILD_TYPE=Debug \ - -DFTDISUPPORT=ON \ + -DFTDISUPPORT=${FTDI} \ $SUBSURFACE_SOURCE make #make install INSTALL_ROOT=android_build |