API Documentation: JniLibrary

Configuration for a specific Java Native Interface (JNI) library variant, defining the dependencies that make up the library plus other settings.

Properties

Property Description

binaries

The binaries for this component.

dependencies

The dependencies of this component.

resourcePath

Specifies the resource path where the native components of the JNI library will be located within the JAR.

sharedLibrary

The shared library binary built for this variant.

targetMachine

The target machine for this variant.

Methods

Method Description

sharedLibrary(action)

Configure the shared library binary for this variant.

dependencies(action)

Configure the dependencies of this component.

Property Details

BinaryView<Binary> binaries (read-only)

The binaries for this component.

T dependencies (read-only)

The dependencies of this component.

Property<String> resourcePath

Specifies the resource path where the native components of the JNI library will be located within the JAR.

SharedLibraryBinary sharedLibrary (read-only)

The shared library binary built for this variant.

TargetMachine targetMachine (read-only)

The target machine for this variant.

Method Details

void sharedLibrary(Action<? super SharedLibraryBinary> action)

Configure the shared library binary for this variant.

void dependencies(Action<? super T> action)

Configure the dependencies of this component.