Skip to content

Using the plugin DSL

This plugin offers filtering without arg files through DSL properties where the symbols can be added. This approach might be more beginner-friendly or facilitate exploration of available options.

build.gradle.kts
jextract.libraries {
register("<libname>") {
whitelist {
typedefs.add("MY_TYPE")
functions.add("MY_FN")
constants.add("MY_CONST")
// more categories
}
}
}

The distinct symbol categories like typedefs, constants, or functions have their separate list properties in the jextract.whitelist extension.

Rebuilding the project
gradlew.bat clean build