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

Unified Diff: build/util/BUILD.gn

Issue 1229073003: Move Android version stamping from an exec_script -> build rule (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn14
Patch Set: fix default argument for native lib version Created 5 years, 5 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/android/rules.gni ('k') | chrome/android/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 c18f0ce25b93d6cc928cdc7446ed84218f2cf1f1..29dd9439cadcb3bf4ce9171f5d9d07772550723d 100644
--- a/build/util/BUILD.gn
+++ b/build/util/BUILD.gn
@@ -26,3 +26,23 @@ action("webkit_version") {
rebase_path(output_file, root_build_dir),
]
}
+
+action("chrome_version_json") {
+ script = "version.py"
+ _chrome_version_path = "//chrome/VERSION"
+ inputs = [
+ _chrome_version_path,
+ ]
+ _output_file = "$root_gen_dir/CHROME_VERSION.json"
+ outputs = [
+ _output_file,
+ ]
+ args = [
+ "--file",
+ rebase_path(_chrome_version_path, root_build_dir),
+ "--template",
+ "{\"full-quoted\": \"\\\"@MAJOR@.@MINOR@.@BUILD@.@PATCH@\\\"\"}",
+ "--output",
+ rebase_path(_output_file, root_build_dir),
+ ]
+}
« no previous file with comments | « build/config/android/rules.gni ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698