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