elect
04/05/2017, 6:49 AMbuild.gradle
as usual? Will then it be compiled/added together at the gradlew build
? (Sorry, but I can't test at the moment)ilya.matveev
04/05/2017, 8:39 AM*.kt.bc
library built by Kotlin/Native compiler using the library()
DSL method.
konanArtifacts {
foo {
library 'path/to/.kt.bc'
libraries 'path/1', 'path/2'
}
}
If you have a library in the same project you may link it with an executable using the artifactPath
property of a compilation task and setting dependencies between the tasks manually. As you can see this way is a bit complicated so we are going to simplify it in the future releases.
konanArtifacts {
// This is a library
foo {
inputFiles project.file('foo.kt')
noLink()
}
// This is an executable.
bar {
inputFiles project.file('bar.kt')
library project.files(konanArtifacts['foo'].compilationTask.artifactPath)
}
}
konanArtifacts['bar'].compilationTask.dependsOn(konanArtifacts['foo'].compilationTask)
elect
04/05/2017, 8:53 AMolonho
04/05/2017, 8:58 AMelect
04/05/2017, 9:04 AMolonho
04/05/2017, 9:06 AMelect
04/05/2017, 9:09 AM