Gradle‘s CMake library project in this directory builds layers into AAR; the project could be directly added into application’s gradle projects
Build ShaderC binary
Extra Steps if building from NDK's source tree
cd ${your ANDROID_NDK_ROOT}/sources/third_party/shaderc ndk-build APP_ABI=armeabi-v7a APP_STL=gnustl_static NDK_TOOLCHAIN_VERSION=clang NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk libshaderc_combined
include ':layerLib' project(':layerLib').projectDir = new File('/path/to/cmake/layerlib')
dependencies { // force debug layer lib for packing compile project(path: ':layerlib', configuration: 'debug') }
BUILD_IN_NDK variable in layerlib/CMakeLists.txt could detect whether the source is from NDK or github repo clone, and would configure the file paths accordingly
Build on Mac OS, Nexus 5X test phone. Equvilaent build scripts for Windows OS are at the same directory.