[PATCH] 2 Android related build patches

Jan Mulder jlmulder at xs4all.nl
Tue Feb 2 01:56:46 PST 2016


Attached 2 Android related build patches.

Subject: [PATCH 1/2] Build Android mobile app against latest OpenSSL

No reasons not to upgrade to the latest OpenSSL lib. The currently used
1.0.1 branch is ending end of 2016, so a switch to 1.0.2 is useful
anyway.

Signed-off-by: Jan Mulder <jlmulder at xs4all.nl>
---
  packaging/android/build.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index 2f03d4e..d9d9251 100644
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -38,7 +38,7 @@ LIBZIP_VERSION=0.11.2
  LIBGIT2_VERSION=0.23.4
  LIBSSH2_VERSION=1.6.0
  LIBUSB_VERSION=1.0.19
-OPENSSL_VERSION=1.0.1p
+OPENSSL_VERSION=1.0.2f
  LIBFTDI_VERSION=1.2
  
  # arm or x86
-- 

Subject: [PATCH 2/2] Simplify building of Android build from one source tree

Currently, when running the packaging/android/build.sh from a source
tree that has been used for desktop builds, libdivecomputer wants a
make distclean. This is inconvinient, and is caused by building
libdivecomputer in source. Now, configure and build libdivecomputer
in a new subdirectory, allowing to run the android build script
from the same source tree as the desktop (both desktop and mobile)
builds.

Signed-off-by: Jan Mulder <jlmulder at xs4all.nl>
---
  scripts/build.sh | 10 +++++++---
  1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/scripts/build.sh b/scripts/build.sh
index b313cec..79264b0 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -109,10 +109,14 @@ if ! git checkout Subsurface-branch ; then
  	echo "can't check out the Subsurface-branch branch of libdivecomputer -- giving up"
  	exit 1
  fi
-if [ ! -f configure ] ; then
-	autoreconf --install
+
+mkdir -p build
+cd build
+
+if [ ! -f ../configure ] ; then
+	autoreconf --install ..
  fi
-./configure --prefix=$INSTALL_ROOT
+../configure --prefix=$INSTALL_ROOT
  make -j4
  make install
  
-- 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160202/877db1be/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Simplify-building-of-Android-build-from-one-source-t.patch
Type: text/x-patch
Size: 1314 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160202/877db1be/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Build-Android-mobile-app-against-latest-OpenSSL.patch
Type: text/x-patch
Size: 870 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160202/877db1be/attachment-0001.bin>


More information about the subsurface mailing list