v0.4.2b: provided a gradle build task for FroyoGLES20Fix
This commit is contained in:
parent
1aed7a7501
commit
0688896113
|
@ -3,4 +3,25 @@ apply plugin: 'com.android.library'
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 23
|
compileSdkVersion 23
|
||||||
buildToolsVersion "24.0.2"
|
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"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
3
SPD-classes/src/main/jniSources/Application.mk
Normal file
3
SPD-classes/src/main/jniSources/Application.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
APP_ABI := armeabi x86
|
||||||
|
APP_BUILD_SCRIPT := ./jniSources/Android.mk
|
||||||
|
APP_OPTIM := release
|
|
@ -7,6 +7,5 @@ building from source can still do so.
|
||||||
|
|
||||||
There is no functional difference between using the provided .so files, and compiling your own.
|
There is no functional difference between using the provided .so files, and compiling your own.
|
||||||
|
|
||||||
In order to compile these files you will need the Android NDK.
|
These sources can be compiled through the gradle task SPD-classes:ndkBuild on a system with the
|
||||||
|
Android NDK installed and configured.
|
||||||
TODO: provide build instructions, or a build script, or make a gradle task.
|
|
Loading…
Reference in New Issue
Block a user