ade88e2b0f
Removed TODOs after updating to kotlin bootstrap version with konan.data.dir gradle property changes Fixed warning of incorrect passing -Xkonan-data-dir arg in konanc from KGP and fixed setting konan-data-dir in SetupConfiguration#setupCommonOptionsForCaches #KT-60660 Fixed Merge-request: KT-MR-11299 Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
29 lines
1.2 KiB
Kotlin
29 lines
1.2 KiB
Kotlin
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
|
|
import org.jetbrains.kotlin.konan.target.*
|
|
/*
|
|
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
* that can be found in the LICENSE file.
|
|
*/
|
|
|
|
plugins {
|
|
id("swift-benchmarking")
|
|
}
|
|
|
|
val toolsPath = "../../tools"
|
|
val targetExtension = "Macos"
|
|
|
|
val konanDataDir = if (project.hasProperty("konan.data.dir")) project.property("konan.data.dir").toString() else null
|
|
project.extra["platformManager"] = PlatformManager(buildDistribution(projectDir.parentFile.parentFile.absolutePath, konanDataDir), false)
|
|
swiftBenchmark {
|
|
applicationName = "swiftInterop"
|
|
commonSrcDirs = listOf("$toolsPath/benchmarks/shared/src/main/kotlin/report", "src", "../shared/src/main/kotlin")
|
|
nativeSrcDirs = listOf("../shared/src/main/kotlin-native/common", "../shared/src/main/kotlin-native/posix")
|
|
swiftSources = listOf(
|
|
"$projectDir/swiftSrc/benchmarks.swift",
|
|
"$projectDir/swiftSrc/main.swift",
|
|
"$projectDir/swiftSrc/weakRefBenchmarks.swift",
|
|
)
|
|
compileTasks = listOf("compileKotlinNative", "linkBenchmark${buildType.name.toLowerCase().capitalize()}FrameworkNative")
|
|
cleanBeforeRunTask = "compileKotlinNative"
|
|
}
|