Package: org.gradle.nativebinaries

## [Java] Interface NativeLibrarySpec

- org.gradle.runtime.base.LibrarySpec

- All Superinterfaces:
    TargetedNativeComponent, Named, NativeComponentSpec, ComponentSpec, LibrarySpec

  A library component that is built by a gradle project.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `NativeLibraryRequirement` | `getApi()` Converts this library to a native library requirement that uses the api library linkage.
    `NativeLibraryRequirement` | `getShared()` Converts this library to a native library requirement that uses the shared library variant.
    `NativeLibraryRequirement` | `getStatic()` Converts this library to a native library requirement that uses the static library variant.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface NativeComponentSpec` | `getBaseName, getBinaries, setBaseName`
    `interface TargetedNativeComponent` | `targetBuildTypes, targetFlavors, targetPlatforms`

- - ### Method Detail

    - #### public NativeLibraryRequirement getApi()

      Converts this library to a native library requirement that uses the api library linkage.

    - #### public NativeLibraryRequirement getShared()

      Converts this library to a native library requirement that uses the shared library variant. This is the default.

    - #### public NativeLibraryRequirement getStatic()

      Converts this library to a native library requirement that uses the static library variant.