diff options
author | 2024-09-05 16:27:56 -0700 | |
---|---|---|
committer | 2024-09-05 16:36:32 -0700 | |
commit | 6265120cd269ba08be46d42bd5e8d88a67c804a6 (patch) | |
tree | ce13aeb19c3039be6e1341fee4717b0fa77b40ae /java/android_resources.go | |
parent | d18adf146f6a5f8acea1ad30e50aed24235c72c7 (diff) |
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
Diffstat (limited to 'java/android_resources.go')
-rw-r--r-- | java/android_resources.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/java/android_resources.go b/java/android_resources.go index 038a260d9..3bb3eb554 100644 --- a/java/android_resources.go +++ b/java/android_resources.go @@ -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 ( |