
commonMain.co.touchlab.skie.context.LinkPhaseContext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-linker-plugin-kgp_1.8.20 Show documentation
Show all versions of kotlin-compiler-linker-plugin-kgp_1.8.20 Show documentation
Kotlin compiler plugin that improves Swift interface of a Kotlin Multiplatform framework.
package co.touchlab.skie.context
import co.touchlab.skie.kir.descriptor.DescriptorKirProvider
import co.touchlab.skie.phases.LinkPhase
import java.nio.file.Path
class LinkPhaseContext(
private val mainSkieContext: MainSkieContext,
private val link: (additionalObjectFiles: List) -> Unit,
) : LinkPhase.Context, ForegroundPhaseCompilerContext by mainSkieContext {
override val context: LinkPhase.Context = this
val descriptorKirProvider: DescriptorKirProvider = mainSkieContext.descriptorKirProvider
override fun link(additionalObjectFiles: List) {
link.invoke(additionalObjectFiles)
}
override suspend fun awaitAllBackgroundJobs() {
mainSkieContext.awaitAllBackgroundJobs()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy