WindowsResourceSet

A set of Windows Resource definition files.

A Windows Resource set contains a set of script files, together with an optional set of header files.

plugins {
    id 'windows-resources'
}

model {
    components {
        main(NativeLibrarySpec) {
            sources {
                rc {
                    source {
                        srcDirs "src/main/rc"
                        include "**/*.rc"
                    }
                    exportedHeaders {
                        srcDirs "src/main/include"
                    }
                }
            }
        }
    }
}

Functions

Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
Adds tasks required to build this component.
Link copied to clipboard
abstract fun generatedBy(generatorTask: Task)
Link copied to clipboard
Returns a dependency which contains the tasks which build this artifact.
Link copied to clipboard
@Nullable
abstract fun getBuildTask(): @Nullable Task
Returns the task responsible for building this component.
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this element.
Link copied to clipboard
The headers as a directory set.
Link copied to clipboard
The headers that are private to this source set and implicitly available.
Link copied to clipboard
abstract fun getName(): String
Returns the name of this element.
Link copied to clipboard
@Nullable
abstract fun getParentName(): @Nullable String
Link copied to clipboard
abstract fun getProjectPath(): String
The path to the project containing this component.
Link copied to clipboard
The source files.
Link copied to clipboard
Link copied to clipboard
abstract fun setBuildTask(@Nullable buildTask: @Nullable Task)
Specifies the task responsible for building this component.