This commit is contained in:
parent
fb58a0839f
commit
4a46eec067
@ -22,11 +22,14 @@ tasks.register("compileJNI") {
|
|||||||
|
|
||||||
jniPlatforms.forEach {
|
jniPlatforms.forEach {
|
||||||
val buildDir = File(cDir, "build-${it.name}")
|
val buildDir = File(cDir, "build-${it.name}")
|
||||||
if (!buildDir.exists()) {
|
|
||||||
buildDir.mkdir()
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register<Exec>("cmake-${it.name}") {
|
tasks.register<Exec>("cmake-${it.name}") {
|
||||||
|
doFirst {
|
||||||
|
if (!buildDir.exists()) {
|
||||||
|
buildDir.mkdir()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
group = "jni"
|
group = "jni"
|
||||||
workingDir(buildDir)
|
workingDir(buildDir)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user