@Incubating 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" } } } } } }
abstract fun getExportedHeaders(): SourceDirectorySet
The headers as a directory set. |
|
abstract fun getImplicitHeaders(): SourceDirectorySet
The headers that are private to this source set and implicitly available. These are not explicitly made available for compilation. |
|
abstract fun getLibs(): MutableCollection<*>
The libraries that this source set requires. |
|
abstract fun getPreCompiledHeader(): String
Returns the pre-compiled header configured for this source set. |
|
abstract fun lib(library: Any): Unit
Adds a library that this source set requires. This method accepts the following types:
|
|
abstract fun setPreCompiledHeader(header: String): Unit
Sets the pre-compiled header to be used when compiling sources in this source set. |