summaryrefslogtreecommitdiff
path: root/android/defs.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/defs.go')
-rw-r--r--android/defs.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/defs.go b/android/defs.go
index f5bd362cd..38ecb0505 100644
--- a/android/defs.go
+++ b/android/defs.go
@@ -20,7 +20,7 @@ import (
"testing"
"github.com/google/blueprint"
- _ "github.com/google/blueprint/bootstrap"
+ "github.com/google/blueprint/bootstrap"
"github.com/google/blueprint/proptools"
)
@@ -200,3 +200,8 @@ func ContentFromFileRuleForTests(t *testing.T, params TestingBuildParams) string
return content
}
+
+// GlobToListFileRule creates a rule that writes a list of files matching a pattern to a file.
+func GlobToListFileRule(ctx ModuleContext, pattern string, excludes []string, file WritablePath) {
+ bootstrap.GlobFile(ctx.blueprintModuleContext(), pattern, excludes, file.String())
+}