22 lines
796 B
Kotlin
22 lines
796 B
Kotlin
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
|
|
plugins { alias(libs.plugins.kotlin.multiplatform) }
|
|
kotlin {
|
|
jvm()
|
|
jvmToolchain(17)
|
|
// Pure common Kotlin. Android consumes the JVM variant, not an Android-dependent core.
|
|
// Apple targets are opt-in so Android/Linux development never needs an Apple toolchain.
|
|
if (providers.gradleProperty("enableIos").orNull == "true") {
|
|
val xc = XCFramework("FileworkbenchCore")
|
|
listOf(iosArm64(), iosSimulatorArm64()).forEach { target ->
|
|
target.binaries.framework {
|
|
baseName = "FileworkbenchCore"
|
|
isStatic = true
|
|
xc.add(this)
|
|
}
|
|
}
|
|
}
|
|
sourceSets {
|
|
commonTest.dependencies { implementation(kotlin("test")) }
|
|
}
|
|
}
|