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(closure)

Configure the shared library binary for this variant.

sharedLibrary(action)

Configure the shared library binary for this variant.

dependencies(action)

Configure the dependencies of this component.

dependencies(closure)

Configure the dependencies of this component.

Property Details

Provider<RegularFile> linkedFile (read-only)

The location of the linked binary.

ListProperty<String> linkerArgs

Additional arguments to provide to the linker.

It act as an escape hatch to the current model. Please open an issue on https://github.com/nokeedev/gradle-native with your reason for using this hatch so we can improve the model.

Provider<NativeToolChain> toolChain (read-only)

The tool chain used for the compilation.