public interface JniLibrary extends Variant, DependencyAwareComponent<JavaNativeInterfaceNativeComponentDependencies>, BinaryAwareComponent
Modifier and Type | Method and Description |
---|---|
ConfigurableFileCollection |
getNativeRuntimeFiles()
Configure the native runtime files to include inside the JNI JAR at the resource path location.
|
Property<String> |
getResourcePath()
Specifies the resource path where the native components of the JNI library will be located within the JAR.
|
SharedLibraryBinary |
getSharedLibrary()
Returns the shared library binary built for this variant.
|
TargetMachine |
getTargetMachine()
Returns the target machine for this variant.
|
void |
sharedLibrary(Action<? super SharedLibraryBinary> action)
Configure the shared library binary for this variant.
|
default void |
sharedLibrary(groovy.lang.Closure<Void> closure)
Configure the shared library binary for this variant.
|
getBinaries, getBuildVariant, getDevelopmentBinary
dependencies, dependencies, getDependencies
Property<String> getResourcePath()
TargetMachine getTargetMachine()
TargetMachine
instance, never null.SharedLibraryBinary getSharedLibrary()
SharedLibraryBinary
instance, never null.void sharedLibrary(Action<? super SharedLibraryBinary> action)
action
- configuration action for SharedLibraryBinary
.default void sharedLibrary(@DelegatesTo(value=SharedLibraryBinary.class,strategy=1) groovy.lang.Closure<Void> closure)
closure
- configuration closure for SharedLibraryBinary
.ConfigurableFileCollection getNativeRuntimeFiles()
for the resource path location for the native runtime files