runtime: move hash functions to newly created subproject

to reuse in compiler
This commit is contained in:
Svyatoslav Scherbina
2016-10-13 17:19:19 +03:00
parent 2f004edff7
commit f30c840d1c
7 changed files with 20 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import org.jetbrains.kotlin.CompileCppToBitcode
// TODO: consider using some Gradle plugins to build and test
task compileHash(type: CompileCppToBitcode) {
name 'hash'
}
task build {
dependsOn compileHash
}
task clean << {
delete buildDir
}
+3
View File
@@ -7,6 +7,9 @@ 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 test {
+1
View File
@@ -4,3 +4,4 @@ include ':Interop:Runtime'
include ':InteropExample'
include ':backend.native'
include ':runtime'
include ':common'