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
,ExtensionAware
,Task
,ObjectFilesToBinary
,org.gradle.util.Configurable<Task>
Assembles a static library from object files.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.internal.operations.logging.BuildOperationLoggerFactory
The 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 targeted.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
Adds a set of object files to be linked.Methods inherited from class org.gradle.api.DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
Methods inherited from class org.gradle.api.internal.AbstractTask
addValidator, 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensions
Methods inherited from interface org.gradle.api.Task
configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getPath, getProject, getShouldRunAfter, getTaskDependencies, getTemporaryDir, hasProperty, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter
-
Constructor Details
-
CreateStaticLibrary
public CreateStaticLibrary()
-
-
Method Details
-
getSource
The source object files to be passed to the archiver. -
source
Adds a set of object files to be linked.The provided source object is evaluated as per
Project.files(Object...)
.- Specified by:
source
in interfaceObjectFilesToBinary
-
getOperationLoggerFactory
@Inject public org.gradle.internal.operations.logging.BuildOperationLoggerFactory getOperationLoggerFactory() -
link
public void link() -
getToolChain
The tool chain used for creating the static library. -
setToolChain
-
getTargetPlatform
The platform being targeted. -
setTargetPlatform
-
getOutputFile
The file where the output binary will be located. -
setOutputFile
-
getStaticLibArgs
Additional arguments passed to the archiver. -
setStaticLibArgs
-