Index: build/util/BUILD.gn |
diff --git a/build/util/BUILD.gn b/build/util/BUILD.gn |
index 9c5cf78062741926a304dcb0152f2fecb1d0bbab..910900817365e2a173b7d678946803c5a9b516e9 100644 |
--- a/build/util/BUILD.gn |
+++ b/build/util/BUILD.gn |
@@ -13,7 +13,7 @@ |
# All you need to do is depend on this target, and then from your source code: |
# #include "build/util/last_change.h" |
action("last_change") { |
- script = "//build/util/lastchange.py" |
+ script = "lastchange.py" |
# Rerun the script any time this file changes. |
source_prereqs = [ "//build/util/LASTCHANGE" ] |
@@ -30,3 +30,21 @@ action("last_change") { |
"--version-macro=LAST_CHANGE", |
] |
} |
+ |
+action("webkit_version") { |
+ script = "version.py" |
+ |
+ lastchange_file = "LASTCHANGE.blink" |
+ # TODO(brettw) move from content to this directory. |
+ template_file = "//content/webkit_version.h.in" |
+ source_prereqs = [ lastchange_file, template_file ] |
+ |
+ output_file = "$root_gen_dir/webkit_version.h" |
+ outputs = [ output_file ] |
+ |
+ args = [ |
+ "-f", rebase_path(lastchange_file, root_build_dir), |
+ rebase_path(template_file, root_build_dir), |
+ rebase_path(output_file, root_build_dir), |
+ ] |
+} |