Pass linkerOpts from .def to klib manifest.

This commit is contained in:
Alexander Gorshenev
2017-06-29 16:25:30 +03:00
committed by alexander-gorshenev
parent e2516f42e6
commit 5effdcb1d2
13 changed files with 80 additions and 14 deletions
@@ -124,6 +124,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
put(ABI_VERSION, 1)
arguments.mainPackage ?.let{ put(ENTRY, it) }
arguments.manifestFile ?.let{ put(MANIFEST_FILE, it) }
arguments.runtimeFile ?.let{ put(RUNTIME_FILE, it) }
arguments.propertyFile ?.let{ put(PROPERTY_FILE, it) }
@@ -36,6 +36,9 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
@field:Argument(value = "-list_targets", description = "List available hardware targets")
@JvmField var listTargets: Boolean = false
@field:Argument(value = "-manifest", valueDescription = "<path>", description = "Provide a maniferst addend file")
@JvmField var manifestFile: String? = null
@field:Argument(value = "-nativelibrary", shortName = "-nl", valueDescription = "<path>", description = "Include the native library")
@JvmField var nativeLibraries: Array<String>? = null