Package dev.nokee.companion
Class CppBinaryTaskExtensions
java.lang.Object
dev.nokee.companion.CppBinaryTaskExtensions
Represents binary task extensions to avoid realizing the compile, link, create and install tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-
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
-