[platformLibs] Support -nopack option for metadata mode
This commit is contained in:
committed by
Ilya Matveev
parent
764be2f461
commit
934b843ffa
+4
-2
@@ -30,7 +30,8 @@ data class LibraryCreationArguments(
|
||||
val nativeBitcodePath: String,
|
||||
val target: KonanTarget,
|
||||
val manifest: Properties,
|
||||
val dependencies: List<KotlinLibrary>
|
||||
val dependencies: List<KotlinLibrary>,
|
||||
val nopack: Boolean
|
||||
)
|
||||
|
||||
fun createInteropLibrary(arguments: LibraryCreationArguments) {
|
||||
@@ -46,7 +47,8 @@ fun createInteropLibrary(arguments: LibraryCreationArguments) {
|
||||
File(outputPathWithoutExtension),
|
||||
arguments.moduleName,
|
||||
version,
|
||||
arguments.target
|
||||
arguments.target,
|
||||
nopack = arguments.nopack
|
||||
).apply {
|
||||
val metadata = arguments.metadata.write(ChunkingWriteStrategy())
|
||||
addMetadata(SerializedMetadata(metadata.header, metadata.fragments, metadata.fragmentNames))
|
||||
|
||||
+2
-1
@@ -337,7 +337,8 @@ private fun processCLib(args: Array<String>, additionalArgs: Map<String, Any> =
|
||||
moduleName = moduleName,
|
||||
outputPath = cinteropArguments.output,
|
||||
manifest = def.manifestAddendProperties,
|
||||
dependencies = allLibraryDependencies
|
||||
dependencies = allLibraryDependencies,
|
||||
nopack = cinteropArguments.nopack
|
||||
)
|
||||
createInteropLibrary(args)
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user