org.gradle.nativeplatform

## Interface NativeLibrarySpec

- All Superinterfaces:
    ComponentSpec, GeneralComponentSpec, LibrarySpec, Named, NativeComponentSpec, PlatformAwareComponentSpec, SourceComponentSpec, TargetedNativeComponent, VariantComponentSpec

      @Incubating
      public interface NativeLibrarySpec
      extends LibrarySpec, NativeComponentSpec, TargetedNativeComponent

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

- - ### Method Summary

    Methods
    Modifier and Type | Method 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.

    - ### Methods inherited from interface org.gradle.platform.base.SourceComponentSpec

      `getSources`

    - ### Methods inherited from interface org.gradle.nativeplatform.TargetedNativeComponent

      `targetBuildTypes, targetFlavors`

    - ### Methods inherited from interface org.gradle.platform.base.PlatformAwareComponentSpec

      `targetPlatform`

    - ### Methods inherited from interface org.gradle.platform.base.VariantComponentSpec

      `getBinaries`

    - ### Methods inherited from interface org.gradle.nativeplatform.NativeComponentSpec

      `getBaseName, setBaseName`

- - ### Method Detail

    - #### getShared

          NativeLibraryRequirement getShared()

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

    - #### getStatic

          NativeLibraryRequirement getStatic()

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

    - #### getApi

          NativeLibraryRequirement getApi()

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