mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
37476b34aa
commit
e77566e262
1 changed files with 23 additions and 22 deletions
|
@ -235,28 +235,6 @@ if [ "$QUICK" = "" ] ; then
|
||||||
popd
|
popd
|
||||||
fi
|
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
|
"${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . openssl
|
||||||
if [ ! -e "$PKG_CONFIG_LIBDIR/libssl.pc" ] ; then
|
if [ ! -e "$PKG_CONFIG_LIBDIR/libssl.pc" ] ; then
|
||||||
|
@ -282,6 +260,29 @@ if [ "$QUICK" = "" ] ; then
|
||||||
popd
|
popd
|
||||||
fi
|
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
|
"${SUBSURFACE_SOURCE}"/scripts/get-dep-lib.sh singleAndroid . libgit2
|
||||||
if [ ! -e "$PKG_CONFIG_LIBDIR/libgit2.pc" ] ; then
|
if [ ! -e "$PKG_CONFIG_LIBDIR/libgit2.pc" ] ; then
|
||||||
# We don't want to find the HTTP_Parser package of the build host by mistake
|
# We don't want to find the HTTP_Parser package of the build host by mistake
|
||||||
|
|
Loading…
Reference in a new issue