Skip to content

Commit

Permalink
updated collections build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Sep 6, 2024
1 parent 4e1735e commit a02ee51
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions xemantic-osc-collections/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,46 @@ kotlin {

jvm {}

// iOS
iosX64()
iosArm64()
iosSimulatorArm64()

// Desktop
mingwX64()
linuxX64()
linuxArm64()
macosX64()
macosArm64()

// other apple
watchosSimulatorArm64()
watchosX64()
watchosArm32()
watchosArm64()
tvosSimulatorArm64()
tvosX64()
tvosArm64()
watchosDeviceArm64()

// other android
androidNativeArm32()
androidNativeArm64()
androidNativeX86()
androidNativeX64()

// Web
js {
browser {}
browser()
nodejs()
}

val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
@Suppress("UNUSED_VARIABLE")
val nativeTarget = when {
hostOs == "Mac OS X" -> macosX64()
hostOs == "Linux" -> linuxX64()
isMingwX64 -> mingwX64()
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
@Suppress("OPT_IN_USAGE")
wasmJs {
// To build distributions for and run tests use one or several of:
browser()
nodejs()
d8()
}

sourceSets {
Expand Down

0 comments on commit a02ee51

Please sign in to comment.