summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorJustin Yun <justinyun@google.com>2021-06-29 20:34:53 +0900
committerJustin Yun <justinyun@google.com>2021-07-13 07:51:38 +0900
commit501d0e8ab16d4fe94dace8f70049d9db1ee76ab0 (patch)
treef5ce154ad0f531cb20b8f4978b704d3cf622aa23 /android
parentef25c8777180f88650dad8bd2499e8c8c9d174b7 (diff)
Share EffectiveLicenseFiles for snapshot modules
License files must be captured with the snapshot modules. NoticeFiles does not have the information provided by the `license` module. Reading the `Effective_license_text`, snapshot includes the required license files. Bug: 190690041 Test: build check the NOTICE files built from snapshots Change-Id: I96c4579b4bef484cbb39fc06c707742a02a2b90b (cherry picked from commit 885a7dea6833373fcd41961737308de718995280)
Diffstat (limited to 'android')
-rw-r--r--android/module.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go
index f745a4ab4..ce7fd0ca0 100644
--- a/android/module.go
+++ b/android/module.go
@@ -473,6 +473,7 @@ type Module interface {
InitRc() Paths
VintfFragments() Paths
NoticeFiles() Paths
+ EffectiveLicenseFiles() Paths
AddProperties(props ...interface{})
GetProperties() []interface{}
@@ -1501,6 +1502,10 @@ func (m *ModuleBase) ExportedToMake() bool {
return m.commonProperties.NamespaceExportedToMake
}
+func (m *ModuleBase) EffectiveLicenseFiles() Paths {
+ return m.commonProperties.Effective_license_text
+}
+
// computeInstallDeps finds the installed paths of all dependencies that have a dependency
// tag that is annotated as needing installation via the IsInstallDepNeeded method.
func (m *ModuleBase) computeInstallDeps(ctx ModuleContext) ([]*installPathsDepSet, []*packagingSpecsDepSet) {