Merge changes I2729001d,Ife5d2193 am: 015a0afe07
am: 3c11654140
am: 3a13833166
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1702492 Change-Id: I25c4bc3fd4733bd1c4bd36e5f1262a57c60c4b84
This commit is contained in:
@@ -1500,7 +1500,7 @@ func (m *ModuleBase) computeInstallDeps(ctx ModuleContext) ([]*installPathsDepSe
|
||||
var installDeps []*installPathsDepSet
|
||||
var packagingSpecs []*packagingSpecsDepSet
|
||||
ctx.VisitDirectDeps(func(dep Module) {
|
||||
if IsInstallDepNeeded(ctx.OtherModuleDependencyTag(dep)) {
|
||||
if IsInstallDepNeeded(ctx.OtherModuleDependencyTag(dep)) && !dep.IsHideFromMake() {
|
||||
installDeps = append(installDeps, dep.base().installFilesDepSet)
|
||||
packagingSpecs = append(packagingSpecs, dep.base().packagingSpecsDepSet)
|
||||
}
|
||||
|
@@ -198,8 +198,8 @@ func (p *PackagingBase) AddDeps(ctx BottomUpMutatorContext, depTag blueprint.Dep
|
||||
}
|
||||
}
|
||||
|
||||
// See PackageModule.CopyDepsToZip
|
||||
func (p *PackagingBase) CopyDepsToZip(ctx ModuleContext, zipOut WritablePath) (entries []string) {
|
||||
// Returns transitive PackagingSpecs from deps
|
||||
func (p *PackagingBase) GatherPackagingSpecs(ctx ModuleContext) map[string]PackagingSpec {
|
||||
m := make(map[string]PackagingSpec)
|
||||
ctx.VisitDirectDeps(func(child Module) {
|
||||
if pi, ok := ctx.OtherModuleDependencyTag(child).(PackagingItem); !ok || !pi.IsPackagingItem() {
|
||||
@@ -211,7 +211,12 @@ func (p *PackagingBase) CopyDepsToZip(ctx ModuleContext, zipOut WritablePath) (e
|
||||
}
|
||||
}
|
||||
})
|
||||
return m
|
||||
}
|
||||
|
||||
// See PackageModule.CopyDepsToZip
|
||||
func (p *PackagingBase) CopyDepsToZip(ctx ModuleContext, zipOut WritablePath) (entries []string) {
|
||||
m := p.GatherPackagingSpecs(ctx)
|
||||
builder := NewRuleBuilder(pctx, ctx)
|
||||
|
||||
dir := PathForModuleOut(ctx, ".zip")
|
||||
|
Reference in New Issue
Block a user