|
|
@ -16,6 +16,9 @@ val Project.isInIdea: Boolean |
|
|
|
val Project.isFailingJsCase: Boolean |
|
|
|
val Project.isFailingJsCase: Boolean |
|
|
|
get() = this.name.contains("-failingJs-") |
|
|
|
get() = this.name.contains("-failingJs-") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val Project.isMingwX64Enabled: Boolean |
|
|
|
|
|
|
|
get() = this.isInIdea |
|
|
|
|
|
|
|
|
|
|
|
@OptIn(ExternalVariantApi::class) |
|
|
|
@OptIn(ExternalVariantApi::class) |
|
|
|
fun KotlinMultiplatformExtension.configureTargets() { |
|
|
|
fun KotlinMultiplatformExtension.configureTargets() { |
|
|
|
jvm("desktop") |
|
|
|
jvm("desktop") |
|
|
@ -27,7 +30,7 @@ fun KotlinMultiplatformExtension.configureTargets() { |
|
|
|
macosX64() |
|
|
|
macosX64() |
|
|
|
macosArm64() |
|
|
|
macosArm64() |
|
|
|
// We use linux agents on CI. So it doesn't run the tests, but it builds the klib anyway which is time consuming. |
|
|
|
// We use linux agents on CI. So it doesn't run the tests, but it builds the klib anyway which is time consuming. |
|
|
|
if (project.isInIdea) mingwX64() |
|
|
|
if (project.isMingwX64Enabled) mingwX64() |
|
|
|
linuxX64() |
|
|
|
linuxX64() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|