Support multiple library names per target.

The prior interface to make supported only a single package name per
target; although, a target might have multiple licenses each with its
own package name.

Bug: 151177513
Bug: 210912771

Test: m all dist
Test: flash; About Phone -> Legal Information -> Third-party licenses

Change-Id: I1db5fcfd4c066afd162adb4eb4177960c7a503bd
This commit is contained in:
Bob Badour
2022-02-09 11:54:35 -08:00
parent def9bf2c1c
commit 4101c71e63
6 changed files with 198 additions and 11 deletions

View File

@@ -90,9 +90,9 @@ var licensesTests = []struct {
"libother": []string{"shownotice"},
},
effectiveNotices: map[string][]string{
"libexample1": []string{"top/LICENSE", "top/NOTICE"},
"libnested": []string{"top/LICENSE", "top/NOTICE"},
"libother": []string{"top/LICENSE", "top/NOTICE"},
"libexample1": []string{"top/LICENSE:topDog", "top/NOTICE:topDog"},
"libnested": []string{"top/LICENSE:topDog", "top/NOTICE:topDog"},
"libother": []string{"top/LICENSE:topDog", "top/NOTICE:topDog"},
},
},