db1853f627
to simplify build configuration
18 lines
441 B
Groovy
18 lines
441 B
Groovy
import org.jetbrains.kotlin.CompileCppToBitcode
|
|
|
|
// TODO: consider using some Gradle plugins to build and test
|
|
|
|
|
|
task build(type: CompileCppToBitcode) {
|
|
name 'runtime'
|
|
srcRoot file('src/main')
|
|
|
|
dependsOn ':common:compileHash'
|
|
compilerArgs '-I' + project.file('../common/src/hash/headers') // TODO: copy-pasted from 'common'
|
|
linkerArgs project.file('../common/build/hash.bc').path
|
|
}
|
|
|
|
task clean << {
|
|
delete buildDir
|
|
}
|