Platform libs: Generate static cache
The following targets are supported: macos_x64 ios_x64 ios_arm64 ios_arm32
This commit is contained in:
committed by
Ilya Matveev
parent
bc94ff8ed6
commit
33774cbf77
@@ -66,6 +66,14 @@ ext {
|
||||
platformManager = new PlatformManager(DistributionKt.buildDistribution(projectDir.absolutePath),
|
||||
ext.experimentalEnabled)
|
||||
|
||||
cacheableTargets = [
|
||||
KonanTarget.MACOS_X64.INSTANCE,
|
||||
KonanTarget.IOS_X64.INSTANCE,
|
||||
KonanTarget.IOS_ARM64.INSTANCE,
|
||||
KonanTarget.IOS_ARM32.INSTANCE
|
||||
]
|
||||
cacheableTargetNames = cacheableTargets.collect { it.visibleName }
|
||||
|
||||
kotlinCompilerModule="org.jetbrains.kotlin:kotlin-compiler:${kotlinVersion}"
|
||||
kotlinStdLibModule="org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
|
||||
kotlinCommonStdlibModule="org.jetbrains.kotlin:kotlin-stdlib-common:${kotlinStdlibVersion}:sources"
|
||||
@@ -445,6 +453,9 @@ targetList.each { target ->
|
||||
|
||||
task("${target}PlatformLibs") {
|
||||
dependsOn ":platformLibs:${target}Install"
|
||||
if (target in cacheableTargetNames) {
|
||||
dependsOn(":platformLibs:${target}Cache")
|
||||
}
|
||||
}
|
||||
|
||||
task("${target}CrossDist") {
|
||||
@@ -464,6 +475,7 @@ targetList.each { target ->
|
||||
|
||||
task distPlatformLibs {
|
||||
dependsOn ':platformLibs:hostInstall'
|
||||
dependsOn ':platformLibs:hostCache'
|
||||
}
|
||||
|
||||
task dist {
|
||||
|
||||
Reference in New Issue
Block a user