ndk.dir=/home/leo/Android/Sdk/ndk-bundle
sdk.dir=/home/leo/Android/Sdk
# If you set this property, Gradle no longer uses PATH to find CMake.
#cmake.dir=/home/leo/tools/cmake-3.12.0-Linux-x86_64
cmake.dir=C\:\\Program Files\\CMake
sdl2_src.dir=/home/leo/SDL2-2.0.8
sdl2_build.dir=/home/leo/SDL2-2.0.8_build
externalNativeBuild {
cmake {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def sdl2SrcDir = properties.getProperty('sdl2_src.dir') ?: "add sdl2_src.dir in local.properties"
def sdl2BuildDir = properties.getProperty('sdl2_build.dir') ?: "add sdl2_build.dir in local.properties"
arguments "-DSDL2_SRC_DIR=" + sdl2SrcDir
arguments "-DSDL2_BUILD_DIR=" + sdl2BuildDir
arguments "-DANDROID_ARM_NEON=TRUE"
arguments "-DANDROID_CPP_FEATURES=rtti exceptions",
"-DANDROID_STL=c++_shared"
}