25 lines
516 B
Groovy
25 lines
516 B
Groovy
/*
|
|
* Copyright 2010-2018 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.
|
|
*/
|
|
import org.jetbrains.kotlin.CompileCppToBitcode
|
|
|
|
// TODO: consider using some Gradle plugins to build and test
|
|
|
|
targetList.each { targetName ->
|
|
task ("${targetName}Hash", type: CompileCppToBitcode) {
|
|
name 'hash'
|
|
target targetName
|
|
}
|
|
}
|
|
|
|
task build {
|
|
dependsOn "${hostName}Hash"
|
|
}
|
|
|
|
task clean {
|
|
doLast {
|
|
delete buildDir
|
|
}
|
|
}
|