# CSourceSet

@Incubating
interface CSourceSet : HeaderExportingSourceSet, LanguageSourceSet, DependentSourceSet(source)

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.

    plugins {
        id 'c'
    }

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

Content copied to clipboard

## Functions

builtBy
Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
generatedBy
Link copied to clipboard
abstract fun generatedBy(generatorTask: Task)
getBuildDependencies
Link copied to clipboard
abstract fun getBuildDependencies(): TaskDependency
getBuildTask
Link copied to clipboard
abstract fun getBuildTask(): @Nullable Task
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getExportedHeaders
Link copied to clipboard
abstract fun getExportedHeaders(): SourceDirectorySet
getImplicitHeaders
Link copied to clipboard
abstract fun getImplicitHeaders(): SourceDirectorySet
getLibs
Link copied to clipboard
abstract fun getLibs(): Collection<out Any>
getName
Link copied to clipboard
abstract fun getName(): String
getParentName
Link copied to clipboard
abstract fun getParentName(): @Nullable String
getPreCompiledHeader
Link copied to clipboard
abstract fun getPreCompiledHeader(): String
getProjectPath
Link copied to clipboard
abstract fun getProjectPath(): String
getSource
Link copied to clipboard
abstract fun getSource(): SourceDirectorySet
hasBuildDependencies
Link copied to clipboard
abstract fun hasBuildDependencies(): Boolean
lib
Link copied to clipboard
abstract fun lib(library: Any)
setBuildTask
Link copied to clipboard
abstract fun setBuildTask(buildTask: @Nullable Task)
setPreCompiledHeader
Link copied to clipboard
abstract fun setPreCompiledHeader(header: String)