@Incubating public interface NativeBinary extends Binary
Named.Namer
Modifier and Type | Method and Description |
---|---|
BuildType |
getBuildType()
Returns the
BuildType used to construct this binary. |
NativeComponent |
getComponent()
The component that this binary was built from.
|
Flavor |
getFlavor()
The flavor that this binary was built with.
|
Collection<NativeDependencySet> |
getLibs()
The libraries that should be linked into this binary.
|
Tool |
getLinker()
The settings used for linking this binary.
|
File |
getOutputFile()
The file where this binary will be created.
|
DomainObjectSet<LanguageSourceSet> |
getSource()
The source sets used to compile this binary.
|
Platform |
getTargetPlatform()
Returns the
Platform that this binary is targeted to run on. |
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 |
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. |
builtBy, setLifecycleTask
getBuildDependencies
NativeComponent getComponent()
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
sPlatform getTargetPlatform()
Platform
that this binary is targeted to run on.Collection<NativeDependencySet> getLibs()
void lib(Object library)
Tool getLinker()
NativeBinaryTasks getTasks()
boolean isBuildable()