LibraryHandler

abstract class LibraryHandler : Named(source)

A configuration for a library to be generated by Jextract

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val definedMacros: ListProperty<String>

Macros to be defined, in the format <name>=<value>

Link copied to clipboard
abstract val generateSourceFiles: Property<Boolean>

Generate source files instead of class files (Jextract 21 and below)

Link copied to clipboard
abstract val header: RegularFileProperty

The header file to generate bindings for

Link copied to clipboard
abstract val headerClassName: Property<String>

The name for the class generated from the header file, derived from the header file if missing

Link copied to clipboard
abstract val includes: ListProperty<Directory>

Additional directories to be appended to include search paths

Link copied to clipboard
abstract val libraries: ListProperty<String>

Native libraries to be loaded by generated code (either names or paths starting with colon)

Link copied to clipboard
abstract val output: DirectoryProperty

specify the directory to place generated files.

Link copied to clipboard
abstract val targetPackage: Property<String>

The package name for the generated code

Link copied to clipboard
abstract val useSystemLoadLibrary: Property<Boolean>

Load libraries in the library symbol lookup, using either System.load or System.loadLibrary, useful for libraries in java.library.path

Link copied to clipboard

List of definitions to be included

Functions

Link copied to clipboard
fun whitelist(action: Action<in WhitelistHandler>)

Configures the list of definitions to be included