-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add -Xvalue-classes to all targets, and unifies JS building to work w…
…ith Kotlin 1.8.0 and 1.8.20 due to DSL (#1272) * Add -Xvalue-classes to all targets, and unifies JS building to work with Kotlin 1.8.0 and 1.8.20 due to DSL * Configure JS browser tests with karma.config.d to fix issues
- Loading branch information
Showing
5 changed files
with
74 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
buildSrc/src/main/kotlin/com/soywiz/korge/gradle/targets/all/All.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.soywiz.korge.gradle.targets.all | ||
|
||
import com.soywiz.korlibs.* | ||
import org.gradle.api.* | ||
import org.jetbrains.kotlin.gradle.dsl.* | ||
|
||
fun Project.rootEnableFeaturesOnAllTargets() { | ||
rootProject.subprojectsThis { | ||
enableFeaturesOnAllTargets() | ||
} | ||
} | ||
|
||
fun Project.enableFeaturesOnAllTargets() { | ||
if (extensions.findByType(KotlinMultiplatformExtension::class.java) != null) { | ||
kotlin.targets.configureEach { target -> | ||
target.compilations.configureEach { compilation -> | ||
//println("initAllTargets: $target - $compilation") | ||
compilation.compilerOptions.options.suppressWarnings.set(true) | ||
compilation.compilerOptions.options.freeCompilerArgs.add("-Xvalue-classes") | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters