So I've been working on importing an obj-c framewo...
# kotlin-native
k
So I've been working on importing an obj-c framework using c-interop and currently in linkeropts to link to a framework I have an absolute path. It all works fine but is there any way to use relativele paths in the Def fil just for ease of use with Vcs? Is it possible to set the path in gradle?
a
You can get path from environment variable - like this:
val mingwPath = File(System.getenv("MINGW64_DIR") ?: "C:/msys64/mingw64")
k
Thank you, what would be the syntax for referencing the variable in the .def file?
a
As I know you can redefine any path in build.gradle file
k
I mean for example how would you use the mingwPath in the def file