Compiles native source files into object files.
| Type | Name and description |
|---|---|
List<String> |
compilerArgsAdditional arguments to provide to the compiler. |
FileCollection |
includesReturns the header directories to be used for compilation. |
Map<String, String> |
macrosMacros that should be defined for the compiler. |
File |
objectFileDirThe directory where object files will be generated. |
boolean |
positionIndependentCodeShould the compiler generate position independent code? |
FileCollection |
sourceReturns the source files to be compiled. |
Platform |
targetPlatformThe platform being targeted. |
ToolChain |
toolChainThe tool chain used for compilation. |
| Constructor and description |
|---|
AbstractNativeCompileTask
() |
| Type | Name and description |
|---|---|
void |
compile(IncrementalTaskInputs inputs) |
protected NativeCompileSpec |
createCompileSpec() |
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.1