api / org.gradle.language.cpp.plugins

Package org.gradle.language.cpp.plugins

Types

CppApplicationPlugin

open class CppApplicationPlugin : Plugin<ProjectInternal>

A plugin that produces a native application from C++ source.

Assumes the source files are located in `src/main/cpp` and header files are located in `src/main/headers`.

Adds a CppApplication extension to the project to allow configuration of the application.

CppBasePlugin

open class CppBasePlugin : Plugin<ProjectInternal>

A common base plugin for the C++ executable and library plugins

CppLangPlugin

open class CppLangPlugin : Plugin<Project>

Adds core C++ language support.

CppLibraryPlugin

open class CppLibraryPlugin : Plugin<ProjectInternal>

A plugin that produces a native library from C++ source.

Assumes the source files are located in `src/main/cpp`, public headers are located in `src/main/public` and implementation header files are located in `src/main/headers`.

Adds a CppLibrary extension to the project to allow configuration of the library.

CppPlugin

open class CppPlugin : Plugin<Project>

A plugin for projects wishing to build native binary components from C++ sources.

Automatically includes the CppLangPlugin for core C++ support and the NativeComponentPlugin for native component support.

  • Creates a org.gradle.language.cpp.tasks.CppCompile task for each org.gradle.language.cpp.CppSourceSet to compile the C++ sources.