Skip to content

Commit 03287f5

Browse files
committed
Fix target configuration for non-KN projects
1 parent 7fff8cc commit 03287f5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,19 @@ fun Project.configureKmpTargets() {
109109

110110
if (NATIVE_ENABLED) {
111111
if ((hasApple || hasDesktop) && HostManager.hostIsMac) {
112-
kmpExt.apply { configureApple() }
112+
if (group == "aws.sdk.kotlin.crt") {
113+
kmpExt.apply { configureApple() }
114+
} else {
115+
println("Skipping configuration of Apple targets for unsupported project: $group")
116+
}
113117
}
114118
if ((hasWindows || hasDesktop) && HostManager.hostIsMingw) {
115-
kmpExt.apply { configureWindows() }
119+
if (group == "aws.sdk.kotlin.crt") {
120+
kmpExt.apply { configureWindows() }
121+
} else {
122+
println("Skipping configuration of Windows target for unsupported project: $group")
123+
}
124+
116125
}
117126
if ((hasLinux || hasDesktop) && HostManager.hostIsLinux) {
118127
if (group == "aws.sdk.kotlin.crt") { // TODO Remove special-casing once K/N is released across the entire project

0 commit comments

Comments
 (0)