org.gradle.platform.base

## Interface PlatformAwareComponentSpec

- All Known Subinterfaces:
    JvmLibrarySpec, NativeExecutableSpec, NativeLibrarySpec, TargetedNativeComponent

      public interface PlatformAwareComponentSpec

  Defines Platform specific operations for ComponentSpecs

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<String>` | `getTargetPlatforms()` Get the names of the targeted platforms that this component should be built for.
    `void` | `targetPlatform(String... targets)` Selects the targeted platforms names this component should be built be for.

- - ### Method Detail

    - #### getTargetPlatforms

          List<String> getTargetPlatforms()

      Get the names of the targeted platforms that this component should be built for.
      Returns:
        the list of targeted platforms, may be empty but never null.

    - #### targetPlatform

          void targetPlatform(String... targets)

      Selects the targeted platforms names this component should be built be for.