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 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 SummaryConstructorsConstructorDescriptionSwiftCompile(org.gradle.nativeplatform.internal.CompilerOutputFileNamingSchemeFactory compilerOutputFileNamingSchemeFactory, org.gradle.internal.file.Deleter deleter) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcompile(InputChanges inputs) Additional 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 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 org.gradle.api.TaskdoNotTrackState, getConvention, notCompatibleWithConfigurationCache
- 
Constructor Details- 
SwiftCompile@Inject public SwiftCompile(org.gradle.nativeplatform.internal.CompilerOutputFileNamingSchemeFactory compilerOutputFileNamingSchemeFactory, org.gradle.internal.file.Deleter deleter) 
 
- 
- 
Method Details- 
getToolChainThe tool chain used for compilation.- Since:
- 4.7
 
- 
getTargetPlatformThe 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
 
- 
getMacrosMacros that should be defined for the compiler.Macros do not have values in Swift; they are either present or absent. - Since:
- 4.7
 
- 
isDebuggableShould the compiler generate debuggable code?- Since:
- 4.7
 
- 
getDebuggableShould the compiler generate debuggable code?- Since:
- 4.7
 
- 
isOptimizedShould the compiler generate debuggable code?- Since:
- 4.7
 
- 
getOptimizedShould the compiler generate optimized code?- Since:
- 4.7
 
- 
getCompilerArgsAdditional arguments to provide to the compiler.- Since:
- 4.4
 
- 
getObjectFileDirThe directory where object files will be generated.- Since:
- 4.4
 
- 
getModuleFileThe location to write the Swift module file to.- Since:
- 4.4
 
- 
getModuleNameThe name of the module to produce.
- 
getModulesThe modules required to compile the source.- Since:
- 4.4
 
- 
getSourceCompatibilityReturns the Swift language level to use to compile the source files.- Since:
- 4.6
 
- 
getCompilerVersionThe compiler used, including the type and the version.- Since:
- 4.4
 
- 
compile
 
-