summaryrefslogtreecommitdiff
path: root/BUILD.md
diff options
context:
space:
mode:
authorCody Northrop <cnorthrop@google.com>2016-09-22 07:41:08 -0600
committerCody Northrop <cnorthrop@google.com>2016-09-22 09:19:16 -0600
commite9f85410c080ed8763751ba47baf2561f98b8cd7 (patch)
treec185a927c816434d7b3abd5afad2d14143d95de3 /BUILD.md
parentd3e8f9529bd3605bc4dce669d333e749111832f4 (diff)
demos: Update Android documentation
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/BUILD.md b/BUILD.md
index 70636dbd..286e75ee 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -176,6 +176,19 @@ update_external_sources_android.bat
android-generate.bat
ndk-build
```
+#### Android demos
+Use the following steps to build, install, and run Cube and Tri for Android:
+```
+cd demos/android
+android update project -s -p . -t "android-23"
+ndk-build
+ant -buildfile cube debug
+ant -buildfile tri debug
+adb install ./cube/bin/NativeActivity-debug.apk
+adb install ./tri/bin/NativeActivity-debug.apk
+adb shell am start com.example.Cube/android.app.NativeActivity
+adb shell am start com.example.Tri/android.app.NativeActivity
+```
## Ninja Builds - All Platforms
The [Qt Creator IDE](https://qt.io/download-open-source/#section-2) can open a root CMakeList.txt as a project directly, and it provides tools within Creator to configure and generate Vulkan SDK build files for one to many targets concurrently, resolving configuration issues as needed. Alternatively, when invoking CMake use the -G Codeblocks Ninja option to generate Ninja build files to be used as project files for QtCreator