Skip to content

Commit

Permalink
Support more K/N targets
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Nov 30, 2024
1 parent 9fb16df commit 4f066f5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
20 changes: 8 additions & 12 deletions build-logic/src/main/kotlin/rsocketbuild/targets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,25 @@ fun KotlinMultiplatformExtension.appleTargets() {
watchosArm32()
watchosArm64()
watchosSimulatorArm64()
// https://youtrack.jetbrains.com/issue/KTOR-6368, supported by kotlinx-io
// watchosDeviceArm64()
watchosDeviceArm64()

tvosX64()
tvosArm64()
tvosSimulatorArm64()
}

fun KotlinMultiplatformExtension.nixTargets() {
fun KotlinMultiplatformExtension.nativeTargets() {
appleTargets()

linuxX64()
linuxArm64()
}

fun KotlinMultiplatformExtension.nativeTargets() {
nixTargets()
mingwX64()

// not supported by ktor, supported by kotlinx-io
// androidNativeX64()
// androidNativeX86()
// androidNativeArm64()
// androidNativeArm32()
// TODO: there are some issues with androidNative targets with Kotlin 2.1.0
// androidNativeX64()
// androidNativeX86()
// androidNativeArm64()
// androidNativeArm32()
}

fun KotlinMultiplatformExtension.jsTarget(
Expand Down
2 changes: 1 addition & 1 deletion ktor-plugins/ktor-server-rsocket/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description = "rsocket-kotlin ktor server plugin"

kotlin {
jvmTarget()
nixTargets()
nativeTargets()

sourceSets {
commonMain.dependencies {
Expand Down
2 changes: 1 addition & 1 deletion ktor-plugins/rsocket-ktor-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description = "OLD ARTIFACT - migrate to ktor-server-rsocket"

kotlin {
jvmTarget()
nixTargets()
nativeTargets()

sourceSets {
commonMain.dependencies {
Expand Down
2 changes: 1 addition & 1 deletion rsocket-transports/ktor-tcp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description = "rsocket-kotlin ktor TCP client/server transport implementation"

kotlin {
jvmTarget()
nixTargets()
nativeTargets()

sourceSets {
commonMain.dependencies {
Expand Down
2 changes: 1 addition & 1 deletion rsocket-transports/ktor-websocket-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description = "rsocket-kotlin ktor WebSocket server transport implementation"

kotlin {
jvmTarget()
nixTargets()
nativeTargets()

sourceSets {
commonMain.dependencies {
Expand Down

0 comments on commit 4f066f5

Please sign in to comment.