I have a Kotlin Native application. It compiles to
mingwX64
and
macosX64
. It also uses a library via cinterop that works with Mac and Windows, and shares the same header files. The problem is that in my project, the library ONLY seems accessible in the mingwX64 or the macosX64 source set.
Creating expect/actuals for every single type would be extremely cumbersome. I have
kotlin.mpp.enableGranularSourceSetsMetadata=true
. Something tells me this is supposed to work, but I’ve just done something wrong. Should this be working?
r
russhwolf
01/17/2022, 6:43 PM
cinterop with third-party libs needs an addtional gradle flag. Add