@Incubating public interface NativeBinary extends Binary
Named.Namer
Modifier and Type | Method and Description |
---|---|
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> |
getCompilerArgs()
The arguments passed when compiling this binary.
|
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(LanguageSourceSet sourceSet)
Adds a source set to use to compile this binary.
|
dependsOn, setLifecycleTask
getBuildDependencies
File getOutputFile()
void setOutputFile(File outputFile)
DomainObjectSet<LanguageSourceSet> getSource()
void source(LanguageSourceSet sourceSet)
Collection<NativeDependencySet> getLibs()
void lib(Object library)
List<Object> getMacros()
void define(Object... defines)
void compilerArgs(Object... args)
void linkerArgs(Object... args)