Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2222)

Unified Diff: build/util/BUILD.gn

Issue 287343006: ui/base and some other GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comment Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/features.gni ('k') | gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
+ ]
+}
« no previous file with comments | « build/config/features.gni ('k') | gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698