Groovy Documentation

org.gradle.nativebinaries
[Java] Interface ProjectNativeBinary

org.gradle.api.Named
  org.gradle.language.base.Binary
      org.gradle.nativebinaries.ProjectNativeBinary
          org.gradle.language.base.BuildableModelElement
              org.gradle.nativebinaries.NativeBinary
                  org.gradle.api.Buildable
All Superinterfaces:
Named, Binary, BuildableModelElement, NativeBinary, Buildable

@Incubating
@HasInternalProtocol
public interface ProjectNativeBinary
extends NativeBinary

Represents a particular binary artifact that is the result of building a native component.


Method Summary
ProjectNativeComponent getComponent()

The component that this binary was built from.

Collection getLibs()

The libraries that should be linked into this binary.

Tool getLinker()

The settings used for linking this binary.

DomainObjectSet getSource()

The source sets used to compile this binary.

Tool getStaticLibArchiver()

The static archiver settings used for creating this binary.

NativeBinaryTasks getTasks()

The set of tasks associated with this binary.

ToolChain getToolChain()

Returns the ToolChain that will be used to build this binary.

boolean isBuildable()

Can this binary be built in the current environment?

void lib(Object library)

Adds a library as input to this binary.

void source(Object source)

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

 
Methods inherited from interface NativeBinary
getBuildType, getFlavor, getTargetPlatform
 
Methods inherited from interface Binary
getDisplayName
 
Methods inherited from interface Named
getName
 
Methods inherited from interface BuildableModelElement
builtBy, hasBuildDependencies, setLifecycleTask
 
Methods inherited from interface Buildable
getBuildDependencies
 

Method Detail

getComponent

public ProjectNativeComponent getComponent()
The component that this binary was built from.


getLibs

public Collection getLibs()
The libraries that should be linked into this binary.


getLinker

public Tool getLinker()
The settings used for linking this binary.


getSource

public DomainObjectSet getSource()
The source sets used to compile this binary.


getStaticLibArchiver

public Tool getStaticLibArchiver()
The static archiver settings used for creating this binary.


getTasks

public NativeBinaryTasks getTasks()
The set of tasks associated with this binary.


getToolChain

public ToolChain getToolChain()
Returns the ToolChain that will be used to build this binary.


isBuildable

public boolean isBuildable()
Can this binary be built in the current environment?


lib

public void lib(Object library)
Adds a library as input to this binary.

This method accepts the following types:

The Map notation supports the following String attributes:


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-rc-1