CSourceSet

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"
                    }
                }
            }
        }
    }
}

Functions

Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
Link copied to clipboard
abstract fun generatedBy(generatorTask: Task)
Link copied to clipboard
Link copied to clipboard
abstract fun getBuildTask(): Task
Link copied to clipboard
abstract fun getDisplayName(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getLibs(): Collection<out Any>
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun getParentName(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getProjectPath(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun lib(library: Any)
Link copied to clipboard
abstract fun setBuildTask(buildTask: Task)
Link copied to clipboard
abstract fun setPreCompiledHeader(header: String)