mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:43:25 +00:00
Android build: don't link against libssh2
We don't use ssh-based git in Subsurface-mobile, so there's no reason to link against it. This should hopefully fix the current issues with the Android APK on some devices. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0a6f6b4382
commit
7a55eeeb07
1 changed files with 3 additions and 26 deletions
|
@ -56,7 +56,6 @@ LIBXML2_VERSION=2.9.4
|
||||||
LIBXSLT_VERSION=1.1.29
|
LIBXSLT_VERSION=1.1.29
|
||||||
LIBZIP_VERSION=1.1.3
|
LIBZIP_VERSION=1.1.3
|
||||||
LIBGIT2_VERSION=0.24.1
|
LIBGIT2_VERSION=0.24.1
|
||||||
LIBSSH2_VERSION=1.7.0
|
|
||||||
LIBUSB_VERSION=1.0.20
|
LIBUSB_VERSION=1.0.20
|
||||||
OPENSSL_VERSION=1.0.2h
|
OPENSSL_VERSION=1.0.2h
|
||||||
LIBFTDI_VERSION=1.3
|
LIBFTDI_VERSION=1.3
|
||||||
|
@ -185,35 +184,13 @@ if [ ! -e $PKG_CONFIG_LIBDIR/libssl.pc ] ; then
|
||||||
CC=gcc \
|
CC=gcc \
|
||||||
ANDROID_DEV=$PREFIX \
|
ANDROID_DEV=$PREFIX \
|
||||||
bash -x ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=$PREFIX
|
bash -x ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=$PREFIX
|
||||||
|
# sed -i.bak -e 's/soname=\$\$SHLIB\$\$SHLIB_SOVER\$\$SHLIB_SUFFIX/soname=\$\$SHLIB/g' Makefile.shared
|
||||||
make depend
|
make depend
|
||||||
make
|
make
|
||||||
make install_sw
|
make install_sw
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e libssh2-${LIBSSH2_VERSION}.tar.gz ] ; then
|
|
||||||
wget http://www.libssh2.org/download/libssh2-${LIBSSH2_VERSION}.tar.gz
|
|
||||||
fi
|
|
||||||
if [ ! -e libssh2-${LIBSSH2_VERSION} ] ; then
|
|
||||||
tar -zxf libssh2-${LIBSSH2_VERSION}.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove openssl engine support in libssh2 1.7.0
|
|
||||||
perl -pi -e 's,^(#include <openssl/engine.h>)$,/*$1*/,' libssh2-${LIBSSH2_VERSION}/src/openssl.h
|
|
||||||
perl -pi -e 's,ENGINE_load_builtin_engines\(\);,,' libssh2-${LIBSSH2_VERSION}/src/openssl.h
|
|
||||||
perl -pi -e 's,ENGINE_register_all_complete\(\),,' libssh2-${LIBSSH2_VERSION}/src/openssl.h
|
|
||||||
|
|
||||||
if [ ! -e $PKG_CONFIG_LIBDIR/libssh2.pc ] ; then
|
|
||||||
mkdir -p libssh2-build-$ARCH
|
|
||||||
pushd libssh2-build-$ARCH
|
|
||||||
../libssh2-${LIBSSH2_VERSION}/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-shared --disable-static
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
# Patch away pkg-config dependency to zlib, its there, i promise
|
|
||||||
perl -pi -e 's/^(Requires.private:.*),zlib$/$1 $2/' $PKG_CONFIG_LIBDIR/libssh2.pc
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e libgit2-${LIBGIT2_VERSION}.tar.gz ] ; then
|
if [ ! -e libgit2-${LIBGIT2_VERSION}.tar.gz ] ; then
|
||||||
wget -O libgit2-${LIBGIT2_VERSION}.tar.gz https://github.com/libgit2/libgit2/archive/v${LIBGIT2_VERSION}.tar.gz
|
wget -O libgit2-${LIBGIT2_VERSION}.tar.gz https://github.com/libgit2/libgit2/archive/v${LIBGIT2_VERSION}.tar.gz
|
||||||
fi
|
fi
|
||||||
|
@ -227,7 +204,7 @@ if [ ! -e $PKG_CONFIG_LIBDIR/libgit2.pc ] ; then
|
||||||
-DBUILD_CLAR=OFF -DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_CLAR=OFF -DBUILD_SHARED_LIBS=OFF \
|
||||||
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
|
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
|
||||||
-DCURL=OFF \
|
-DCURL=OFF \
|
||||||
-DUSE_SSH=ON \
|
-DUSE_SSH=OFF \
|
||||||
-DOPENSSL_SSL_LIBRARY=${PREFIX}/lib/libssl.so \
|
-DOPENSSL_SSL_LIBRARY=${PREFIX}/lib/libssl.so \
|
||||||
-DOPENSSL_CRYPTO_LIBRARY=${PREFIX}/lib/libcrypto.so \
|
-DOPENSSL_CRYPTO_LIBRARY=${PREFIX}/lib/libcrypto.so \
|
||||||
-DOPENSSL_INCLUDE_DIR=${PREFIX}/include/openssl \
|
-DOPENSSL_INCLUDE_DIR=${PREFIX}/include/openssl \
|
||||||
|
@ -344,7 +321,7 @@ cmake $MOBILE_CMAKE \
|
||||||
-DQT_ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT \
|
-DQT_ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=$BUILDROOT/qt-android-cmake/toolchain/android.toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=$BUILDROOT/qt-android-cmake/toolchain/android.toolchain.cmake \
|
||||||
-DQT_ANDROID_CMAKE=$BUILDROOT/qt-android-cmake/AddQtAndroidApk.cmake \
|
-DQT_ANDROID_CMAKE=$BUILDROOT/qt-android-cmake/AddQtAndroidApk.cmake \
|
||||||
-DFORCE_LIBSSH=ON \
|
-DFORCE_LIBSSH=OFF \
|
||||||
-DLIBDC_FROM_PKGCONFIG=ON \
|
-DLIBDC_FROM_PKGCONFIG=ON \
|
||||||
-DLIBGIT2_FROM_PKGCONFIG=ON \
|
-DLIBGIT2_FROM_PKGCONFIG=ON \
|
||||||
-DNO_MARBLE=ON \
|
-DNO_MARBLE=ON \
|
||||||
|
|
Loading…
Add table
Reference in a new issue