Class CppBinaryTaskExtensions

java.lang.Object
dev.nokee.companion.CppBinaryTaskExtensions

public final class CppBinaryTaskExtensions extends Object
Represents binary task extensions to avoid realizing the compile, link, create and install tasks.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.gradle.api.tasks.TaskProvider<CppCompile>
    compileTask(org.gradle.language.cpp.CppBinary binary)
    Returns a configurable provider to the compile task of the specified binary.
    static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.CreateStaticLibrary>
    createTask(org.gradle.language.nativeplatform.ComponentWithStaticLibrary binary)
    Returns a configurable provider to the create task of the specified binary.
    static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.InstallExecutable>
    installTask(org.gradle.language.nativeplatform.ComponentWithInstallation binary)
    Returns a configurable provider to the install task of the specified binary.
    static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.LinkExecutable>
    linkTask(org.gradle.language.nativeplatform.ComponentWithExecutable binary)
    Returns a configurable provider to the link task of the specified binary.
    static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.LinkSharedLibrary>
    linkTask(org.gradle.language.nativeplatform.ComponentWithSharedLibrary binary)
    Returns a configurable provider to the link task of the specified binary.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CppBinaryTaskExtensions

      public CppBinaryTaskExtensions()
  • Method Details

    • compileTask

      public static org.gradle.api.tasks.TaskProvider<CppCompile> compileTask(org.gradle.language.cpp.CppBinary binary)
      Returns a configurable provider to the compile task of the specified binary.
      Parameters:
      binary - the target binary
      Returns:
      a configurable provider to the compile task of the specified binary
    • linkTask

      public static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.LinkExecutable> linkTask(org.gradle.language.nativeplatform.ComponentWithExecutable binary)
      Returns a configurable provider to the link task of the specified binary.
      Parameters:
      binary - the target binary
      Returns:
      a configurable provider to the link task of the specified binary
    • installTask

      public static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.InstallExecutable> installTask(org.gradle.language.nativeplatform.ComponentWithInstallation binary)
      Returns a configurable provider to the install task of the specified binary.
      Parameters:
      binary - the target binary
      Returns:
      a configurable provider to the install task of the specified binary
    • linkTask

      public static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.LinkSharedLibrary> linkTask(org.gradle.language.nativeplatform.ComponentWithSharedLibrary binary)
      Returns a configurable provider to the link task of the specified binary.
      Parameters:
      binary - the target binary
      Returns:
      a configurable provider to the link task of the specified binary
    • createTask

      public static org.gradle.api.tasks.TaskProvider<org.gradle.nativeplatform.tasks.CreateStaticLibrary> createTask(org.gradle.language.nativeplatform.ComponentWithStaticLibrary binary)
      Returns a configurable provider to the create task of the specified binary.
      Parameters:
      binary - the target binary
      Returns:
      a configurable provider to the create task of the specified binary