Package org.gradle.language.swift.tasks
Class SwiftCompile
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.language.swift.tasks.SwiftCompile
- All Implemented Interfaces:
Comparable<Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,Named
,ExtensionAware
,Task
,Configurable<Task>
Compiles Swift source files into object files.
- Since:
- 4.1
-
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_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
ConstructorDescriptionSwiftCompile
(org.gradle.nativeplatform.internal.CompilerOutputFileNamingSchemeFactory compilerOutputFileNamingSchemeFactory, org.gradle.internal.file.Deleter deleter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
compile
(InputChanges inputs) Additional arguments to provide to the compiler.protected CompilerVersion
The compiler used, including the type and the version.Should the compiler generate debuggable code?Macros that should be defined for the compiler.The location to write the Swift module file to.The name of the module to produce.The modules required to compile the source.The directory where object files will be generated.Should the compiler generate optimized code?Returns the source files to be compiled.Returns the Swift language level to use to compile the source files.The platform being compiled for.The tool chain used for compilation.boolean
Should the compiler generate debuggable code?boolean
Should the compiler generate debuggable code?Methods inherited from class org.gradle.api.DefaultTask
compareTo, 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, usesService
Methods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
SwiftCompile
@Inject public SwiftCompile(org.gradle.nativeplatform.internal.CompilerOutputFileNamingSchemeFactory compilerOutputFileNamingSchemeFactory, org.gradle.internal.file.Deleter deleter)
-
-
Method Details
-
getToolChain
The tool chain used for compilation.- Since:
- 4.7
-
getTargetPlatform
The platform being compiled for.- Since:
- 4.7
-
getSource
@InputFiles @SkipWhenEmpty @IgnoreEmptyDirectories @PathSensitive(RELATIVE) public ConfigurableFileCollection getSource()Returns the source files to be compiled.- Since:
- 4.4
-
getMacros
Macros that should be defined for the compiler.Macros do not have values in Swift; they are either present or absent.
- Since:
- 4.7
-
isDebuggable
Should the compiler generate debuggable code?- Since:
- 4.7
-
getDebuggable
Should the compiler generate debuggable code?- Since:
- 4.7
-
isOptimized
Should the compiler generate debuggable code?- Since:
- 4.7
-
getOptimized
Should the compiler generate optimized code?- Since:
- 4.7
-
getCompilerArgs
Additional arguments to provide to the compiler.- Since:
- 4.4
-
getObjectFileDir
The directory where object files will be generated.- Since:
- 4.4
-
getModuleFile
The location to write the Swift module file to.- Since:
- 4.4
-
getModuleName
The name of the module to produce. -
getModules
The modules required to compile the source.- Since:
- 4.4
-
getSourceCompatibility
Returns the Swift language level to use to compile the source files.- Since:
- 4.6
-
getCompilerVersion
The compiler used, including the type and the version.- Since:
- 4.4
-
compile
-