Produce windows .def files together with .dlls.

This commit is contained in:
Alexander Gorshenev
2017-12-12 01:28:20 +03:00
committed by alexander-gorshenev
parent 82755af754
commit 3984c4ff64
2 changed files with 2 additions and 1 deletions
@@ -292,7 +292,7 @@ private class ExportedElement(val kind: ElementKind,
internal class CAdapterGenerator(val context: Context,
internal val codegen: CodeGenerator) : IrElementVisitorVoid {
private val scopes = mutableListOf<ExportedElementScope>()
internal val prefix: String = context.config.outputName
internal val prefix: String = context.config.moduleId
private lateinit var outputStreamWriter: PrintWriter
override fun visitElement(element: IrElement) {
@@ -21,6 +21,7 @@ import org.jetbrains.kotlin.konan.file.*
class TempFiles(val outputName: String) {
val nativeBinaryFile by lazy { File("${outputName}.kt.bc") }
val cAdapterHeader by lazy { File("${outputName}_api.h") }
val cAdapterDef by lazy { File("${outputName}_symbols.def") }
val cAdapterCpp by lazy { createTempFile("api", ".cpp").deleteOnExit() }
val cAdapterBitcode by lazy { createTempFile("api", ".bc").deleteOnExit() }