Fix JNI Gradle
All checks were successful
ScriptCraft/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-05-26 11:15:44 -04:00
parent fb58a0839f
commit 4a46eec067

View File

@ -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}")
tasks.register<Exec>("cmake-${it.name}") {
doFirst {
if (!buildDir.exists()) { if (!buildDir.exists()) {
buildDir.mkdir() buildDir.mkdir()
} }
}
tasks.register<Exec>("cmake-${it.name}") {
group = "jni" group = "jni"
workingDir(buildDir) workingDir(buildDir)