Schema update (organising benchmarks within projects)

This commit is contained in:
2026-08-27 13:22:46 +02:00
parent 4fdeafb73b
commit 0d3f5ca8ad
5 changed files with 58 additions and 14 deletions
+21
View File
@@ -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")
}
}
}