aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/android/README
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-03-09 20:28:54 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-09 12:53:01 -0700
commitdeb2caf3e0ac90850a793ca86190d44222c60db8 (patch)
tree52a5cd226cd67271194e6e97b9039b9f9c7eab98 /packaging/android/README
parent20a82e2b21ecfa6f00b624ebee2cf9958f3190cf (diff)
downloadsubsurface-deb2caf3e0ac90850a793ca86190d44222c60db8.tar.gz
Import subsurface-android build script
Over one year ago i started with a crazy idea, "Wouldn't Subsurface on android be nice?" when i read about Android support in Qt. After playing around with it and doing some quite ugly hacks i got it to build and run. Now are all the patches upstream and this imports the quite crude build script, for others to continue on. This is a squash-import of what have have happened in https://github.com/glance-/subsurface-android during 2014. Signed-off-by: Anton Lundin <glance@acc.umu.se> CC: Joseph W. Joshua <joejoshw@gmail.com> CC: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/android/README')
-rw-r--r--packaging/android/README41
1 files changed, 41 insertions, 0 deletions
diff --git a/packaging/android/README b/packaging/android/README
new file mode 100644
index 000000000..7168fc1c1
--- /dev/null
+++ b/packaging/android/README
@@ -0,0 +1,41 @@
+Tool repo to crosscompile subsurface to android-arm
+---------------------------------------------------
+
+Dependencies:
+
+1. android_sdk, android_ndk and Qt5.4. See step 0.
+2. cmake
+3. ant
+4. Java JDK
+5. working adb is recommended
+6. dependencies of libdivecomputer and subsurface -
+ visit http://subsurface.hohndel.org/documentation/building/
+
+Steps to install:
+
+Step 0.
+Grab..
+Android ndk from: http://developer.android.com/tools/sdk/ndk/index.html
+Android sdk from: http://developer.android.com/sdk/index.html#download
+And QT for android from: http://qt-project.org/downloads
+
+Step 1.
+Extract and install these into known directories.
+Have a look in the top of build.sh for where the cross build tool expects
+them. By default thats is: ../../../android-ndk-r9d ../../../android-sdk-linux
+and ../../../Qt/5.4
+
+Step 2.
+Run bash build.sh in the terminal. By default it builds for arm but you
+can pass x86 as first arg to build.sh to have it build for x86. Nice when
+debugging in a fast emulator.
+The script will download and build the whole dependency chain.
+
+After this, subsurface will be built for android.
+
+The output folder is subsurface-build-arm/android_build and your newly
+created apk shows up as:
+subsurface-build-arm/android_build/bin/QtApp-debug.apk
+
+Where the x86 apk shows up when built for x86 is left as a exercise for the
+reader.