API Documentation: JniLibraryExtension

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

An instance of this type is added as a project extension by the JNI Library Plugin.

Properties

Property Description

binaries

Configure the binaries of this component. The view contains an aggregation of all the binaries for each realized variants.

dependencies

The dependencies of this component.

targetMachines

Specifies the target machines this component should be built for. The "machines" extension property (see ) can be used to construct common operating system and architecture combinations.

variants

Configure the variants of this component.

Methods

Method Description

dependencies(action)

Configure the dependencies of this component.

Property Details

BinaryView<Binary> binaries (read-only)

Configure the binaries of this component. The view contains an aggregation of all the binaries for each realized variants.

T dependencies (read-only)

The dependencies of this component.

SetProperty<TargetMachine> targetMachines

Specifies the target machines this component should be built for. The "machines" extension property (see TargetMachineFactory) can be used to construct common operating system and architecture combinations.

For example:

targetMachines = [machines.linux.x86_64, machines.windows.x86_64]

VariantView<T> variants (read-only)

Configure the variants of this component.

Method Details

void dependencies(Action<? super T> action)

Configure the dependencies of this component.