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

Side by Side Diff: chrome/version.gni

Issue 1838173005: Propagate is_official_build to version script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « build/util/version.py ('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 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 6
7 # Runs the version processing script over the given template file to produce 7 # Runs the version processing script over the given template file to produce
8 # an output file. This is used for generating various forms of files that 8 # an output file. This is used for generating various forms of files that
9 # incorporate the product name and version. 9 # incorporate the product name and version.
10 # 10 #
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 if (defined(invoker.template_file)) { 88 if (defined(invoker.template_file)) {
89 inputs += [ invoker.template_file ] 89 inputs += [ invoker.template_file ]
90 } 90 }
91 91
92 outputs = [ 92 outputs = [
93 invoker.output, 93 invoker.output,
94 ] 94 ]
95 95
96 args = [] 96 args = []
97 97
98 if (is_official_build) {
99 args += [ "--official" ]
100 }
101
98 if (defined(invoker.sources)) { 102 if (defined(invoker.sources)) {
99 inputs += invoker.sources 103 inputs += invoker.sources
100 foreach(i, invoker.sources) { 104 foreach(i, invoker.sources) {
101 args += [ 105 args += [
102 "-f", 106 "-f",
103 rebase_path(i, root_build_dir), 107 rebase_path(i, root_build_dir),
104 ] 108 ]
105 } 109 }
106 } 110 }
107 111
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 forward_variables_from(invoker, [ "visibility" ]) 144 forward_variables_from(invoker, [ "visibility" ])
141 sources = get_target_outputs(":$action_name") 145 sources = get_target_outputs(":$action_name")
142 public_deps = [ 146 public_deps = [
143 ":$action_name", 147 ":$action_name",
144 ] 148 ]
145 } 149 }
146 } 150 }
147 } 151 }
148 152
149 chrome_version_rc_template = "//chrome/app/chrome_version.rc.version" 153 chrome_version_rc_template = "//chrome/app/chrome_version.rc.version"
OLDNEW
« no previous file with comments | « build/util/version.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698