[K/N][tests] Move gradle stuff for old infra to old infra
This commit is contained in:
committed by
Space Team
parent
c818ce9220
commit
bb8c8431e8
@@ -88,8 +88,6 @@ allprojects {
|
||||
}
|
||||
|
||||
setupHostAndTarget()
|
||||
loadCommandLineProperties()
|
||||
loadLocalProperties()
|
||||
setupClang(project)
|
||||
}
|
||||
|
||||
@@ -104,40 +102,6 @@ void setupClang(Project project) {
|
||||
project.extensions.execClang = org.jetbrains.kotlin.ExecClang.create(project)
|
||||
}
|
||||
|
||||
void loadLocalProperties() {
|
||||
if (new File("$project.rootDir/local.properties").exists()) {
|
||||
Properties props = new Properties()
|
||||
props.load(new FileInputStream("$project.rootDir/local.properties"))
|
||||
props.each { prop -> project.ext.set(prop.key, prop.value) }
|
||||
}
|
||||
}
|
||||
|
||||
void loadCommandLineProperties() {
|
||||
if (project.hasProperty("konanc_flags")) {
|
||||
throw new Error("Specify either -Ptest_flags or -Pbuild_flags.")
|
||||
}
|
||||
|
||||
ext.globalBuildArgs = new ArrayList<String>()
|
||||
if (project.hasProperty("build_flags")) {
|
||||
for (String flag : ext.build_flags.toString().split("\\s")) {
|
||||
flag = flag.trim()
|
||||
if (!flag.isEmpty()) ext.globalBuildArgs.add(flag)
|
||||
}
|
||||
}
|
||||
|
||||
ext.globalTestArgs = new ArrayList<String>()
|
||||
ext.globalTestArgs.add("-Xpartial-linkage=enable")
|
||||
ext.globalTestArgs.add("-Xpartial-linkage-loglevel=error")
|
||||
if (project.hasProperty("test_flags")) {
|
||||
for (String flag : ext.test_flags.toString().split("\\s")) {
|
||||
flag = flag.trim()
|
||||
if (!flag.isEmpty()) ext.globalTestArgs.add(flag)
|
||||
}
|
||||
}
|
||||
|
||||
ext.testTarget = project.hasProperty("test_target") ? ext.test_target : ext.hostName
|
||||
}
|
||||
|
||||
configurations {
|
||||
ftpAntTask
|
||||
distPack
|
||||
|
||||
Reference in New Issue
Block a user