Groovy Documentation

org.gradle.nativecode.base
[Java] Interface NativeBinary

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

@Incubating
@HasInternalProtocol
public interface NativeBinary
extends Binary

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


Method Summary
void compilerArgs(Object... args)

Adds a number of arguments to be passed to the compiler.

void define(Object... defines)

Adds a number of preprocessor macros to define when compiling this binary.

List getCompilerArgs()

The arguments passed when compiling this binary.

Collection getLibs()

The libraries that should be linked into this binary.

List getLinkerArgs()

The arguments passed when linking this binary.

List getMacros()

The set of preprocessor macros to define when compiling this binary.

File getOutputFile()

The file where this binary will be created.

DomainObjectSet getSource()

The source sets used to compile this binary.

ToolChain getToolChain()

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

void lib(Object library)

Adds a library as input to this binary.

void linkerArgs(Object... args)

Adds a number of arguments to be passed to the linker.

void setOutputFile(File outputFile)

Sets the file where this binary will be created.

void source(LanguageSourceSet sourceSet)

Adds a source set to use to compile this binary.

 
Methods inherited from interface Named
getName
 
Methods inherited from interface BuildableModelElement
dependsOn, setLifecycleTask
 
Methods inherited from interface Buildable
getBuildDependencies
 

Method Detail

compilerArgs

public void compilerArgs(Object... args)
Adds a number of arguments to be passed to the compiler.


define

public void define(Object... defines)
Adds a number of preprocessor macros to define when compiling this binary.


getCompilerArgs

public List getCompilerArgs()
The arguments passed when compiling this binary.


getLibs

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


getLinkerArgs

public List getLinkerArgs()
The arguments passed when linking this binary.


getMacros

public List getMacros()
The set of preprocessor macros to define when compiling this binary.


getOutputFile

public File getOutputFile()
The file where this binary will be created.


getSource

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


getToolChain

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


lib

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

This method accepts the following types:


linkerArgs

public void linkerArgs(Object... args)
Adds a number of arguments to be passed to the linker.


setOutputFile

public void setOutputFile(File outputFile)
Sets the file where this binary will be created.


source

public void source(LanguageSourceSet sourceSet)
Adds a source set to use to compile this binary.


 

Gradle API 1.7