Update BUILD.md for building on Android
This commit is contained in:
parent
5e24e0ca15
commit
16da9abfd6
1 changed files with 6 additions and 0 deletions
6
BUILD.md
6
BUILD.md
|
|
@ -23,7 +23,11 @@ Use the provided CMakeLists.txt with [CMake](https://cmake.org) to generate a bu
|
|||
|
||||
Building on Android is done using the [Gradle Build Tool](https://gradle.org/):
|
||||
|
||||
Set Android SDK/NDK by environment variable `ANDROID_SDK_ROOT`/`ANDROID_NDK_HOME`.
|
||||
|
||||
```
|
||||
export ANDROID_SDK_ROOT=<path-to-SDK>
|
||||
export ANDROID_NDK_HOME=<path-to-NDK>
|
||||
cd android
|
||||
./gradlew assembleDebug
|
||||
```
|
||||
|
|
@ -33,6 +37,8 @@ On Windows execute `gradlew.bat assembleDebug`.
|
|||
|
||||
If you want to build and install on a connected device or emulator image, run ```gradle installDebug``` instead.
|
||||
|
||||
If you want to build it through [Android Studio](https://developer.android.com/studio), open project ```android\build.gradle``` in Android Studio.
|
||||
|
||||
## <img src="./images/applelogo.png" alt="" height="32px"> [iOS and macOS](xcode/)
|
||||
|
||||
Building for *iOS* and *macOS* is done using the [examples](xcode/examples.xcodeproj) *Xcode* project found in the [xcode](xcode) directory. These examples use the [**MoltenVK**](https://moltengl.com/moltenvk) Vulkan driver to provide Vulkan support on *iOS* and *macOS*, and require an *iOS* or *macOS* device that supports *Metal*. Please see the [MoltenVK Examples readme](xcode/README_MoltenVK_Examples.md) for more info on acquiring **MoltenVK** and building and deploying the examples on *iOS* and *macOS*.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue