org.gradle.language.c
[Java] Interface CSourceSet
org.gradle.language.HeaderExportingSourceSet
org.gradle.language.DependentSourceSet
org.gradle.language.base.BuildableModelElement
org.gradle.language.c.CSourceSet
org.gradle.language.base.LanguageSourceSet
org.gradle.api.Buildable
org.gradle.api.Named
- All Superinterfaces:
- HeaderExportingSourceSet, DependentSourceSet, BuildableModelElement, LanguageSourceSet, Buildable, Named
@Incubating
public interface CSourceSet
extends DependentSourceSet, HeaderExportingSourceSet, LanguageSourceSet
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"
sources {
main {
// Configure an existing CSourceSet
c {
source {
srcDirs "src/main/cpp", "src/shared/c++"
include "**{
- literal:
- /}*.c"
}
exportedHeaders {
srcDirs "src/main/include"
}
}
}
}
Gradle API 1.12