Remove asset dir glob files
I'm rewriting how globs work in soong to make them compatible with hash-based ninja implementations. As part of this, I'm removing this unnecessary usage of globs to make them simpler. In this case, since we're already globbing the directory at analysis time and causing soong to rerun, we can ensure the aapt2 action also reruns by putting a hash of the glob results onto the command line. Bug: 364749114 Test: m framework-res, touch frameworks/base/core/res/assets/test1.txt, m framework-res rebuilt framework-res.apk, rm frameworks/base/core/res/assets/test1.txt, m framework-res rebuilt framework-res.apk again Change-Id: I4f666367a9a0fd0dfa42dc51ef3a788a02b41747
This commit is contained in:
@@ -39,15 +39,6 @@ func androidResourceGlob(ctx android.EarlyModuleContext, dir android.Path) andro
|
||||
return ctx.GlobFiles(filepath.Join(dir.String(), "**/*"), androidResourceIgnoreFilenames)
|
||||
}
|
||||
|
||||
// androidResourceGlobList creates a rule to write the list of files in the given directory, using
|
||||
// the standard exclusion patterns for Android resources, to the given output file.
|
||||
func androidResourceGlobList(ctx android.ModuleContext, dir android.Path,
|
||||
fileListFile android.WritablePath) {
|
||||
|
||||
android.GlobToListFileRule(ctx, filepath.Join(dir.String(), "**/*"),
|
||||
androidResourceIgnoreFilenames, fileListFile)
|
||||
}
|
||||
|
||||
type overlayType int
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user