Compiles native source files into object files.
Type | Name and description |
---|---|
List<String> |
compilerArgs Additional arguments to provide to the compiler. |
FileCollection |
includes Returns the header directories to be used for compilation. |
Map<String, String> |
macros Macros that should be defined for the compiler. |
File |
objectFileDir The directory where object files will be generated. |
boolean |
positionIndependentCode Should the compiler generate position independent code? |
FileCollection |
source Returns the source files to be compiled. |
Platform |
targetPlatform The platform being targeted. |
ToolChain |
toolChain The tool chain used for compilation. |
Constructor and description |
---|
AbstractNativeCompileTask
() |
Type | Name and description |
---|---|
void |
compile(IncrementalTaskInputs inputs) |
protected NativeCompileSpec |
createCompileSpec() |
protected Compiler<NativeCompileSpec> |
createCompiler(PlatformToolChain toolChain) |
IncrementalCompilerBuilder |
getIncrementalCompilerBuilder() |
def |
getOutputType() |
void |
includes(Object includeRoots) Add directories where the compiler should search for header files. |
void |
source(Object sourceFiles) Adds a set of source files to be compiled. |
Returns the header directories to be used for compilation.
The directory where object files will be generated.
Should the compiler generate position independent code?
Returns the source files to be compiled.
The platform being targeted.
The tool chain used for compilation.
Add directories where the compiler should search for header files.
Adds a set of source files to be compiled. The provided sourceFiles object is evaluated as per Project.files.
Gradle API 2.0