Merge commit 'a0ccd9984c328dda80df3acffad6095e76878c52'
This commit is contained in:
commit
d871ba42be
20
build.gradle
20
build.gradle
@ -96,6 +96,26 @@ task wrapper(type: Wrapper, description: 'Creates and deploys the Gradle wrapper
|
||||
gradleVersion = '1.11'
|
||||
}
|
||||
|
||||
String findNDK() {
|
||||
def ndkBuildFile = "ndk-build"
|
||||
// if windows, use ndk-build.cmd instead
|
||||
if (System.properties['os.name'].toLowerCase().contains('windows')) {
|
||||
ndkBuildFile = "ndk-build.cmd"
|
||||
}
|
||||
|
||||
// ndkPath is defined in the root project gradle.properties file
|
||||
String ndkBuildPath = ndkPath + File.separator + ndkBuildFile
|
||||
//Use the environment variable for the NDK location if defined
|
||||
if (System.env.ANDROID_NDK != null) {
|
||||
ndkBuildPath = System.env.ANDROID_NDK + File.separator + ndkBuildFile
|
||||
}
|
||||
if (new File(ndkBuildPath).exists()) {
|
||||
return ndkBuildPath
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
//class IncrementalReverseTask extends DefaultTask {
|
||||
// @InputDirectory
|
||||
// def File inputDir
|
||||
|
Loading…
x
Reference in New Issue
Block a user