api / org.gradle.language.rc.tasks / WindowsResourceCompile

WindowsResourceCompile

@Incubating open class WindowsResourceCompile : DefaultTask

Compiles Windows Resource scripts into .res files.

Constructors

<init>

WindowsResourceCompile()

Functions

compile

open fun compile(inputs: IncrementalTaskInputs): Unit

getCompilerArgs

open fun getCompilerArgs(): MutableList<String>

Additional arguments to provide to the compiler.

getIncludes

open fun getIncludes(): ConfigurableFileCollection

Returns the header directories to be used for compilation.

getIncrementalCompilerBuilder

open fun getIncrementalCompilerBuilder(): IncrementalCompilerBuilder

getMacros

open fun getMacros(): MutableMap<String, String>

Macros that should be defined for the compiler.

getOperationLoggerFactory

open fun getOperationLoggerFactory(): BuildOperationLoggerFactory

getOutputDir

open fun getOutputDir(): File

The directory where object files will be generated.

getSource

open fun getSource(): ConfigurableFileCollection

Returns the source files to be compiled.

getTargetPlatform

open fun getTargetPlatform(): Property<NativePlatform>

The platform being compiled for.

getToolChain

open fun getToolChain(): Property<NativeToolChain>

The tool chain used for compilation.

includes

open fun includes(includeRoots: Any): Unit

Add directories where the compiler should search for header files.

setCompilerArgs

open fun setCompilerArgs(compilerArgs: MutableList<String>): Unit

setMacros

open fun setMacros(macros: MutableMap<String, String>): Unit

setOutputDir

open fun setOutputDir(outputDir: File): Unit

source

open fun source(sourceFiles: Any): Unit

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