diff options
Diffstat (limited to 'java/android_resources.go')
-rw-r--r-- | java/android_resources.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/android_resources.go b/java/android_resources.go index 720d3a5ae..4d420cfed 100644 --- a/java/android_resources.go +++ b/java/android_resources.go @@ -38,10 +38,21 @@ var androidResourceIgnoreFilenames = []string{ "*~", } +// androidResourceGlob returns the list of files in the given directory, using the standard +// exclusion patterns for Android resources. func androidResourceGlob(ctx android.ModuleContext, dir android.Path) android.Paths { 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 ( |