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.
jextract.libraries { register("<libname>") { whitelist { typedefs.add("MY_TYPE") functions.add("MY_FN") constants.add("MY_CONST") // more categories } }}
jextract.libraries { register("<libname>") { whitelist { typedefs += "MY_TYPE" functions += "MY_FN" constants += "MY_CONST" // more categories } }}
The distinct symbol categories like typedefs, constants, or functions have their separate list properties in the jextract.whitelist
extension.
gradlew.bat clean build
./gradlew clean build