Revert^2 "Add dependency license annotations"
abe2a4b7bfc559255838cbc08a60f84eb5baf046
Change-Id: Ibcd16b5b779a4e6d4372dab9d21de76abae9ca9c
diff --git a/cc/cc.go b/cc/cc.go
index 113620c..1d51161 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -682,6 +682,15 @@
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 {