TargetedNativeComponent (Gradle API 2.14.1)

Package: org.gradle.nativeplatform

## [Java] Interface TargetedNativeComponent

- org.gradle.platform.base.PlatformAwareComponentSpec

- All Superinterfaces:
    ModelElement, ComponentSpec, Named, VariantComponentSpec, NativeComponentSpec, PlatformAwareComponentSpec

  A native component that can be configured to target certain variant dimensions. This functionality is a temporary workaround to eliminate configuration of unnecessary domain objects and tasks.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `targetBuildTypes(String... buildTypeSelectors)` Specifies the names of one or more BuildTypes that this component should be built for.
    `void` | `targetFlavors(String... flavorSelectors)` Specifies the names of one or more Flavors that this component should be built for.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface NativeComponentSpec` | `getBaseName, setBaseName`
    `interface PlatformAwareComponentSpec` | `targetPlatform`
    `interface VariantComponentSpec` | `getBinaries`

- - ### Method Detail

    - #### public void targetBuildTypes(String... buildTypeSelectors)

      Specifies the names of one or more BuildTypes that this component should be built for.

    - #### public void targetFlavors(String... flavorSelectors)

      Specifies the names of one or more Flavors that this component should be built for.