Add a timestamp touch rule.
Test: Works for the NDK changes I'm working on.
Change-Id: I2731ef159122d6d44a6494a6c975a687bb49ff56
diff --git a/android/defs.go b/android/defs.go
index be28e8b..9c6527d 100644
--- a/android/defs.go
+++ b/android/defs.go
@@ -52,6 +52,13 @@
},
"cpFlags")
+ // A timestamp touch rule.
+ Touch = pctx.StaticRule("Touch",
+ blueprint.RuleParams{
+ Command: "touch $out",
+ Description: "touch $out",
+ })
+
// A symlink rule.
Symlink = pctx.StaticRule("Symlink",
blueprint.RuleParams{