Merge changes from topic "soong-license-metadata"

* changes:
  Add dependency license annotations
  Build license metadata files in Soong
  Escape Host*Variable contents
This commit is contained in:
Colin Cross
2021-12-10 21:43:49 +00:00
committed by Gerrit Code Review
12 changed files with 337 additions and 38 deletions

View File

@@ -686,6 +686,15 @@ func (d libraryDependencyTag) static() bool {
return d.Kind == staticLibraryDependency
}
func (d libraryDependencyTag) LicenseAnnotations() []android.LicenseAnnotation {
if d.shared() {
return []android.LicenseAnnotation{android.LicenseAnnotationSharedDependency}
}
return nil
}
var _ android.LicenseAnnotationsDependencyTag = libraryDependencyTag{}
// InstallDepNeeded returns true for shared libraries so that shared library dependencies of
// binaries or other shared libraries are installed as dependencies.
func (d libraryDependencyTag) InstallDepNeeded() bool {