aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/android
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-11-24 11:08:11 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-22 13:02:39 +1300
commit5f0ce375594a9b718f6b2ee67aaa6a6699d298f2 (patch)
tree1a117861f114bc33d326c342b77725daee8177f3 /packaging/android
parent7f4180a777be52780d755116e42757fe22c548f3 (diff)
downloadsubsurface-5f0ce375594a9b718f6b2ee67aaa6a6699d298f2.tar.gz
Android build: build openssl before libzip
On very clean builds not using the wrapper script, the compile of libzip simply fails because it depend on openssl include files. Simply swap them around. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'packaging/android')
-rwxr-xr-xpackaging/android/build.sh45
1 files changed, 23 insertions, 22 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index 09f2af8ad..ee3aa8271 100755
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -235,28 +235,6 @@ if [ "$QUICK" = "" ] ; then
popd
fi
- "${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . libzip
- if [ ! -e "$PKG_CONFIG_LIBDIR/libzip.pc" ] ; then
- # libzip expects a predefined macro that isn't there for our compiler
- pushd libzip
- git reset --hard
- sed -i 's/SIZEOF_SIZE_T/__SIZEOF_SIZE_T__/g' lib/compat.h
- # also, don't deal with manuals and bzip2
- sed -i 's/ADD_SUBDIRECTORY(man)//;s/FIND_PACKAGE(BZip2)/# FIND_PACKAGE(BZip2)/' CMakeLists.txt
- popd
- mkdir -p libzip-build-"$ARCH"
- pushd libzip-build-"$ARCH"
- cmake \
- -DCMAKE_C_COMPILER="$CC" \
- -DCMAKE_LINKER="$CC" \
- -DCMAKE_INSTALL_PREFIX="$PREFIX" \
- -DCMAKE_INSTALL_LIBDIR="lib" \
- -DBUILD_SHARED_LIBS=OFF \
- ../libzip/
- make
- make install
- popd
- fi
"${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . openssl
if [ ! -e "$PKG_CONFIG_LIBDIR/libssl.pc" ] ; then
@@ -282,6 +260,29 @@ if [ "$QUICK" = "" ] ; then
popd
fi
+"${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . libzip
+ if [ ! -e "$PKG_CONFIG_LIBDIR/libzip.pc" ] ; then
+ # libzip expects a predefined macro that isn't there for our compiler
+ pushd libzip
+ git reset --hard
+ sed -i 's/SIZEOF_SIZE_T/__SIZEOF_SIZE_T__/g' lib/compat.h
+ # also, don't deal with manuals and bzip2
+ sed -i 's/ADD_SUBDIRECTORY(man)//;s/FIND_PACKAGE(BZip2)/# FIND_PACKAGE(BZip2)/' CMakeLists.txt
+ popd
+ mkdir -p libzip-build-"$ARCH"
+ pushd libzip-build-"$ARCH"
+ cmake \
+ -DCMAKE_C_COMPILER="$CC" \
+ -DCMAKE_LINKER="$CC" \
+ -DCMAKE_INSTALL_PREFIX="$PREFIX" \
+ -DCMAKE_INSTALL_LIBDIR="lib" \
+ -DBUILD_SHARED_LIBS=OFF \
+ ../libzip/
+ make
+ make install
+ popd
+ fi
+
"${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . libgit2
if [ ! -e "$PKG_CONFIG_LIBDIR/libgit2.pc" ] ; then
# We don't want to find the HTTP_Parser package of the build host by mistake