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

Side by Side Diff: chrome/version.gni

Issue 1851843002: Revert of 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
102 if (defined(invoker.sources)) { 98 if (defined(invoker.sources)) {
103 inputs += invoker.sources 99 inputs += invoker.sources
104 foreach(i, invoker.sources) { 100 foreach(i, invoker.sources) {
105 args += [ 101 args += [
106 "-f", 102 "-f",
107 rebase_path(i, root_build_dir), 103 rebase_path(i, root_build_dir),
108 ] 104 ]
109 } 105 }
110 } 106 }
111 107
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 forward_variables_from(invoker, [ "visibility" ]) 140 forward_variables_from(invoker, [ "visibility" ])
145 sources = get_target_outputs(":$action_name") 141 sources = get_target_outputs(":$action_name")
146 public_deps = [ 142 public_deps = [
147 ":$action_name", 143 ":$action_name",
148 ] 144 ]
149 } 145 }
150 } 146 }
151 } 147 }
152 148
153 chrome_version_rc_template = "//chrome/app/chrome_version.rc.version" 149 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