SwiftCompile

API Documentation:SwiftCompile

Note: This class is incubating and may change in a future version of Gradle.

Compiles Swift source files into object files.

Properties

PropertyDescription
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.

Methods

No methods

Script blocks

No script blocks

Property details

ListProperty<String> compilerArgs

Note: This property is incubating and may change in a future version of Gradle.

Additional arguments to provide to the compiler.

Property<Boolean> debuggable

Note: This property is incubating and may change in a future version of Gradle.

Should the compiler generate debuggable code?

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.

Note: This property is incubating and may change in a future version of Gradle.

The location to write the Swift module file to.

Property<String> moduleName

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.

Property<Boolean> optimized

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

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

Note: This property is incubating and may change in a future version of Gradle.

The platform being compiled for.

Note: This property is incubating and may change in a future version of Gradle.

The tool chain used for compilation.