ComponentWithBinaries, ComponentWithDependencies, ComponentWithTargetMachines, Named, SoftwareComponentCppApplication, CppLibrary, CppTestSuite, ProductionCppComponent@Incubating public interface CppComponent extends ComponentWithBinaries, ComponentWithDependencies, ComponentWithTargetMachines
A C++ component is composed of some C++ source files that are compiled and then linked into some binary.
An instance of this type is added as a project extension by the C++ plugins.
Named.Namer| Modifier and Type | Method | Description | 
|---|---|---|
| Property<String> | getBaseName() | Specifies the base name for this component. | 
| BinaryCollection<? extends CppBinary> | getBinaries() | Returns the binaries for this library. | 
| FileCollection | getCppSource() | Returns the C++ source files of this component, as defined in  getSource(). | 
| FileTree | getHeaderFiles() | Returns all header files of this component. | 
| Configuration | getImplementationDependencies() | Returns the implementation dependencies of this component. | 
| FileCollection | getPrivateHeaderDirs() | Returns the private header include directories of this component, as defined in  getPrivateHeaders(). | 
| ConfigurableFileCollection | getPrivateHeaders() | Defines the private header file directories of this library. | 
| ConfigurableFileCollection | getSource() | Defines the source files or directories of this component. | 
| void | privateHeaders(Action<? super ConfigurableFileCollection> action) | Configures the private header directories for this component. | 
| void | source(Action<? super ConfigurableFileCollection> action) | Configures the source files or directories for this component. | 
getDependenciesgetTargetMachinesProperty<String> getBaseName()
ConfigurableFileCollection getSource()
When this collection is empty, the directory src/main/cpp is used by default.
void source(Action<? super ConfigurableFileCollection> action)
FileCollection getCppSource()
getSource().ConfigurableFileCollection getPrivateHeaders()
When this collection is empty, the directory src/main/headers is used by default.
void privateHeaders(Action<? super ConfigurableFileCollection> action)
FileCollection getPrivateHeaderDirs()
getPrivateHeaders().FileTree getHeaderFiles()
Configuration getImplementationDependencies()
BinaryCollection<? extends CppBinary> getBinaries()
getBinaries in interface ComponentWithBinaries