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