Klasse CppLibraryPlugin

java.lang.Object
org.gradle.language.cpp.plugins.CppLibraryPlugin
Alle implementierten Schnittstellen:
Plugin<Project>

public abstract class CppLibraryPlugin extends Object implements Plugin<Project>

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.

Seit:
4.1
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    CppLibraryPlugin(org.gradle.language.internal.NativeComponentFactory componentFactory, org.gradle.language.nativeplatform.internal.toolchains.ToolChainSelector toolChainSelector, org.gradle.api.internal.attributes.AttributesFactory attributesFactory, TargetMachineFactory targetMachineFactory)
    CppLibraryPlugin.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    apply(Project project)
    Apply this plugin to the given target object.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • CppLibraryPlugin

      @Inject public CppLibraryPlugin(org.gradle.language.internal.NativeComponentFactory componentFactory, org.gradle.language.nativeplatform.internal.toolchains.ToolChainSelector toolChainSelector, org.gradle.api.internal.attributes.AttributesFactory attributesFactory, TargetMachineFactory targetMachineFactory)
      CppLibraryPlugin.
      Seit:
      4.2
  • Methodendetails

    • apply

      public void apply(Project project)
      Beschreibung aus Schnittstelle kopiert: Plugin
      Apply this plugin to the given target object.
      Angegeben von:
      apply in Schnittstelle Plugin<Project>
      Parameter:
      project - The target object