@Incubating public abstract class AbstractLinkTask extends DefaultTask implements ObjectFilesToBinary, GroovyObject
Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
AbstractLinkTask() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.gradle.nativeplatform.internal.LinkerSpec |
createLinkerSpec() |
File |
getDestinationDir()
Include the destination directory as an output, to pick up auxiliary files produced alongside the main output file
|
FileCollection |
getLibs()
The library files to be passed to the linker.
|
List<String> |
getLinkerArgs()
Additional arguments passed to the linker.
|
MetaClass |
getMetaClass() |
org.gradle.internal.operations.logging.BuildOperationLoggerFactory |
getOperationLoggerFactory() |
File |
getOutputFile()
The file where the linked binary will be located.
|
Object |
getProperty(String property) |
FileCollection |
getSource()
The source object files to be passed to the linker.
|
NativePlatform |
getTargetPlatform()
The platform that the linked binary will run on.
|
NativeToolChain |
getToolChain()
The tool chain used for linking.
|
Object |
invokeMethod(String name,
Object args) |
void |
lib(Object libs)
Adds a set of library files to be linked.
|
void |
link() |
void |
setLibs(FileCollection libs) |
void |
setLinkerArgs(List<String> linkerArgs) |
void |
setMetaClass(MetaClass metaClass) |
void |
setOutputFile(File outputFile) |
void |
setSource(FileCollection source) |
void |
setTargetPlatform(NativePlatform targetPlatform) |
void |
setToolChain(NativeToolChain toolChain) |
void |
source(Object source)
Adds a set of object files to be linked.
|
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, hasProperty, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter
compareTo
getExtensions
setProperty
public Object getProperty(String property)
getProperty
in interface GroovyObject
public Object invokeMethod(String name, Object args)
invokeMethod
in interface GroovyObject
public MetaClass getMetaClass()
getMetaClass
in interface GroovyObject
public void setMetaClass(MetaClass metaClass)
setMetaClass
in interface GroovyObject
public NativeToolChain getToolChain()
public void setToolChain(NativeToolChain toolChain)
public NativePlatform getTargetPlatform()
public void setTargetPlatform(NativePlatform targetPlatform)
@OutputDirectory public File getDestinationDir()
@OutputFile public File getOutputFile()
public void setOutputFile(File outputFile)
@InputFiles public FileCollection getSource()
public void setSource(FileCollection source)
@InputFiles public FileCollection getLibs()
public void setLibs(FileCollection libs)
public void source(Object source)
Project.files(Object...)
.source
in interface ObjectFilesToBinary
public void lib(Object libs)
Project.files(Object...)
.@Inject public org.gradle.internal.operations.logging.BuildOperationLoggerFactory getOperationLoggerFactory()
public void link()
protected abstract org.gradle.nativeplatform.internal.LinkerSpec createLinkerSpec()