mirror of
https://github.com/JakeWharton/mosaic.git
synced 2025-10-27 20:26:21 +08:00
36 lines
714 B
Groovy
36 lines
714 B
Groovy
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
|
|
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
|
|
|
|
apply plugin: 'org.jetbrains.kotlin.multiplatform'
|
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
apply from: "$rootDir/addAllTargets.gradle"
|
|
|
|
kotlin {
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
implementation projects.mosaicRuntime
|
|
}
|
|
}
|
|
}
|
|
|
|
jvm {
|
|
binaries {
|
|
executable {
|
|
mainClass = 'example.JestKt'
|
|
}
|
|
}
|
|
}
|
|
|
|
targets.withType(KotlinNativeTarget).configureEach { target ->
|
|
target.binaries.executable {
|
|
entryPoint = 'example.main'
|
|
if (buildType == NativeBuildType.DEBUG) {
|
|
linkTaskProvider.configure {
|
|
enabled = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|