Add kotlin runtime modulemap for swift export as part of kotlin-native dist #KT-65673 fixed
Co-authored-by: Alexander Shabalin <alexander.shabalin@ashabalin.me> Merge-request: KT-MR-14493 Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
@@ -148,6 +148,14 @@ configurations {
|
||||
}
|
||||
}
|
||||
|
||||
objcExportApi {
|
||||
canBeConsumed = false
|
||||
canBeResolved = true
|
||||
attributes {
|
||||
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, CppUsage.API))
|
||||
}
|
||||
}
|
||||
|
||||
embeddableJar {
|
||||
canBeConsumed = false
|
||||
canBeResolved = true
|
||||
@@ -175,6 +183,7 @@ dependencies {
|
||||
compilationDatabase project(":kotlin-native:common")
|
||||
compilationDatabase project(":kotlin-native:runtime")
|
||||
runtimeBitcode project(":kotlin-native:runtime")
|
||||
objcExportApi project(":kotlin-native:runtime")
|
||||
embeddableJar project(path: ':kotlin-native:prepare:kotlin-native-compiler-embeddable', configuration: 'runtimeElements')
|
||||
}
|
||||
|
||||
@@ -313,6 +322,10 @@ tasks.register("distCompiler", Copy) {
|
||||
exclude('**/*.properties')
|
||||
}
|
||||
|
||||
from(configurations.objcExportApi) {
|
||||
into('konan/swift_export/kotlin_runtime')
|
||||
}
|
||||
|
||||
from(project.file('konan')) {
|
||||
into('konan')
|
||||
include('**/*.properties')
|
||||
|
||||
Reference in New Issue
Block a user