@Incubating public class CreateStaticLibrary extends DefaultTask implements ObjectFilesToBinary
Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
CreateStaticLibrary() |
Modifier and Type | Method and Description |
---|---|
org.gradle.internal.operations.logging.BuildOperationLoggerFactory |
getOperationLoggerFactory() |
File |
getOutputFile()
The file where the output binary will be located.
|
FileCollection |
getSource()
The source object files to be passed to the archiver.
|
List<String> |
getStaticLibArgs()
Additional arguments passed to the archiver.
|
NativePlatform |
getTargetPlatform()
The platform being targeted.
|
NativeToolChain |
getToolChain()
The tool chain used for creating the static library.
|
void |
link() |
void |
setOutputFile(File outputFile) |
void |
setStaticLibArgs(List<String> staticLibArgs) |
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, getActionClassLoaders, 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, setOnlyIf, setOnlyIf, 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
@InputFiles @SkipWhenEmpty public FileCollection getSource()
public void source(Object source)
The provided source object is evaluated as per Project.files(Object...)
.
source
in interface ObjectFilesToBinary
@Inject public org.gradle.internal.operations.logging.BuildOperationLoggerFactory getOperationLoggerFactory()
public void link()
@Internal public NativeToolChain getToolChain()
public void setToolChain(NativeToolChain toolChain)
public NativePlatform getTargetPlatform()
public void setTargetPlatform(NativePlatform targetPlatform)
@OutputFile public File getOutputFile()
public void setOutputFile(File outputFile)
@Input public List<String> getStaticLibArgs()