CppSourceSet

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

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)