Support experimental targets. (#2681)
This commit is contained in:
+8
-1
@@ -41,7 +41,9 @@ convention.plugins.platformInfo = new PlatformInfo()
|
||||
ext {
|
||||
distDir = file('dist')
|
||||
dependenciesDir = DependencyProcessor.defaultDependenciesRoot
|
||||
platformManager = new PlatformManager(DistributionKt.buildDistribution(projectDir.absolutePath))
|
||||
experimentalEnabled = project.hasProperty("org.jetbrains.kotlin.native.experimentalTargets")
|
||||
platformManager = new PlatformManager(DistributionKt.buildDistribution(projectDir.absolutePath),
|
||||
ext.experimentalEnabled)
|
||||
|
||||
kotlinCommonStdlibModule="org.jetbrains.kotlin:kotlin-stdlib-common:${kotlinVersion}:sources"
|
||||
kotlinCompilerModule="org.jetbrains.kotlin:kotlin-compiler:${kotlinVersion}"
|
||||
@@ -296,6 +298,11 @@ task distCompiler(type: Copy) {
|
||||
from(project.file('konan')) {
|
||||
into('konan')
|
||||
}
|
||||
if (experimentalEnabled) {
|
||||
file('konan/experimentalTargetsEnabled').text = ""
|
||||
} else {
|
||||
delete('konan/experimentalTargetsEnabled')
|
||||
}
|
||||
}
|
||||
|
||||
task listDist(type: Exec) {
|
||||
|
||||
Reference in New Issue
Block a user