@Incubating public abstract class AbstractLinkTask extends DefaultTask implements ObjectFilesToBinary
Task.NamerTASK_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() |
RegularFileProperty |
getBinaryFile()
The file where the linked binary will be located.
|
File |
getDestinationDir()
Include the destination directory as an output, to pick up auxiliary files produced alongside the main output file
|
ConfigurableFileCollection |
getLibs()
The library files to be passed to the linker.
|
ListProperty<String> |
getLinkerArgs()
Additional arguments passed to the linker.
|
org.gradle.internal.operations.logging.BuildOperationLoggerFactory |
getOperationLoggerFactory() |
File |
getOutputFile() |
ConfigurableFileCollection |
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.
|
boolean |
isDebuggable()
Create a debuggable binary?
|
void |
lib(Object libs)
Adds a set of library files to be linked.
|
void |
link() |
void |
setDebuggable(boolean debuggable)
Create a debuggable binary?
|
void |
setLibs(FileCollection libs) |
void |
setOutputFile(File outputFile) |
void |
setOutputFile(Provider<? extends RegularFile> outputFile)
Sets the output file generated by the linking process via a
Provider. |
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.
|
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, 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, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, 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, shouldRunAftercompareTogetExtensions@Internal public NativeToolChain getToolChain()
public void setToolChain(NativeToolChain toolChain)
public NativePlatform getTargetPlatform()
public void setTargetPlatform(NativePlatform targetPlatform)
@OutputDirectory public File getDestinationDir()
@OutputFile public RegularFileProperty getBinaryFile()
public void setOutputFile(File outputFile)
public void setOutputFile(Provider<? extends RegularFile> outputFile)
Provider.outputFile - the output file provider to usesetOutputFile(File)@Input public ListProperty<String> getLinkerArgs()
@Input public boolean isDebuggable()
public void setDebuggable(boolean debuggable)
@InputFiles public ConfigurableFileCollection getSource()
public void setSource(FileCollection source)
@InputFiles public ConfigurableFileCollection getLibs()
public void setLibs(FileCollection libs)
public void source(Object source)
Project.files(Object...).source in interface ObjectFilesToBinarypublic 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()