compose-multiplatform
compose-multiplatform copied to clipboard
how compose desktop add C++ / C library
I want add C++ code to my project, is it possible? what should I do
It is out of scope of this library.
I haven't checked, but this might help:
Follow this tutorial and add a new Gradle module into your Compose project. For example, if you add a module named lib (generated after you followed the tutorial), you can compile your library with a command gradlew lib:build. After that there should be a shared library built in lib/build directory. Then you can load it via JNI in your Kotlin code (tutorial).
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.