@Incubating @CacheableTask public class SwiftCompile extends DefaultTask
Task.NamerTASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
SwiftCompile() |
| Modifier and Type | Method and Description |
|---|---|
ListProperty<String> |
getCompilerArgs()
Additional arguments to provide to the compiler.
|
protected CompilerVersion |
getCompilerVersion()
The compiler used, including the type and the version.
|
Map<String,String> |
getMacros()
Macros that should be defined for the compiler.
|
RegularFileProperty |
getModuleFile()
The location to write the Swift module file to.
|
Property<String> |
getModuleName()
The name of the module to produce.
|
ConfigurableFileCollection |
getModules()
The modules required to compile the source.
|
DirectoryProperty |
getObjectFileDir()
The directory where object files will be generated.
|
ConfigurableFileCollection |
getSource()
Returns the source files to be compiled.
|
NativePlatform |
getTargetPlatform()
The platform being compiled for.
|
NativeToolChain |
getToolChain()
The tool chain used for compilation.
|
boolean |
isDebuggable()
Should the compiler generate debuggable code?
|
boolean |
isOptimized()
Should the compiler generate optimized code?
|
void |
setDebuggable(boolean debug)
Should the compiler generate debuggable code?
|
void |
setMacros(Map<String,String> macros)
Sets the macros that should be defined when compiling.
|
void |
setOptimized(boolean optimize)
Should the compiler generate optimized code?
|
void |
setTargetPlatform(NativePlatform targetPlatform)
Sets the platform being compiled for.
|
void |
setToolChain(NativeToolChain toolChain)
Sets the tool chain to use for compilation.
|
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, 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@Internal public NativeToolChain getToolChain()
public void setToolChain(NativeToolChain toolChain)
public NativePlatform getTargetPlatform()
public void setTargetPlatform(NativePlatform targetPlatform)
@InputFiles @PathSensitive(value=RELATIVE) public ConfigurableFileCollection getSource()
@Input public Map<String,String> getMacros()
public void setMacros(Map<String,String> macros)
@Input public boolean isDebuggable()
public void setDebuggable(boolean debug)
@Input public boolean isOptimized()
public void setOptimized(boolean optimize)
@Input public ListProperty<String> getCompilerArgs()
@OutputDirectory public DirectoryProperty getObjectFileDir()
@OutputFile public RegularFileProperty getModuleFile()
@Optional @Input public Property<String> getModuleName()
@InputFiles @PathSensitive(value=NAME_ONLY) public ConfigurableFileCollection getModules()
protected CompilerVersion getCompilerVersion()