CCompile

API Documentation:CCompile

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

Compiles C source files into object files.

Properties

PropertyDescription
compilerArgs
Incubating

Additional arguments to provide to the compiler.

macros
Incubating

Macros that should be defined for the compiler.

objectFileDir
Incubating

The directory where object files will be generated.

positionIndependentCode
Incubating

Should the compiler generate position independent code?

Property details

List<String> compilerArgs

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

Additional arguments to provide to the compiler.

List<String> macros

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

Macros that should be defined for the compiler.

File objectFileDir

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

The directory where object files will be generated.

boolean positionIndependentCode

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

Should the compiler generate position independent code?

Script blocks

No script blocks

Methods

MethodDescription
includes(includeRoots)
Incubating

Add directories where the compiler should search for header files.

includes(dirs)
Incubating

Add locations where the compiler should search for header files.

source(sourceFiles)
Incubating

Adds a set of source files to be compiled. The provided sourceFiles object is evaluated as per Project.files().

Method details

void includes(FileCollection includeRoots)

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

Add directories where the compiler should search for header files.

void includes(SourceDirectorySet dirs)

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

Add locations where the compiler should search for header files.

void source(Object sourceFiles)

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

Adds a set of source files to be compiled. The provided sourceFiles object is evaluated as per Project.files().