gradle-plugin: Accept Any as includeDir and inputDir
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ open class KonanCompileConfig(
|
|||||||
|
|
||||||
// DSL. Input/output files
|
// DSL. Input/output files
|
||||||
|
|
||||||
fun inputDir(dir: String) = with(compilationTask) {
|
fun inputDir(dir: Any) = with(compilationTask) {
|
||||||
_inputFiles.add(project.fileTree(dir))
|
_inputFiles.add(project.fileTree(dir))
|
||||||
}
|
}
|
||||||
fun inputFiles(vararg files: Any) = with(compilationTask) {
|
fun inputFiles(vararg files: Any) = with(compilationTask) {
|
||||||
|
|||||||
+2
-3
@@ -173,9 +173,8 @@ open class KonanInteropConfig(
|
|||||||
headers.add(files)
|
headers.add(files)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun includeDirs(vararg values: Any) = with(interopProcessingTask) {
|
||||||
fun includeDirs(vararg values: String) = with(interopProcessingTask) {
|
compilerOpts.addAll(values.map { "-I${project.file(it).canonicalPath}" })
|
||||||
compilerOpts.addAll(values.map { "-I$it" })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun linkerOpts(vararg values: String) = linkerOpts(values.toList())
|
fun linkerOpts(vararg values: String) = linkerOpts(values.toList())
|
||||||
|
|||||||
Reference in New Issue
Block a user