Schema update (organising benchmarks within projects)
This commit is contained in:
@@ -157,4 +157,25 @@ fun envValue(key: String): String? {
|
||||
}
|
||||
.firstOrNull { it.first == key }?.second
|
||||
}
|
||||
}
|
||||
|
||||
buildConfig {
|
||||
generateAtSync = false
|
||||
useKotlinOutput { internalVisibility = false }
|
||||
|
||||
println("Source sets: ${kotlin.sourceSets.toList().map { it.name }}")
|
||||
|
||||
sourceSets.named("desktopMain") {
|
||||
println("Generating 'desktopMain'")
|
||||
className("PersistenceConstants")
|
||||
packageName("com.jaytux.phoebench.clients")
|
||||
|
||||
envValue("PHOEBENCH_BUILD_RELEASE")?.let {
|
||||
println("Using release desktop service")
|
||||
buildConfigField("SERVICE", "com.jaytux.phoebench")
|
||||
} ?: run {
|
||||
println("Using debug desktop service")
|
||||
buildConfigField("SERVICE", "com.jaytux.phoebench.debug")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user