api / org.gradle.language.cpp.plugins / CppLibraryPlugin

CppLibraryPlugin

@Incubating 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.

Since
4.1

Constructors

<init>

CppLibraryPlugin(componentFactory: NativeComponentFactory, toolChainSelector: ToolChainSelector, attributesFactory: ImmutableAttributesFactory)

Injects a FileOperations instance.

Functions

apply

open fun apply(project: ProjectInternal): Unit