# CppLibrary

interface CppLibrary : ProductionCppComponent(source)

Configuration for a C++ library, defining the source files and header directories that make up the library plus other settings.

An instance of this type is added as a project extension by the C++ library plugin.

#### Since

4.2

## Functions

getApiDependencies
Link copied to clipboard
abstract fun getApiDependencies(): Configuration
Returns the API dependencies of this library.
getBaseName
Link copied to clipboard
abstract fun getBaseName(): Property<String>
getBinaries
Link copied to clipboard
abstract fun getBinaries(): BinaryCollection<out SoftwareComponent>
abstract fun getBinaries(): BinaryCollection<out CppBinary>
getCppSource
Link copied to clipboard
abstract fun getCppSource(): FileCollection
getDependencies
Link copied to clipboard
abstract fun getDependencies(): LibraryDependencies
Returns the dependencies of this library.
getDevelopmentBinary
Link copied to clipboard
abstract fun getDevelopmentBinary(): Provider<out SoftwareComponent>
abstract fun getDevelopmentBinary(): Provider<out CppBinary>
getHeaderFiles
Link copied to clipboard
abstract fun getHeaderFiles(): FileTree
getImplementationDependencies
Link copied to clipboard
abstract fun getImplementationDependencies(): Configuration
getLinkage
Link copied to clipboard
abstract fun getLinkage(): SetProperty<Linkage>
Returns the list of linkage of this library.
getName
Link copied to clipboard
abstract fun getName(): String
getPrivateHeaderDirs
Link copied to clipboard
abstract fun getPrivateHeaderDirs(): FileCollection
getPrivateHeaders
Link copied to clipboard
abstract fun getPrivateHeaders(): ConfigurableFileCollection
getPublicHeaderDirs
Link copied to clipboard
abstract fun getPublicHeaderDirs(): FileCollection
Returns the public header file directories of this component, as defined in getPublicHeaders.
getPublicHeaderFiles
Link copied to clipboard
abstract fun getPublicHeaderFiles(): FileTree
Returns public header files of this component.
getPublicHeaders
Link copied to clipboard
abstract fun getPublicHeaders(): ConfigurableFileCollection
Defines the public header file directories of this library.
getSource
Link copied to clipboard
abstract fun getSource(): ConfigurableFileCollection
getTargetMachines
Link copied to clipboard
abstract fun getTargetMachines(): SetProperty<TargetMachine>
privateHeaders
Link copied to clipboard
abstract fun privateHeaders(action: Action<in ConfigurableFileCollection>)
publicHeaders
Link copied to clipboard
abstract fun publicHeaders(action: Action<in ConfigurableFileCollection>)
Configures the public header directories for this component.
source
Link copied to clipboard
abstract fun source(action: Action<in ConfigurableFileCollection>)