OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # Keep in sync with 'remoting_webapp' target in remoting/remoting_client.gypi. | 5 # Keep in sync with 'remoting_webapp' target in remoting/remoting_client.gypi. |
6 | 6 |
7 import("//build/config/chrome_build.gni") | 7 import("//build/config/chrome_build.gni") |
| 8 import("//build/config/features.gni") |
8 import("//build/util/version.gni") | 9 import("//build/util/version.gni") |
9 import("//remoting/remoting_locales.gni") | 10 import("//remoting/remoting_locales.gni") |
10 import("//remoting/remoting_options.gni") | 11 import("//remoting/remoting_options.gni") |
11 import("//remoting/remoting_version.gni") | 12 import("//remoting/remoting_version.gni") |
12 import("//remoting/webapp/files.gni") | 13 import("//remoting/webapp/files.gni") |
13 import("//third_party/closure_compiler/closure_args.gni") | 14 import("//third_party/closure_compiler/closure_args.gni") |
14 | 15 |
15 # The base remoting directory that is used as the root directory for file | 16 # The base remoting directory that is used as the root directory for file |
16 # references. Many of the scripts rely on the files being specified relative | 17 # references. Many of the scripts rely on the files being specified relative |
17 # to this directory. | 18 # to this directory. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 extra_files = invoker.extra_files | 177 extra_files = invoker.extra_files |
177 | 178 |
178 dr_generated_html_files = [ | 179 dr_generated_html_files = [ |
179 background_html_output, | 180 background_html_output, |
180 message_window_html_output, | 181 message_window_html_output, |
181 wcs_sandbox_html_output, | 182 wcs_sandbox_html_output, |
182 main_html_output, | 183 main_html_output, |
183 "$target_gen_dir/credits.html", | 184 "$target_gen_dir/credits.html", |
184 ] | 185 ] |
185 | 186 |
| 187 if (enable_pnacl) { |
| 188 pexe_dir = get_label_info( |
| 189 "//remoting/client/plugin:remoting_client_plugin_newlib(//build/to
olchain/nacl:newlib_pnacl)", |
| 190 "root_out_dir") |
| 191 |
| 192 extra_files += [ "$pexe_dir/remoting_client_plugin_newlib.pexe" ] |
| 193 if (is_debug) { |
| 194 extra_files += [ "$pexe_dir/remoting_client_plugin_newlib.pexe.debug" ] |
| 195 } |
| 196 } |
| 197 |
186 inputs = [ rebase_path("crd/manifest.json.jinja2", root_build_dir) ] + | 198 inputs = [ rebase_path("crd/manifest.json.jinja2", root_build_dir) ] + |
187 remoting_version_files + | 199 remoting_version_files + |
188 rebase_path(remoting_webapp_crd_files, root_build_dir) + | 200 rebase_path(remoting_webapp_crd_files, root_build_dir) + |
189 extra_files + dr_generated_html_files | 201 extra_files + dr_generated_html_files |
190 | 202 |
191 outputs = [ | 203 outputs = [ |
192 zip_path, | 204 zip_path, |
193 ] | 205 ] |
194 | 206 |
195 deps = [ | 207 deps = [ |
196 ":$locales_listfile", | 208 ":$locales_listfile", |
197 ":$background_html", | 209 ":$background_html", |
198 ":$message_window_html", | 210 ":$message_window_html", |
199 ":$wcs_sandbox_html", | 211 ":$wcs_sandbox_html", |
200 ":$main_html", | 212 ":$main_html", |
201 "//remoting/resources", | 213 "//remoting/resources", |
202 "//remoting/webapp:credits", | 214 "//remoting/webapp:credits", |
203 ] | 215 ] |
204 | 216 |
| 217 if (enable_pnacl) { |
| 218 deps += [ |
| 219 "//remoting/client/plugin:remoting_client_plugin_newlib(//build/toolchai
n/nacl:newlib_pnacl)", |
| 220 ] |
| 221 } |
| 222 |
205 # Create a file that contains a list of all the resource files needed | 223 # Create a file that contains a list of all the resource files needed |
206 # to build the webapp. This is needed to avoid problems on platforms that | 224 # to build the webapp. This is needed to avoid problems on platforms that |
207 # limit the size of a command line. | 225 # limit the size of a command line. |
208 file_list = "$target_gen_dir/${target_name}_files.txt" | 226 file_list = "$target_gen_dir/${target_name}_files.txt" |
209 files = [] | 227 files = [] |
210 files += rebase_path(dr_generated_html_files, root_build_dir) | 228 files += rebase_path(dr_generated_html_files, root_build_dir) |
211 files += rebase_path(remoting_webapp_crd_files, root_build_dir) | 229 files += rebase_path(remoting_webapp_crd_files, root_build_dir) |
212 files += rebase_path(extra_files, root_build_dir) | 230 files += rebase_path(extra_files, root_build_dir) |
213 write_file(file_list, files) | 231 write_file(file_list, files) |
214 | 232 |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 args += [ | 527 args += [ |
510 "--files_listfile", | 528 "--files_listfile", |
511 rebase_path(file_list, root_build_dir), | 529 rebase_path(file_list, root_build_dir), |
512 ] | 530 ] |
513 args += [ | 531 args += [ |
514 "--locales_listfile", | 532 "--locales_listfile", |
515 rebase_path(locales_listfile_output, root_build_dir), | 533 rebase_path(locales_listfile_output, root_build_dir), |
516 ] | 534 ] |
517 } | 535 } |
518 } | 536 } |
OLD | NEW |