summaryrefslogtreecommitdiff
path: root/docs/INSTALL.markdown
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kdab.com>2015-01-29 16:36:52 +0200
committerJosé Fonseca <jfonseca@vmware.com>2015-03-14 21:53:56 +0000
commit919a3d701d0399520ccebaa069007f28f4f98f9b (patch)
tree831825e9585eea64a3f8cb880bbe108269fc94e1 /docs/INSTALL.markdown
parentd62a974b14b5ff2fca9c9fae16eec77db06535b8 (diff)
retrace: Say Hello to Android retrace
Optionally build & install retraceAPK using cmake The implementation is not perfect though, there is a problem that I documented in retrace/CMakeLists.txt. This experience made me remember how much I don't like cmake :).
Diffstat (limited to 'docs/INSTALL.markdown')
-rw-r--r--docs/INSTALL.markdown15
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/INSTALL.markdown b/docs/INSTALL.markdown
index 11026c5d..c695efb4 100644
--- a/docs/INSTALL.markdown
+++ b/docs/INSTALL.markdown
@@ -70,12 +70,21 @@ Build as:
Additional requirements:
* [Android NDK](http://developer.android.com/sdk/ndk/index.html)
+* [Android SDK](http://developer.android.com/sdk/index.html#Other). **Make sure you have Android 4.4.2 (API 19) platform SDK installed and Android build tools "21.1.2". API 19 is needed only to build the APK, but it will still run on lower API versions (with works starting with API 12).**
Build as:
- export ANDROID_NDK=/path/to/your/ndk
- cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/android.toolchain.cmake -DANDROID_API_LEVEL=9
+ cmake \
+ -H. -Bbuild \
+ -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/android.toolchain.cmake \
+ -DANDROID_NDK=/path/to/your/ndk \
+ -DANDROID_API_LEVEL=9 \
+ -DANDROID_STL=gnustl_shared \
+ [-DANDROID_SDK=/path/to/your/sdk]
+
make -C build
+ [make -C build retraceAPK] will build Android retrace APK.
+ [make -C build installRetraceAPK] will build & install Android retrace APK on the connected device.
You can also choose a particular ABI by passing `ANDROID_ABI` variable to
cmake, e.g., `-DANDROID_ABI=x86`. Currently, when targeting AArch64 you [must
@@ -89,6 +98,8 @@ CMake as:
-DANDROID_TOOLCHAIN_NAME=aarch64-linux-android-4.9 \
-DANDROID_ABI=arm64-v8a
+** You'll need Android SDK only to build the retrace APK. **
+
# FirefoxOS #