Merge "Add support for cc_library_headers to replace llndk_headers"

This commit is contained in:
Colin Cross
2021-04-27 16:40:48 +00:00
committed by Gerrit Code Review
6 changed files with 18 additions and 7 deletions

View File

@@ -868,6 +868,7 @@ type versionedInterface interface {
implementationModuleName(name string) string
hasLLNDKStubs() bool
hasLLNDKHeaders() bool
}
var _ libraryInterface = (*libraryDecorator)(nil)
@@ -1682,6 +1683,12 @@ func (library *libraryDecorator) hasVestigialLLNDKLibrary() bool {
return String(library.Properties.Llndk_stubs) != ""
}
// hasLLNDKHeaders returns true if this cc_library module has a variant that provides headers
// to a module that sets llndk.symbol_file.
func (library *libraryDecorator) hasLLNDKHeaders() bool {
return Bool(library.Properties.Llndk.Llndk_headers)
}
func (library *libraryDecorator) implementationModuleName(name string) string {
return name
}