List of installed files for each APEX is dist'ed

For each APEX, <apexname>-installed-files.txt is dist'ed to show the
list of files and their sizes that are included in the APEX.

Bug: 147605944
Test: m dist and examine the txt files

Change-Id: I565479523e51280fc88d5fbf8ea3f48ac0ae9fee
This commit is contained in:
Jiyong Park
2020-01-14 14:39:19 +09:00
parent 17c51a4ff6
commit 3a1602e7f2
3 changed files with 29 additions and 2 deletions

View File

@@ -245,6 +245,14 @@ func (a *apexBundle) androidMkForType() android.AndroidMkData {
if apexType == imageApex {
fmt.Fprintln(w, "ALL_MODULES.$(LOCAL_MODULE).BUNDLE :=", a.bundleModuleFile.String())
}
if a.installedFilesFile != nil {
goal := "droidcore"
distFile := name + "-installed-files.txt"
fmt.Fprintln(w, ".PHONY:", goal)
fmt.Fprintf(w, "$(call dist-for-goals,%s,%s:%s)\n",
goal, a.installedFilesFile.String(), distFile)
}
}
}}
}