This repository has been archived on 2024-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
kotlin-course/build.gradle.kts

34 lines
750 B
Plaintext

plugins {
kotlin("multiplatform") version "1.7.21"
}
group = "prgrnd.dezentrale.space"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
val nativeTarget = when {
hostOs == "Mac OS X" -> macosX64("native")
hostOs == "Linux" -> linuxX64("native")
isMingwX64 -> mingwX64("native")
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
nativeTarget.apply {
binaries {
executable {
entryPoint = "main"
}
}
}
sourceSets {
val nativeMain by getting
val nativeTest by getting
}
}