NativeLibrarySpec (Gradle API 2.10)
Date: 2015-12-21

Package: org.gradle.nativeplatform

## [Java] Interface NativeLibrarySpec

- org.gradle.nativeplatform.NativeComponentSpec

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

  Definition of a native library component that is to be built by Gradle.

- - ### 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, setBaseName`
    `interface TargetedNativeComponent` | `targetBuildTypes, targetFlavors`
    `interface PlatformAwareComponentSpec` | `targetPlatform`

- - ### 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.