summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaebaek Seo <jaebaek@google.com>2018-07-09 11:46:41 -0400
committerDavid Neto <dneto@google.com>2018-07-10 14:31:15 -0400
commiteb48263cc8764ccdf185b31b87d58e1bb0e0d748 (patch)
tree3105058d961f12dca6f3377eacf4d7df014b2e4b
parentead54bbd9138a02f1588a0cdaec02c9606cb8158 (diff)
Description for Android build
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1c2830de..cf89126d 100644
--- a/README.md
+++ b/README.md
@@ -274,6 +274,26 @@ via setting `SPIRV_TOOLS_EXTRA_DEFINITIONS`. For example, by setting it to
`/D_ITERATOR_DEBUG_LEVEL=0` on Windows, you can disable checked iterators and
iterator debugging.
+### Android
+
+SPIR-V Tools supports building static libraries `libSPIRV-Tools.a` and
+`libSPIRV-Tools-opt.a` for Android:
+
+```
+cd <spirv-dir>
+
+export ANDROID_NDK=/path/to/your/ndk
+
+mkdir build && cd build
+mkdir libs
+mkdir app
+
+$ANDROID_NDK/ndk-build -C ../android_test \
+ NDK_PROJECT_PATH=. \
+ NDK_LIBS_OUT=`pwd`/libs \
+ NDK_APP_OUT=`pwd`/app
+```
+
## Library
### Usage