Merge changes from topic "soong-license-metadata" am: b435744fdc
am: 9a6e17e5c1
am: 1aa0005a1f
am: 7d162acb13
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1899703 Change-Id: Ie97f43055aa820cb5b1bd4faffe67f2c292a2ecb
This commit is contained in:
9
cc/cc.go
9
cc/cc.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user