Groovy Documentation

org.gradle.nativebinaries
[Java] Interface ProjectNativeComponent

org.gradle.nativebinaries.ProjectNativeComponent
  org.gradle.api.Named
All Superinterfaces:
Named

@Incubating
@HasInternalProtocol
public interface ProjectNativeComponent
extends Named

Represents a logical software component, which may be built in a number of variant binaries.


Method Summary
String getBaseName()

The name that is used to construct the output file names when building this component.

DomainObjectSet getBinaries()

The binaries that are built for this component.

String getDisplayName()

Returns a human-consumable display name for this component.

DomainObjectSet getSource()

The source sets that are used to build this component.

void setBaseName(String baseName)

Sets the name that is used to construct the output file names when building this component.

void source(Object source)

Adds one or more LanguageSourceSets that are used to compile this binary.

 
Methods inherited from interface Named
getName
 

Method Detail

getBaseName

public String getBaseName()
The name that is used to construct the output file names when building this component.


getBinaries

public DomainObjectSet getBinaries()
The binaries that are built for this component. You can use this to configure the binaries for this component.


getDisplayName

public String getDisplayName()
Returns a human-consumable display name for this component.


getSource

public DomainObjectSet getSource()
The source sets that are used to build this component.


setBaseName

public void setBaseName(String baseName)
Sets the name that is used to construct the output file names when building this component.


source

public void source(Object source)
Adds one or more LanguageSourceSets that are used to compile this binary.

This method accepts the following types:


 

Gradle API 1.12