|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.nativebinaries.language.c.tasks.AbstractNativeCompileTask
@Incubating abstract class AbstractNativeCompileTask extends DefaultTask
Compiles native source files into object files.
Property Summary | |
---|---|
List |
compilerArgs
Additional arguments to provide to the compiler. |
FileCollection |
includes
Returns the header directories to be used for compilation. |
Map |
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? |
Platform |
targetPlatform
The platform being targeted. |
ToolChain |
toolChain
The tool chain used for compilation. |
Constructor Summary | |
AbstractNativeCompileTask()
|
Method Summary | |
---|---|
void
|
compile()
|
protected NativeCompileSpec
|
createCompileSpec()
|
protected WorkResult
|
execute(PlatformToolChain toolChain, NativeCompileSpec spec)
|
def
|
getOutputType()
|
FileCollection
|
getSource()
Returns the source files to be compiled. |
void
|
includes(SourceDirectorySet dirs)
Add locations where the compiler should search for header files. |
void
|
includes(FileCollection includeRoots)
Add directories where the compiler should search for header files. |
void
|
source(Object sourceFiles)
Adds a set of source files to be compiled. |
Property Detail |
---|
@Input List compilerArgs
@InputFiles FileCollection includes
@Input Map macros
@OutputDirectory File objectFileDir
@Input boolean positionIndependentCode
Platform targetPlatform
ToolChain toolChain
Constructor Detail |
---|
@Inject AbstractNativeCompileTask()
Method Detail |
---|
@TaskAction void compile()
protected NativeCompileSpec createCompileSpec()
protected WorkResult execute(PlatformToolChain toolChain, NativeCompileSpec spec)
@Input def getOutputType()
@InputFiles @SkipWhenEmpty // Workaround for GRADLE-2026 FileCollection getSource()
void includes(SourceDirectorySet dirs)
void includes(FileCollection includeRoots)
void source(Object sourceFiles)
Gradle API 1.9