Skip to content

Commit 9ecdc35

Browse files
committed
Add a configureDummyLinux function which can be used by non-KN projects
1 parent 59115e5 commit 9ecdc35

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

build-plugins/kmp-conventions/src/main/kotlin/aws/sdk/kotlin/gradle/kmp/ConfigureTargets.kt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,22 @@ fun Project.configureJvm() {
160160
fun Project.configureLinux() {
161161
kotlin {
162162
linuxX64()
163-
linuxArm64() // FIXME - Okio missing arm64 target support
163+
linuxArm64() // FIXME - Okio missing arm64 target support. Added as experimental in https://square.github.io/okio/changelog/#version-360
164+
}
165+
}
166+
167+
/**
168+
* Dummy configuration for Linux which declares but does not actually configure any targets.
169+
* This is useful for projects that do not have any native targets but still need to be a KMP build (Dokka in particular).
170+
*/
171+
fun Project.configureDummyLinux() {
172+
kotlin {
173+
linuxX64 {
174+
// FIXME enable tests once the target is fully implemented
175+
tasks.named("linuxX64Test") {
176+
enabled = false
177+
}
178+
}
164179
}
165180
}
166181

0 commit comments

Comments
 (0)