summaryrefslogtreecommitdiff
path: root/android/androidmk.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-12-10 23:05:02 +0000
committer Colin Cross <ccross@android.com> 2021-12-10 23:05:02 +0000
commit4acaea9cbf8fd3b42bf0a02e8b90c94c6b0d30e7 (patch)
tree2d43ebc576589936ef10c384c8af3248e28d2116 /android/androidmk.go
parentb3264f20905792e553561e9e0076eaf95d80a25d (diff)
Revert^2 "Build license metadata files in Soong"
b3264f20905792e553561e9e0076eaf95d80a25d Change-Id: I5ea5f7e29eb1dbc72b8b30f010006a25f5f72fac
Diffstat (limited to 'android/androidmk.go')
-rw-r--r--android/androidmk.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/androidmk.go b/android/androidmk.go
index 0adc2a6eb..85f9ded45 100644
--- a/android/androidmk.go
+++ b/android/androidmk.go
@@ -474,6 +474,7 @@ type fillInEntriesContext interface {
ModuleDir(module blueprint.Module) string
Config() Config
ModuleProvider(module blueprint.Module, provider blueprint.ProviderKey) interface{}
+ ModuleHasProvider(module blueprint.Module, provider blueprint.ProviderKey) bool
}
func (a *AndroidMkEntries) fillInEntries(ctx fillInEntriesContext, mod blueprint.Module) {
@@ -609,6 +610,11 @@ func (a *AndroidMkEntries) fillInEntries(ctx fillInEntriesContext, mod blueprint
}
}
+ if ctx.ModuleHasProvider(mod, LicenseMetadataProvider) {
+ licenseMetadata := ctx.ModuleProvider(mod, LicenseMetadataProvider).(*LicenseMetadataInfo)
+ a.SetPath("LOCAL_SOONG_LICENSE_METADATA", licenseMetadata.LicenseMetadataPath)
+ }
+
extraCtx := &androidMkExtraEntriesContext{
ctx: ctx,
mod: mod,