@Incubating public interface NativeBinary extends Binary
Named.Namer
Modifier and Type | Method and Description |
---|---|
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<Object> |
getAssemblerArgs()
The arguments passed when assembling this binary.
|
List<Object> |
getCompilerArgs()
The arguments passed when compiling this binary.
|
Flavor |
getFlavor()
The flavor that this binary was built with.
|
Collection<NativeDependencySet> |
getLibs()
The libraries that should be linked into this binary.
|
List<Object> |
getLinkerArgs()
The arguments passed when linking this binary.
|
List<Object> |
getMacros()
The set of preprocessor macros to define when compiling this binary.
|
File |
getOutputFile()
The file where this binary will be created.
|
DomainObjectSet<LanguageSourceSet> |
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
LanguageSourceSet s that are used to compile this binary. |
dependsOn, setLifecycleTask
getBuildDependencies
Flavor getFlavor()
File getOutputFile()
void setOutputFile(File outputFile)
DomainObjectSet<LanguageSourceSet> getSource()
void source(Object source)
LanguageSourceSet
s that are used to compile this binary.
This method accepts the following types:
FunctionalSourceSet
LanguageSourceSet
LanguageSourceSet
sCollection<NativeDependencySet> getLibs()
void lib(Object library)
List<Object> getMacros()
void define(Object... defines)
void compilerArgs(Object... args)
void assemblerArgs(Object... args)
void linkerArgs(Object... args)