Hi all 2, Sharing a project coming from nowhere: ...
# feed
m
Hi all 2, Sharing a project coming from nowhere: Komple, the tool used to compile the static and shared native libraries and also the wasm build of Ksqlite. To stay short, Komple let you: • Bring all the tools you need for your complex build and consume them directly from your Gradle build scripts • Declare shell environments automatically configured by your selected tools and run your commands within them • Declare C projects that can be used to compile to a bunch of platforms including all the Kotlin/Native ones More in the project's README Enjoy 2 kodee loving
K 2
s
That looks useful... I was just looking for some Gradle plugin to install / use UPX on KMP binaries. Looks like I could achieve this via Komple custom tools.
😉 1
m
You hit it right ! I hope Komple meets your expectations. Also I'm working on Windows support in case you need some of the builtin tools running on that host.
Mid term goals include the compilation of C-interoperable Rust crates. That way Kotlin developers can access some critical missing pieces from other ecosystems.
Long term goals include the generation of all the expect/actuals, based on the C / Rust project, for the targeted platforms, with automatic memory management. In essence, the aim is to replicate the manual work done for Ksqlite. While this will require significant effort and necessitate the definition of certain rules by the author (such as pointer ownership, etc.), it is entirely feasible. This way, any C-compatible code—regardless of its origin—can be ported to Kotlin without excessive effort. The Kotlin author will simply need to maintain a small rules file (e.g. a YAML file) and implement a few specific functions.