Package org.gradle.nativeplatform.tasks
Class CreateStaticLibrary
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.nativeplatform.tasks.CreateStaticLibrary
- All Implemented Interfaces:
- Comparable<Task>,- org.gradle.api.internal.DynamicObjectAware,- org.gradle.api.internal.TaskInternal,- Named,- ExtensionAware,- Task,- ObjectFilesToBinary,- Configurable<Task>
@DisableCachingByDefault(because="Not made cacheable, yet")
public abstract class CreateStaticLibrary
extends DefaultTask
implements ObjectFilesToBinary
Assembles a static library from object files.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.TaskTask.Namer
- 
Field SummaryFields inherited from interface org.gradle.api.TaskTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe file where the linked binary will be located.org.gradle.internal.operations.logging.BuildOperationLoggerFactoryThe file where the output binary will be located.The source object files to be passed to the archiver.Additional arguments passed to the archiver.The platform being linked for.The tool chain used for linking.protected voidlink()voidAdds a set of object files to be linked.Methods inherited from class org.gradle.api.DefaultTaskcompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTaskacceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.ComparablecompareToMethods inherited from interface org.gradle.api.plugins.ExtensionAwaregetExtensionsMethods inherited from interface org.gradle.api.Taskconfigure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getPath, getProject, getShouldRunAfter, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
- 
Constructor Details- 
CreateStaticLibrarypublic CreateStaticLibrary()
 
- 
- 
Method Details- 
getSource@InputFiles @SkipWhenEmpty @IgnoreEmptyDirectories @PathSensitive(RELATIVE) public FileCollection getSource()The source object files to be passed to the archiver.
- 
sourceAdds a set of object files to be linked.The provided source object is evaluated as per Project.files(Object...).- Specified by:
- sourcein interface- ObjectFilesToBinary
 
- 
getOperationLoggerFactory@Inject public org.gradle.internal.operations.logging.BuildOperationLoggerFactory getOperationLoggerFactory()
- 
linkprotected void link()
- 
getToolChainThe tool chain used for linking.- Since:
- 4.7
 
- 
getTargetPlatformThe platform being linked for.- Since:
- 4.7
 
- 
getOutputFileThe file where the output binary will be located.
- 
getBinaryFileThe file where the linked binary will be located.- Since:
- 4.5
 
- 
getStaticLibArgsAdditional arguments passed to the archiver.- Since:
- 4.7
 
 
-