diff options
Diffstat (limited to 'android/defs.go')
-rw-r--r-- | android/defs.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/android/defs.go b/android/defs.go index b3ff376d1..c8e2e9b3c 100644 --- a/android/defs.go +++ b/android/defs.go @@ -188,6 +188,15 @@ func WriteFileRule(ctx BuilderContext, outputFile WritablePath, content string) buildWriteFileRule(ctx, outputFile, content) } +func CatFileRule(ctx BuilderContext, paths Paths, outputFile WritablePath) { + ctx.Build(pctx, BuildParams{ + Rule: Cat, + Inputs: paths, + Output: outputFile, + Description: "combine files to " + outputFile.Base(), + }) +} + // shellUnescape reverses proptools.ShellEscape func shellUnescape(s string) string { // Remove leading and trailing quotes if present |