I’m trying to use the c interop tool to generate t...
# kotlin-native
s
I’m trying to use the c interop tool to generate the kotlin stubs for a c library. The Library is a dylib, and I have the header files.
headers/mylibrary/mylibrary.h
mylibrary.h references headers from another library,
plist/plist.h
. I also have these header files stored in
headers/plist/plist.h
, but for some reason no matter what I try, I can’t get the cinterop tool to find the plist.h headers. How can I fix this?
I got this working by using the Gradle api to include the header file root directory.
Copy code
includeDirs(project.file("headers"))