Compiles native source files into object files.
Constructor and description |
---|
AbstractNativeCompileTask
() |
Type | Name and description |
---|---|
void |
compile(IncrementalTaskInputs inputs) |
protected NativeCompileSpec |
createCompileSpec() |
List<String> |
getCompilerArgs() Additional arguments to provide to the compiler. |
FileCollection |
getIncludes() Returns the header directories to be used for compilation. |
IncrementalCompilerBuilder |
getIncrementalCompilerBuilder() |
Map<String, String> |
getMacros() Macros that should be defined for the compiler. |
File |
getObjectFileDir() The directory where object files will be generated. |
String |
getOutputType() |
FileCollection |
getSource() Returns the source files to be compiled. |
NativePlatform |
getTargetPlatform() The platform being targeted. |
NativeToolChain |
getToolChain() The tool chain used for compilation. |
void |
includes(Object includeRoots) Add directories where the compiler should search for header files. |
boolean |
isPositionIndependentCode() Should the compiler generate position independent code? |
void |
setCompilerArgs(List<String> compilerArgs) |
void |
setMacros(Map<String, String> macros) |
void |
setObjectFileDir(File objectFileDir) |
void |
setPositionIndependentCode(boolean positionIndependentCode) |
void |
setTargetPlatform(NativePlatform targetPlatform) |
void |
setToolChain(NativeToolChain toolChain) |
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.
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.
Should the compiler generate position independent code?
Adds a set of source files to be compiled. The provided sourceFiles object is evaluated as per Project.files.
Gradle API 2.2-20140924021627+0000