v0.4.2b: provided a gradle build task for FroyoGLES20Fix

This commit is contained in:
Evan Debenham
2016-09-15 20:03:14 -04:00
parent 1aed7a7501
commit 0688896113
3 changed files with 26 additions and 3 deletions
+21
View File
@@ -3,4 +3,25 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "24.0.2"
task ndkBuild(type: Exec){
description "builds JNI libs from source. " +
"This requires the Android NDK and is optional as precompiled libs are provided."
workingDir = "./src/main"
def ndkDir = android.ndkDirectory
//Need to start cmd first on windows systems, otherwise these are the same
if (System.properties["os.name"].toLowerCase().contains("windows")){
commandLine "cmd", "/c" , "$ndkDir${File.separator}ndk-build " +
"NDK_APPLICATION_MK=./jniSources/Application.mk " +
"NDK_LIBS_OUT=./jniLibs"
} else {
commandLine "$ndkDir${File.separator}ndk-build " +
"NDK_APPLICATION_MK=./jniSources/Application.mk " +
"NDK_LIBS_OUT=./jniLibs"
}
}
}