-
Notifications
You must be signed in to change notification settings - Fork 1k
/
build.gradle.kts
35 lines (31 loc) · 1006 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
val ideaActive: Boolean by project.extra
kotlin {
sourceSets {
if (ideaActive) {
val posixIde by creating {
kotlin.srcDir("posixIde/src")
}
get("posixMain").dependsOn(posixIde)
} else {
configure(listOf(watchosArm32().compilations.get("main").defaultSourceSet)) {
kotlin.srcDir("iosArm32/src")
}
configure(
listOf(
watchosArm64().compilations.get("main").defaultSourceSet,
tvosArm64().compilations.get("main").defaultSourceSet
)
) {
kotlin.srcDir("iosArm64/src")
}
configure(
listOf(
watchosX86().compilations.get("main").defaultSourceSet,
tvosX64().compilations.get("main").defaultSourceSet
)
) {
kotlin.srcDir("iosX64")
}
}
}
}