Hey folks,
I built
CMake import plugin for generating
Kotlin/Native C-interop bindings for
CMake-based projects.
It generates CMake toolchain definitions from Kotlin/Native's own toolchains to enable cross compilation on any host supported by Kotlin/Native itself. The plugin also generates C-interop definition file based on CMake install target, picking up public headers, static libraries and linker flags automatically.
So far, I tested it on SDL3 and Volk successfully, however there might be some limitations. If you try it, let me know whether it worked for your use case, I'd highly appreciate your feedback
Slack Conversation