api / org.gradle.language.nativeplatform / HeaderExportingSourceSet

HeaderExportingSourceSet

@Incubating interface HeaderExportingSourceSet : LanguageSourceSet

A source set that exposes headers

Functions

getExportedHeaders

abstract fun getExportedHeaders(): SourceDirectorySet

The headers as a directory set.

getImplicitHeaders

abstract fun getImplicitHeaders(): SourceDirectorySet

The headers that are private to this source set and implicitly available. These are not explicitly made available for compilation.

Inherited Functions

generatedBy

abstract fun generatedBy(generatorTask: Task): Unit

getParentName

abstract fun getParentName(): String

getSource

abstract fun getSource(): SourceDirectorySet

The source files.

Inheritors

CSourceSet

interface CSourceSet : HeaderExportingSourceSet, LanguageSourceSet, DependentSourceSet

A set of C source files.

A C source set contains a set of source files, together with an optional set of exported header files.

 apply plugin: "c" model { components { main(NativeLibrarySpec) { sources { c { source { srcDirs "src/main/cpp", "src/shared/c++" include "**/*.c" } exportedHeaders { srcDirs "src/main/include" } } } } } } 

CppSourceSet

interface CppSourceSet : HeaderExportingSourceSet, LanguageSourceSet, DependentSourceSet

A set of C++ source files.

A C++ source set contains a set of source files, together with an optional set of exported header files.

 apply plugin: "cpp" model { components { main(NativeLibrarySpec) { sources { cpp { source { srcDirs "src/main/cpp", "src/shared/c++" include "**/*.cpp" } exportedHeaders { srcDirs "src/main/include", "src/shared/include" } } } } } } 

ObjectiveCSourceSet

interface ObjectiveCSourceSet : HeaderExportingSourceSet, LanguageSourceSet, DependentSourceSet

A set of Objective-C source files.

An ObjectiveC source set contains a set of source files, together with an optional set of exported header files.

 apply plugin: "objective-c" model { components { main(NativeLibrarySpec) { sources { objc { source { srcDirs "src/main/objectiveC", "src/shared/objectiveC" include "**/*.m" } exportedHeaders { srcDirs "src/main/include" } } } } } } 

ObjectiveCppSourceSet

interface ObjectiveCppSourceSet : HeaderExportingSourceSet, LanguageSourceSet, DependentSourceSet

A set of Objective-C++ source files.

An Objective-C++ source set contains a set of source files, together with an optional set of exported header files.

 apply plugin: "objective-cpp" model { components { main(NativeLibrarySpec) { sources { objcpp { source { srcDirs "src/main/objectiveCpp", "src/shared/objectiveCpp" include "**/*.mm" } exportedHeaders { srcDirs "src/main/include" } } } } } } 

WindowsResourceSet

interface WindowsResourceSet : LanguageSourceSet, HeaderExportingSourceSet, NativeResourceSet

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.

 apply plugin: "windows-resources" model { components { main(NativeLibrarySpec) { sources { rc { source { srcDirs "src/main/rc" include "**/*.rc" } exportedHeaders { srcDirs "src/main/include" } } } } } }