[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 nativeBitcodePath: String,
|
||||||
val target: KonanTarget,
|
val target: KonanTarget,
|
||||||
val manifest: Properties,
|
val manifest: Properties,
|
||||||
val dependencies: List<KotlinLibrary>
|
val dependencies: List<KotlinLibrary>,
|
||||||
|
val nopack: Boolean
|
||||||
)
|
)
|
||||||
|
|
||||||
fun createInteropLibrary(arguments: LibraryCreationArguments) {
|
fun createInteropLibrary(arguments: LibraryCreationArguments) {
|
||||||
@@ -46,7 +47,8 @@ fun createInteropLibrary(arguments: LibraryCreationArguments) {
|
|||||||
File(outputPathWithoutExtension),
|
File(outputPathWithoutExtension),
|
||||||
arguments.moduleName,
|
arguments.moduleName,
|
||||||
version,
|
version,
|
||||||
arguments.target
|
arguments.target,
|
||||||
|
nopack = arguments.nopack
|
||||||
).apply {
|
).apply {
|
||||||
val metadata = arguments.metadata.write(ChunkingWriteStrategy())
|
val metadata = arguments.metadata.write(ChunkingWriteStrategy())
|
||||||
addMetadata(SerializedMetadata(metadata.header, metadata.fragments, metadata.fragmentNames))
|
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,
|
moduleName = moduleName,
|
||||||
outputPath = cinteropArguments.output,
|
outputPath = cinteropArguments.output,
|
||||||
manifest = def.manifestAddendProperties,
|
manifest = def.manifestAddendProperties,
|
||||||
dependencies = allLibraryDependencies
|
dependencies = allLibraryDependencies,
|
||||||
|
nopack = cinteropArguments.nopack
|
||||||
)
|
)
|
||||||
createInteropLibrary(args)
|
createInteropLibrary(args)
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user