headers
Adds header files to produce Kotlin bindings. It's equivalent to the -header
cinterop tool option.
Usage example
kotlin {
linuxX64() {
compilations.getByName("main") {
cinterops {
val cinterop by creating {
defFile(project.file("custom. def"))
headers(project.file("custom.h"))
}
}
}
}
}
Content copied to clipboard
Parameters
files
The header files to be included for interoperability with C.
See also
Adds header files to produce Kotlin bindings. It's equivalent to the -header
cinterop tool option.
Usage example
kotlin {
linuxX64() {
compilations.getByName("main") {
cinterops {
val cinterop by creating {
defFile(project.file("custom. def"))
headers(listOf(project.file("custom.h")))
}
}
}
}
}
Content copied to clipboard
Parameters
files
The collection of header files to be included for interoperability with C.