headers

abstract fun headers(vararg files: Any)

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"))
}
}
}
}
}

Parameters

files

The header files to be included for interoperability with C.

See also


abstract fun headers(files: FileCollection)

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")))
}
}
}
}
}

Parameters

files

The collection of header files to be included for interoperability with C.

See also