Collect dependent libraries in the manifest.

Link dependencies recursively.
This commit is contained in:
Alexander Gorshenev
2017-09-26 17:08:36 +03:00
committed by alexander-gorshenev
parent 3b1428597b
commit 42cbf8428b
13 changed files with 148 additions and 77 deletions
@@ -86,7 +86,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
arguments.libraries.toNonNullList())
put(LINKER_ARGS, arguments.linkerArguments.toNonNullList())
arguments.moduleName ?. let{ put(MODULE_NAME, it) }
arguments.target ?.let{ put(TARGET, it) }
put(INCLUDED_BINARY_FILES,
@@ -45,6 +45,9 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-manifest", valueDescription = "<path>", description = "Provide a maniferst addend file")
var manifestFile: String? = null
@Argument(value = "-module_name", valueDescription = "<name>", description = "Spicify a name for the compilation module")
var moduleName: String? = null
@Argument(value = "-nativelibrary", shortName = "-nl", valueDescription = "<path>", description = "Include the native bitcode library")
var nativeLibraries: Array<String>? = null