summaryrefslogtreecommitdiff
path: root/apex/builder.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-03-18 01:19:26 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-03-18 01:19:26 +0000
commitd21a743f73c6b76a76f2764bcdf448bd4544a216 (patch)
tree8c3ab769e81d6e4882e61f395d40227d3d39674a /apex/builder.go
parentfde59126604d75e9660d69dac8940b617ebfb5a4 (diff)
parent9918e1afd7ee027dde86c43ca4e14f4399dc758a (diff)
Merge "track static deps when gatherint notices for apex"
Diffstat (limited to 'apex/builder.go')
-rw-r--r--apex/builder.go20
1 files changed, 8 insertions, 12 deletions
diff --git a/apex/builder.go b/apex/builder.go
index 40adfcab7..67bc20603 100644
--- a/apex/builder.go
+++ b/apex/builder.go
@@ -228,19 +228,15 @@ func (a *apexBundle) buildManifest(ctx android.ModuleContext, provideNativeLibs,
}
func (a *apexBundle) buildNoticeFiles(ctx android.ModuleContext, apexFileName string) android.NoticeOutputs {
- noticeFiles := []android.Path{}
- for _, f := range a.filesInfo {
- if f.module != nil {
- notices := f.module.NoticeFiles()
- if len(notices) > 0 {
- noticeFiles = append(noticeFiles, notices...)
- }
+ var noticeFiles android.Paths
+
+ a.walkPayloadDeps(ctx, func(ctx android.ModuleContext, from blueprint.Module, to android.ApexModule, externalDep bool) {
+ if externalDep {
+ return
}
- }
- // append the notice file specified in the apex module itself
- if len(a.NoticeFiles()) > 0 {
- noticeFiles = append(noticeFiles, a.NoticeFiles()...)
- }
+ notices := to.NoticeFiles()
+ noticeFiles = append(noticeFiles, notices...)
+ })
if len(noticeFiles) == 0 {
return android.NoticeOutputs{}