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

Side by Side Diff: chrome/version.gni

Issue 668343004: Make channel available in Java via ChromeVersionConstants.java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix GN build Created 6 years, 1 month 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 unified diff | Download patch
« chrome/android/channel.gni ('K') | « chrome/chrome_android.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Runs the version processing script over the given template file to produce 5 # Runs the version processing script over the given template file to produce
6 # an output file. This is used for generating various forms of files that 6 # an output file. This is used for generating various forms of files that
7 # incorporate the product name and version. 7 # incorporate the product name and version.
8 # 8 #
9 # This template automatically includes VERSION, LASTCHANGE, and BRANDING, 9 # This template automatically includes VERSION, LASTCHANGE, and BRANDING,
10 # 10 #
(...skipping 22 matching lines...) Expand all
33 script = "//build/util/version.py" 33 script = "//build/util/version.py"
34 34
35 lastchange_path = "//build/util/LASTCHANGE" 35 lastchange_path = "//build/util/LASTCHANGE"
36 version_path = "//chrome/VERSION" 36 version_path = "//chrome/VERSION"
37 if (is_chrome_branded) { 37 if (is_chrome_branded) {
38 branding_path = "//chrome/app/theme/google_chrome/BRANDING" 38 branding_path = "//chrome/app/theme/google_chrome/BRANDING"
39 } else { 39 } else {
40 branding_path = "//chrome/app/theme/chromium/BRANDING" 40 branding_path = "//chrome/app/theme/chromium/BRANDING"
41 } 41 }
42 42
43 extra_args = []
cjhopman 2014/10/23 21:42:05 document this new parameter above.
cjhopman 2014/10/23 21:42:05 Also, I think my preference would be to expose a l
newt (away) 2014/10/23 22:02:28 I considered that, but it didn't really seem worth
cjhopman 2014/10/23 22:05:48 sgtm
newt (away) 2014/10/23 22:25:24 Done.
44 if (defined(invoker.extra_args)) {
45 extra_args = invoker.extra_args
46 }
47
43 inputs = [ 48 inputs = [
44 version_path, 49 version_path,
45 invoker.source, 50 invoker.source,
46 lastchange_path, 51 lastchange_path,
47 branding_path, 52 branding_path,
48 ] 53 ]
49 54
50 outputs = [ invoker.output ] 55 outputs = [ invoker.output ]
51 56
52 args = [ 57 args = [
53 "-f", rebase_path(version_path, root_build_dir), 58 "-f", rebase_path(version_path, root_build_dir),
54 "-f", rebase_path(branding_path, root_build_dir), 59 "-f", rebase_path(branding_path, root_build_dir),
55 "-f", rebase_path(lastchange_path, root_build_dir), 60 "-f", rebase_path(lastchange_path, root_build_dir),
56 rebase_path(invoker.source, root_build_dir), 61 "-i", rebase_path(invoker.source, root_build_dir),
57 rebase_path(invoker.output, root_build_dir), 62 "-o", rebase_path(invoker.output, root_build_dir),
58 ] 63 ] + extra_args
59 } 64 }
60 } 65 }
OLDNEW
« chrome/android/channel.gni ('K') | « chrome/chrome_android.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698