@Incubating interface CppBinary : ComponentWithObjectFiles, ComponentWithDependencies, BuildableComponent
A binary built from C++ source and linked from the resulting object files.
Since
4.2
static val DEBUGGABLE_ATTRIBUTE: Attribute<Boolean>
The dependency resolution attribute use to indicate whether a binary is debuggable or not. |
|
static val LINKAGE_ATTRIBUTE: Attribute<Linkage>
The dependency resolution attribute use to indicate which linkage a binary uses. |
|
static val OPTIMIZED_ATTRIBUTE: Attribute<Boolean>
The dependency resolution attribute use to indicate whether a binary is optimized or not. |
abstract fun getCompileIncludePath(): FileCollection
Returns the header directories to use to compile this binary. Includes the header directories of this binary plus those of its dependencies. |
|
abstract fun getCompileTask(): Provider<CppCompile>
Returns the compile task for this binary. |
|
abstract fun getCppSource(): FileCollection
Returns the C++ source files of this binary. |
|
abstract fun getLinkLibraries(): FileCollection
Returns the link libraries to use to link this binary. Includes the link libraries of the component's dependencies. |
|
abstract fun getRuntimeLibraries(): FileCollection
Returns the runtime libraries required by this binary. Includes the runtime libraries of the component's dependencies. |
|
abstract fun getTargetPlatform(): CppPlatform
{@inheritDoc} |
abstract fun getDependencies(): ComponentDependencies
Returns the dependencies of this component. |
|
abstract fun getObjects(): FileCollection
Returns the object files created for this component. |
interface CppExecutable : CppBinary, ComponentWithExecutable, ComponentWithInstallation, ComponentWithOutputs, ComponentWithRuntimeUsage, PublishableComponent
An executable built from C++ source. |
|
interface CppSharedLibrary : CppBinary, ComponentWithSharedLibrary, ComponentWithLinkUsage, ComponentWithRuntimeUsage, ComponentWithOutputs, PublishableComponent
A shared library built from C++ source. |
|
interface CppStaticLibrary : CppBinary, ComponentWithStaticLibrary, ComponentWithLinkUsage, ComponentWithRuntimeUsage, ComponentWithOutputs, PublishableComponent
A static library built from C++ source. |
|
interface CppTestExecutable : CppBinary, ComponentWithExecutable, ComponentWithInstallation, TestComponent
A test executable with tests implemented in C++. |