Files
kotlin-fork/Interop
Sergey Bogolepov c1d20ae511 [Interop] Extend IrProviderForCEnumStubs to support structs.
Since current approach to generate IR for structs is the same as for enums
it makes sense to just plug in CStructVarClassGenerator into current provider.
2020-02-07 11:31:29 +07:00
..
2019-11-13 19:16:35 +03:00

Kotlin-native interop

Usage

Create file ../gradle.properties with contents:

llvmInstallPath=/path/to/llvm

Create a Gradle subproject somewhere under ../, using ../InteropExample as a template.

To generate the interop stubs and libraries and build all sources you can run the following command from ../:

./gradlew InteropExample:build

To run the example (if 'application' plugin is enabled):

./gradlew InteropExample:run