More accurate host- and cross- target separations.

This commit is contained in:
Alexander Gorshenev
2017-01-23 20:32:24 +03:00
committed by alexander-gorshenev
parent e895c0939c
commit a856b0d9ce
5 changed files with 48 additions and 44 deletions
+8 -6
View File
@@ -1,15 +1,17 @@
import org.jetbrains.kotlin.CompilePerTarget
import org.jetbrains.kotlin.CompileCppToBitcode
// TODO: consider using some Gradle plugins to build and test
task compileHash(type: CompilePerTarget) {
name 'hash'
targetList targetList
targetArgs targetArgs
targetList.each { targetName ->
task ("${targetName}Hash", type: CompileCppToBitcode) {
name 'hash'
target targetName
compilerArgs targetArgs[targetName]
}
}
task build {
dependsOn compileHash
dependsOn hostHash
}
task clean << {