gradle-plugin: Use @OutputFile in konanCompileTask
This commit is contained in:
+4
-2
@@ -82,7 +82,6 @@ open class KonanCompileTask: KonanTargetableTask() {
|
||||
|
||||
internal lateinit var artifactName: String
|
||||
|
||||
@OutputDirectory
|
||||
lateinit var outputDir: File
|
||||
internal set
|
||||
|
||||
@@ -101,6 +100,9 @@ open class KonanCompileTask: KonanTargetableTask() {
|
||||
val artifactPath: String
|
||||
get() = "$artifactNamePath$artifactSuffix"
|
||||
|
||||
val artifact: File
|
||||
@OutputFile get() = project.file(artifactPath)
|
||||
|
||||
// Other compilation parameters -------------------------------------------
|
||||
|
||||
@InputFiles val inputFiles = mutableSetOf<FileCollection>()
|
||||
@@ -221,7 +223,7 @@ open class KonanCompileConfig(
|
||||
compilationTask.dependsOn(generateStubsTask)
|
||||
|
||||
linkerOpts(generateStubsTask.linkerOpts)
|
||||
library(compileStubsTask.artifactNamePath)
|
||||
library(compileStubsTask.artifact)
|
||||
nativeLibraries(project.fileTree(generateStubsTask.libsDir).apply {
|
||||
builtBy(generateStubsTask)
|
||||
include("**/*.bc")
|
||||
|
||||
Reference in New Issue
Block a user