Haven’t tried/heard of it. I’ll try to look into it, also would be the first time implementing another language with kotlin.
u
黄文和
10/30/2022, 4:46 PM
just generate c-binding with cinterop for libical,as long as it pure c
n
napperley
10/30/2022, 11:25 PM
Over 70% of Libical's code base is written in C. A C API is provided (uses the C99 standard).
m
maarten ha
10/31/2022, 9:28 AM
I’m really new to this. How can I create those .def files to from a cmake project? or does it also need other things🤨😕?
u
黄文和
10/31/2022, 9:31 AM
you should wrote .def by yourself.
you can found a lot of sample at: Samples
Although it's marked as obsolete, most of the def file's declarations are not obsolete, you can get examples by git switching HEAD to an earlier version.
You can also check this page for an example of def
https://kotlinlang.org/docs/native-c-interop.html
m
maarten ha
11/02/2022, 7:02 PM
Is there a way to add the .h files in a folder and reference them in the .def file? Currently I’m really struggling with the cinterop gradle task not finding the .h file. no clue how to get it in the terminal, have installed kotlin through brew (kotlinc works).