hey all. Is there any way to configure a kotlin mu...
# kotlin-native
n
hey all. Is there any way to configure a kotlin multiplatform project to build a c library from source (inside the project) with gradle in the cinterop step?
r
It should be doable via Gradle
cpp-library
plugin (https://blog.gradle.org/introducing-the-new-cpp-plugins) and making cinterop task depend on it's build output.
n
it looks promising but I can't seem to get gradle to recognize the source folders (src/main/cpp and src/main/headers) when configured as a submodule...
so what I've ended up doing for now is manually building the c library as a static library and putting it in /usr/lib and just creating a def file for it.