OLD | NEW |
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 Loading... |
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 Loading... |
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" |
OLD | NEW |