godot.gradle.tasks.graal.ios.copyDefaultGraalIOSConfigsTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of godot-gradle-plugin Show documentation
Show all versions of godot-gradle-plugin Show documentation
Godot gradle plugin for kotlin language support.
The newest version!
package godot.gradle.tasks.graal.ios
import godot.gradle.tasks.graal.*
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.TaskProvider
import org.jetbrains.kotlin.gradle.internal.ensureParentDirsCreated
fun Project.copyDefaultGraalIOSConfigsTask(
checkPresenceOfDefaultGraalJniConfigTask: TaskProvider,
): TaskProvider = tasks.register("copyDefaultGraalIOSJniConfig") {
with(it) {
group = "godot-kotlin-jvm"
description =
"Checks if the default configs for ios graalVM native image are present and creates them if they're not"
dependsOn(checkPresenceOfDefaultGraalJniConfigTask)
doLast {
listOf(
// Configurations from gluon substrate: https://github.com/gluonhq/substrate/tree/master/src/main/resources/config
"ios/$iosJniConfig",
"ios/$iosReflectionConfig",
"ios/$iosResourceConfig",
).forEach { resource -> copyToGraalBuildDirectory(resource) }
}
}
}