https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
n

napperley

04/13/2021, 1:54 AM
Is it possible to do cinterop with just a Gradle build file, and no def files?
a

Artyom Degtyarev [JB]

04/13/2021, 10:40 AM
I have not tried it myself, but
cinterop
tool says
Exception in thread “main” java.lang.IllegalStateException: -def or -pkg should be provided!
Usage: cinterop options_list
-pkg
can be set from Gradle as
packageName
. Maybe this will be enough.
d

Dominaezzz

04/13/2021, 6:54 PM
I'm 99.999999999% sure that you need a def file. Let us know if you manage to do it.
2 Views