packageName
Defines the package name for the generated bindings. It is equivalent to passing -pkg
to the cinterop tool.
Example
//build.gradle.kts
kotlin {
linuxX64 {
compilations.getByName("main").cinterops.create("customCinterop") {
defFile(project.file("custom.def"))
packageName = "com.test.cinterop"
}
}
}
Content copied to clipboard
In the example, the com.test.cinterop package contains all the declarations collected from headers by the cinterop tool. These declarations are then available in this package during the final Kotlin compilation.
Parameters
value
The package name to be assigned.