https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
b

Ben Woodworth

05/20/2021, 9:15 PM
Aside from that, is there a way to add native platform dependencies to a source set? I have
desktop
with
dependsOn(common)
, and all the *_x64 source sets with
dependsOn(desktop)
, but I'm not sure how to use the platform libs in desktop
Copy code
common
- jvm
- js
- desktop (uses platform.zlib)
  - linux_x64
  - mingw_x64
  - macos_x64
Closest thing I've found so far is this in a klib manifest:
depends=stdlib org.jetbrains.kotlinx\:kotlinx-serialization-core org.jetbrains.kotlin.native.platform.zlib
I don't know how to make a source set depend on the zlib dependency in gradle though
m

msink

05/20/2021, 9:50 PM
This is under development and should be in 1.5.20 or 1.5.30 https://youtrack.jetbrains.com/issue/KT-46636
b

Ben Woodworth

05/20/2021, 9:58 PM
Glad to hear! Thanks for the info 🙂
3 Views