Merge "Filter defaults from license metadata dependencies." am: a070baad71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2170522 Change-Id: I4a6074f0ff691bfd0ce9f77cad12123a618e6db9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -67,6 +67,11 @@ func buildLicenseMetadata(ctx ModuleContext, licenseMetadataFile WritablePath) {
|
||||
return
|
||||
}
|
||||
|
||||
// Defaults add properties and dependencies that get processed on their own.
|
||||
if ctx.OtherModuleDependencyTag(dep) == DefaultsDepTag {
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.OtherModuleHasProvider(dep, LicenseMetadataProvider) {
|
||||
info := ctx.OtherModuleProvider(dep, LicenseMetadataProvider).(*LicenseMetadataInfo)
|
||||
allDepMetadataFiles = append(allDepMetadataFiles, info.LicenseMetadataPath)
|
||||
|
Reference in New Issue
Block a user