Add libraries provided by the K/N compiler in dependencies
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c4a33e0a2f
commit
299e508204
+4
-1
@@ -59,6 +59,9 @@ open class KotlinNativeCompile : DefaultTask() {
|
|||||||
val kotlinNativeVersion: String
|
val kotlinNativeVersion: String
|
||||||
@Input get() = KonanCompilerDownloadTask.compilerVersion.toString()
|
@Input get() = KonanCompilerDownloadTask.compilerVersion.toString()
|
||||||
|
|
||||||
|
val kotlinNativeHome: File
|
||||||
|
@Input get() = project.file(project.konanHome)
|
||||||
|
|
||||||
// We manually register this property as output file or directory depending on output kind.
|
// We manually register this property as output file or directory depending on output kind.
|
||||||
@Internal
|
@Internal
|
||||||
val outputFile: Property<File> = project.objects.property(File::class.java)
|
val outputFile: Property<File> = project.objects.property(File::class.java)
|
||||||
@@ -132,7 +135,7 @@ open class KotlinNativeCompile : DefaultTask() {
|
|||||||
|
|
||||||
libraries.files.filter {
|
libraries.files.filter {
|
||||||
// Support only klib files for now.
|
// Support only klib files for now.
|
||||||
it.extension == "klib" && !it.providedByCompiler
|
it.extension == "klib" || !it.providedByCompiler
|
||||||
}.forEach { library ->
|
}.forEach { library ->
|
||||||
library.parent?.let { addArg("-r", it) }
|
library.parent?.let { addArg("-r", it) }
|
||||||
addArg("-l", library.nameWithoutExtension)
|
addArg("-l", library.nameWithoutExtension)
|
||||||
|
|||||||
Reference in New Issue
Block a user