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, ExtensionAware, Task, org.gradle.util.Configurable<Task>
Compiles Swift source files into object files.
- Since:
- 4.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface Task
Task.Namer -
Field Summary
Fields inherited from interface Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionSwiftCompile(org.gradle.nativeplatform.internal.CompilerOutputFileNamingSchemeFactory compilerOutputFileNamingSchemeFactory) -
Method Summary
Modifier and TypeMethodDescriptionAdditional arguments to provide to the compiler.protected CompilerVersionThe 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.booleanShould the compiler generate debuggable code?booleanShould the compiler generate debuggable code?Methods inherited from class DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileMethods 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, hasTaskActions, 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
-
Constructor Details
-
SwiftCompile
@Inject public SwiftCompile(org.gradle.nativeplatform.internal.CompilerOutputFileNamingSchemeFactory compilerOutputFileNamingSchemeFactory)
-
-
Method Details
-
getToolChain
The tool chain used for compilation.- Since:
- 4.7
-
getTargetPlatform
-
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
-
getDebuggable
-
isOptimized
-
getOptimized
-
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
-
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
-