api / org.gradle.language.cpp

Package org.gradle.language.cpp

Types

CppApplication

interface CppApplication : ProductionCppComponent

Configuration for a C++ application, defining the source files that make up the application plus other settings.

An instance of this type is added as a project extension by the C++ executable plugin.

CppBinary

interface CppBinary : ComponentWithObjectFiles, ComponentWithDependencies, BuildableComponent

A binary built from C++ source and linked from the resulting object files.

CppComponent

interface CppComponent : ComponentWithBinaries, ComponentWithDependencies

Configuration for a C++ component, such as a library or executable, defining the source files and private header directories that make up the component. Private headers are those that are visible only to the source files of the component.

A C++ component is composed of some C++ source files that are compiled and then linked into some binary.

An instance of this type is added as a project extension by the C++ plugins.

CppExecutable

interface CppExecutable : CppBinary, ComponentWithExecutable, ComponentWithInstallation, ComponentWithOutputs, ComponentWithRuntimeUsage, PublishableComponent

An executable built from C++ source.

CppLibrary

interface CppLibrary : ProductionCppComponent

Configuration for a C++ library, defining the source files and header directories that make up the library plus other settings.

An instance of this type is added as a project extension by the C++ library plugin.

CppPlatform

interface CppPlatform : NativePlatform

A target platform for building C++ binaries.

CppSharedLibrary

interface CppSharedLibrary : CppBinary, ComponentWithSharedLibrary, ComponentWithLinkUsage, ComponentWithRuntimeUsage, ComponentWithOutputs, PublishableComponent

A shared library built from C++ source.

CppSourceSet

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

CppStaticLibrary

interface CppStaticLibrary : CppBinary, ComponentWithStaticLibrary, ComponentWithLinkUsage, ComponentWithRuntimeUsage, ComponentWithOutputs, PublishableComponent

A static library built from C++ source.

ProductionCppComponent

interface ProductionCppComponent : CppComponent, ProductionComponent

Represents a C++ component that is the main product of a project.