Table of Contents
| API Documentation: | SwiftCompile |
|---|
Note: This class is incubating and may change in a future version of Gradle.
Compiles Swift source files into object files.
| Property | Description |
compilerArgs | Incubating Additional arguments to provide to the compiler. |
debuggable | Incubating Should the compiler generate debuggable code? |
macros | Incubating Macros that should be defined for the compiler. |
moduleFile | Incubating The location to write the Swift module file to. |
moduleName | Incubating The name of the module to produce. |
modules | Incubating The modules required to compile the source. |
objectFileDir | Incubating The directory where object files will be generated. |
optimized | Incubating Should the compiler generate optimized code? |
source | Incubating The source files to be compiled. |
sourceCompatibility | Incubating The Swift language level to use to compile the source files. |
targetPlatform | Incubating The platform being compiled for. |
toolChain | Incubating The tool chain used for compilation. |
ListProperty<String> compilerArgs
ListProperty<String>Note: This property is incubating and may change in a future version of Gradle.
Additional arguments to provide to the compiler.
Note: This property is incubating and may change in a future version of Gradle.
Should the compiler generate debuggable code?
ListProperty<String> macros
ListProperty<String>Note: This property is incubating and may change in a future version of Gradle.
Macros that should be defined for the compiler.
Macros do not have values in Swift; they are either present or absent.
RegularFileProperty moduleFile
Note: This property is incubating and may change in a future version of Gradle.
The location to write the Swift module file to.
Note: This property is incubating and may change in a future version of Gradle.
The name of the module to produce.
ConfigurableFileCollection modules (read-only)
Note: This property is incubating and may change in a future version of Gradle.
The modules required to compile the source.
DirectoryProperty objectFileDir
Note: This property is incubating and may change in a future version of Gradle.
The directory where object files will be generated.
Note: This property is incubating and may change in a future version of Gradle.
Should the compiler generate optimized code?
ConfigurableFileCollection source (read-only)
Note: This property is incubating and may change in a future version of Gradle.
The source files to be compiled.
Property<SwiftVersion> sourceCompatibility
Property<SwiftVersion>Note: This property is incubating and may change in a future version of Gradle.
The Swift language level to use to compile the source files.
Property<NativePlatform> targetPlatform
Property<NativePlatform>Note: This property is incubating and may change in a future version of Gradle.
The platform being compiled for.
Property<NativeToolChain> toolChain
Property<NativeToolChain>Note: This property is incubating and may change in a future version of Gradle.
The tool chain used for compilation.