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:
@@ -63,7 +63,7 @@ func (m *licenseModule) DepsMutator(ctx BottomUpMutatorContext) {
|
||||
func (m *licenseModule) GenerateAndroidBuildActions(ctx ModuleContext) {
|
||||
// license modules have no licenses, but license_kinds must refer to license_kind modules
|
||||
mergeStringProps(&m.base().commonProperties.Effective_licenses, ctx.ModuleName())
|
||||
mergePathProps(&m.base().commonProperties.Effective_license_text, PathsForModuleSrc(ctx, m.properties.License_text)...)
|
||||
namePathProps(&m.base().commonProperties.Effective_license_text, m.properties.Package_name, PathsForModuleSrc(ctx, m.properties.License_text)...)
|
||||
for _, module := range ctx.GetDirectDepsWithTag(licenseKindTag) {
|
||||
if lk, ok := module.(*licenseKindModule); ok {
|
||||
mergeStringProps(&m.base().commonProperties.Effective_license_conditions, lk.properties.Conditions...)
|
||||
|
Reference in New Issue
Block a user