Package org.gradle.language.cpp
Interface CppBinary
- All Superinterfaces:
- BuildableComponent,- ComponentWithDependencies,- ComponentWithNativeRuntime,- ComponentWithObjectFiles,- Named,- SoftwareComponent
- All Known Subinterfaces:
- CppExecutable,- CppSharedLibrary,- CppStaticLibrary,- CppTestExecutable
public interface CppBinary
extends ComponentWithObjectFiles, ComponentWithDependencies, BuildableComponent
A binary built from C++ source and linked from the resulting object files.
- Since:
- 4.2
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe dependency resolution attribute use to indicate whether a binary is debuggable or not.The dependency resolution attribute use to indicate which linkage a binary uses.The dependency resolution attribute use to indicate whether a binary is optimized or not.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the header directories to use to compile this binary.Returns the compile task for this binary.Returns the C++ source files of this binary.Returns the link libraries to use to link this binary.Returns the runtime libraries required by this binary.Returns the target platform for this component.Methods inherited from interface org.gradle.language.ComponentWithDependenciesgetDependenciesMethods inherited from interface org.gradle.language.nativeplatform.ComponentWithNativeRuntimegetBaseName, getTargetMachine, getToolChain, isDebuggable, isOptimizedMethods inherited from interface org.gradle.language.nativeplatform.ComponentWithObjectFilesgetObjects
- 
Field Details- 
DEBUGGABLE_ATTRIBUTEThe dependency resolution attribute use to indicate whether a binary is debuggable or not.
- 
OPTIMIZED_ATTRIBUTEThe dependency resolution attribute use to indicate whether a binary is optimized or not.- Since:
- 4.5
 
- 
LINKAGE_ATTRIBUTEThe dependency resolution attribute use to indicate which linkage a binary uses.- Since:
- 4.5
 
 
- 
- 
Method Details- 
getCppSourceFileCollection getCppSource()Returns the C++ source files of this binary.
- 
getCompileIncludePathFileCollection getCompileIncludePath()Returns the header directories to use to compile this binary. Includes the header directories of this binary plus those of its dependencies.
- 
getLinkLibrariesFileCollection getLinkLibraries()Returns the link libraries to use to link this binary. Includes the link libraries of the component's dependencies.
- 
getRuntimeLibrariesFileCollection getRuntimeLibraries()Returns the runtime libraries required by this binary. Includes the runtime libraries of the component's dependencies.
- 
getTargetPlatformCppPlatform getTargetPlatform()Returns the target platform for this component.- Since:
- 4.5
 
- 
getCompileTaskProvider<CppCompile> getCompileTask()Returns the compile task for this binary.- Since:
- 4.5
 
 
-