Groovy Documentation

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

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

@Incubating
@HasInternalProtocol
public interface NativeBinary
extends Binary

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


Method Summary
void assemblerArgs(Object... args)

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

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 getAssemblerArgs()

The arguments passed when assembling this binary.

List getCompilerArgs()

The arguments passed when compiling this binary.

Flavor getFlavor()

The flavor that this binary was built with.

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(Object source)

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

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

Method Detail

assemblerArgs

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


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.


getAssemblerArgs

public List getAssemblerArgs()
The arguments passed when assembling this binary.


getCompilerArgs

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


getFlavor

public Flavor getFlavor()
The flavor that this binary was built with.


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(Object source)
Adds one or more LanguageSourceSets that are used to compile this binary.

This method accepts the following types:


 

Gradle API 1.8