gradle-plugin: Accept Any as includeDir and inputDir

This commit is contained in:
Ilya Matveev
2017-09-21 17:30:14 +03:00
committed by ilmat192
parent beb6c3eb10
commit 5d79c079b4
2 changed files with 3 additions and 4 deletions
@@ -184,7 +184,7 @@ open class KonanCompileConfig(
// DSL. Input/output files
fun inputDir(dir: String) = with(compilationTask) {
fun inputDir(dir: Any) = with(compilationTask) {
_inputFiles.add(project.fileTree(dir))
}
fun inputFiles(vararg files: Any) = with(compilationTask) {
@@ -173,9 +173,8 @@ open class KonanInteropConfig(
headers.add(files)
}
fun includeDirs(vararg values: String) = with(interopProcessingTask) {
compilerOpts.addAll(values.map { "-I$it" })
fun includeDirs(vararg values: Any) = with(interopProcessingTask) {
compilerOpts.addAll(values.map { "-I${project.file(it).canonicalPath}" })
}
fun linkerOpts(vararg values: String) = linkerOpts(values.toList())