gradle-plugin: Don't use afterEvaluate to configure tasks

Gradle plugin used afterEvaluate method to configure default
parameters for tasks. This behavior might lead to problems if
user also uses the afterEvaluate hook. This patch moves the
default setting logic into the tasks. The following actions
have been removed from the afterEvaluate hook:
  * Setting default source directories for KonanCompileTask
  * Setting default def-file for KonanInteropTask
This commit is contained in:
Ilya Matveev
2017-08-15 20:01:24 +07:00
committed by ilmat192
parent 4c52639ee7
commit 350ce9a2a6
4 changed files with 32 additions and 62 deletions
+1
View File
@@ -116,6 +116,7 @@ You may get this task using the `compilationTask` property of an artifact or by
|`inputFiles `|`Collection<FileCollection>`|Compiled files |
|`libraries `|`Collection<FileCollection>`|*.klib libraries used by the artifact |
|`nativeLibraries `|`Collection<FileCollection>`|*.bc libraries used by the artifact |
|`interops `|`Collection<Interop>` |All the interops used by the artifact |
|`linkerOpts `|`List<String>` |Additional options passed to the linker |
|`enableDebug `|`boolean` |Is the debugging support enabled |
|`noStdLib `|`boolean` |Is the artifact not linked with stdlib |