mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-23 23:29:44 +00:00
demos: Update Android documentation
This commit is contained in:
parent
f27962c55a
commit
7e975d11e1
13
BUILD.md
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user