compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

how compose desktop add C++ / C library

Open sionnx opened this issue 3 years ago • 2 comments

I want add C++ code to my project, is it possible? what should I do

sionnx avatar Feb 22 '23 12:02 sionnx

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).

igordmn avatar Feb 28 '23 04:02 igordmn

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 14:08 okushnikov