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
aleksey.tomin
05/29/2020, 3:41 AM
You can get path from environment variable - like this:
val mingwPath = File(System.getenv("MINGW64_DIR") ?: "C:/msys64/mingw64")
k
Kweku
05/29/2020, 10:13 AM
Thank you, what would be the syntax for referencing the variable in the .def file?
a
aleksey.tomin
05/29/2020, 10:15 AM
As I know you can redefine any path in build.gradle file
k
Kweku
05/29/2020, 10:24 AM
I mean for example how would you use the mingwPath in the def file