Package org.gradle.language.cpp
Interface CppLibrary
-
- All Superinterfaces:
CppComponent,Named,SoftwareComponent
@Incubating public interface CppLibrary extends CppComponent
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationgetApiDependencies()Returns the API dependencies of this library.CppSharedLibrarygetDebugSharedLibrary()Returns the debug shared library for this library.CppSharedLibrarygetDevelopmentBinary()Returns the binary of the component to use as the default for development.FileCollectiongetPublicHeaderDirs()Returns the public header file directories of this component, as defined ingetPublicHeaders().FileTreegetPublicHeaderFiles()Returns public header files of this component.ConfigurableFileCollectiongetPublicHeaders()Defines the public header file directories of this library.CppSharedLibrarygetReleaseSharedLibrary()Returns the release shared library for this library.voidpublicHeaders(Action<? super ConfigurableFileCollection> action)Configures the public header directories for this component.-
Methods inherited from interface org.gradle.language.cpp.CppComponent
getBaseName, getCppSource, getHeaderFiles, getImplementationDependencies, getPrivateHeaderDirs, getPrivateHeaders, getSource, privateHeaders, source
-
-
-
-
Method Detail
-
getPublicHeaders
ConfigurableFileCollection getPublicHeaders()
Defines the public header file directories of this library.When this collection is empty, the directory
src/main/publicis used by default.
-
publicHeaders
void publicHeaders(Action<? super ConfigurableFileCollection> action)
Configures the public header directories for this component.
-
getPublicHeaderDirs
FileCollection getPublicHeaderDirs()
Returns the public header file directories of this component, as defined ingetPublicHeaders().
-
getPublicHeaderFiles
FileTree getPublicHeaderFiles()
Returns public header files of this component.- Since:
- 4.3
-
getApiDependencies
Configuration getApiDependencies()
Returns the API dependencies of this library.
-
getDevelopmentBinary
CppSharedLibrary getDevelopmentBinary()
Returns the binary of the component to use as the default for development.- Specified by:
getDevelopmentBinaryin interfaceCppComponent
-
getDebugSharedLibrary
CppSharedLibrary getDebugSharedLibrary()
Returns the debug shared library for this library.
-
getReleaseSharedLibrary
CppSharedLibrary getReleaseSharedLibrary()
Returns the release shared library for this library.
-
-