Groovy Documentation

org.gradle.nativebinaries.language.rc.tasks
[Groovy] Class WindowsResourceCompile

java.lang.Object
  org.gradle.api.internal.AbstractTask
      org.gradle.api.DefaultTask
          org.gradle.nativebinaries.language.rc.tasks.WindowsResourceCompile

@Incubating
class WindowsResourceCompile
extends DefaultTask

Compiles Windows Resource scripts into .res 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 outputDir

The directory where object files will be generated.

FileCollection source

Returns the source files to be compiled.

Platform targetPlatform

The platform being targeted.

ToolChain toolChain

The tool chain used for compilation.

 
Constructor Summary
WindowsResourceCompile()

 
Method Summary
void compile(IncrementalTaskInputs inputs)

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.

 

Property Detail

compilerArgs

@Input
List compilerArgs
Additional arguments to provide to the compiler.


includes

@InputFiles
FileCollection includes
Returns the header directories to be used for compilation.


macros

@Input
Map macros
Macros that should be defined for the compiler.


outputDir

@OutputDirectory
File outputDir
The directory where object files will be generated.


source

@InputFiles
FileCollection source
Returns the source files to be compiled.


targetPlatform

Platform targetPlatform
The platform being targeted.


toolChain

ToolChain toolChain
The tool chain used for compilation.


 
Constructor Detail

WindowsResourceCompile

@Inject
WindowsResourceCompile()


 
Method Detail

compile

@TaskAction
void compile(IncrementalTaskInputs inputs)


getOutputType

@Input
def getOutputType()


includes

void includes(Object includeRoots)
Add directories where the compiler should search for header files.


source

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


 

Gradle API 1.12