All Downloads are FREE. Search and download functionalities are using the official Maven repository.

godot.gradle.tasks.graal.ios.copyDefaultGraalIOSConfigsTask.kt Maven / Gradle / Ivy

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) }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy