Skip to content

Commit e9c1fc6

Browse files
authored
chore: restructure source sets to be hierarchically correct (#134)
1 parent e1864e3 commit e9c1fc6

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

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

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,28 +82,34 @@ fun Project.configureKmpTargets() {
8282

8383
if (hasWindows) {
8484
common {
85-
group("windows") {
86-
withMingw()
85+
group("native") {
86+
group("windows") {
87+
withMingw()
88+
}
8789
}
8890
}
8991
}
9092

9193
if (hasDesktop) {
9294
common {
93-
group("desktop") {
94-
withLinux()
95-
withMingw()
96-
withMacos()
95+
group("native") {
96+
group("desktop") {
97+
withLinux()
98+
withMingw()
99+
withMacos()
100+
}
97101
}
98102
}
99103
}
100104

101105
if (hasPosix) {
102106
common {
103-
group("posix") {
104-
// Linux and Apple but NOT Mingw/Windows
105-
withLinux()
106-
withMacos()
107+
group("native") {
108+
group("posix") {
109+
// Linux and Apple but NOT Mingw/Windows
110+
withLinux()
111+
withApple()
112+
}
107113
}
108114
}
109115
}

0 commit comments

Comments
 (0)