diff options
Diffstat (limited to 'android/defs.go')
-rw-r--r-- | android/defs.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/defs.go b/android/defs.go index 4dd267a89..57fcc9b13 100644 --- a/android/defs.go +++ b/android/defs.go @@ -143,3 +143,13 @@ func init() { return ctx.Config().RBEWrapper() }) } + +// CopyFileRule creates a ninja rule to copy path to outPath. +func CopyFileRule(ctx ModuleContext, path Path, outPath OutputPath) { + ctx.Build(pctx, BuildParams{ + Rule: Cp, + Input: path, + Output: outPath, + Description: "copy " + outPath.Base(), + }) +} |