org.gradle.nativecode.language.cpp.plugins
[Groovy] Class CppPlugin
java.lang.Object
org.gradle.nativecode.language.cpp.plugins.CppPlugin
- All Implemented Interfaces:
- Plugin
@Incubating
class CppPlugin
A plugin for projects wishing to build custom components from C++ sources.
Automatically includes MicrosoftVisualCppPlugin and GppCompilerPlugin for core toolchain support.
For each NativeBinary found, this plugin will:
- Create a CppCompile task named "compile${binary-name}" to compile the C++ sources.
- Create a LinkExecutable or LinkSharedLibrary task named "link${binary-name}
or a CreateStaticLibrary task name "create${binary-name}" to create the binary artifact.
- Create an InstallTask named "install${Binary-name}" to install any ExecutableBinary artifact.
CppPlugin
@Inject
CppPlugin(Instantiator instantiator, FileResolver fileResolver)
-
apply
void apply(ProjectInternal project)
-
Gradle API 1.8