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/util/version.gni") |
8 import("//remoting/remoting_locales.gni") | 9 import("//remoting/remoting_locales.gni") |
9 import("//remoting/remoting_options.gni") | 10 import("//remoting/remoting_options.gni") |
10 import("//remoting/remoting_version.gni") | 11 import("//remoting/remoting_version.gni") |
11 import("//remoting/webapp/files.gni") | 12 import("//remoting/webapp/files.gni") |
12 import("//third_party/closure_compiler/closure_args.gni") | 13 import("//third_party/closure_compiler/closure_args.gni") |
13 | 14 |
14 # The base remoting directory that is used as the root directory for file | 15 # The base remoting directory that is used as the root directory for file |
15 # references. Many of the scripts rely on the files being specified relative | 16 # references. Many of the scripts rely on the files being specified relative |
16 # to this directory. | 17 # to this directory. |
17 remoting_dir = "//remoting" | 18 remoting_dir = "//remoting" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 # limit the size of a command line. | 205 # limit the size of a command line. |
205 file_list = "$target_gen_dir/${target_name}_files.txt" | 206 file_list = "$target_gen_dir/${target_name}_files.txt" |
206 files = [] | 207 files = [] |
207 files += rebase_path(dr_generated_html_files, root_build_dir) | 208 files += rebase_path(dr_generated_html_files, root_build_dir) |
208 files += rebase_path(remoting_webapp_crd_files, root_build_dir) | 209 files += rebase_path(remoting_webapp_crd_files, root_build_dir) |
209 files += rebase_path(extra_files, root_build_dir) | 210 files += rebase_path(extra_files, root_build_dir) |
210 write_file(file_list, files) | 211 write_file(file_list, files) |
211 | 212 |
212 args = [ | 213 args = [ |
213 buildtype, | 214 buildtype, |
214 version_full, | 215 chrome_version_full, |
215 output_dir, | 216 output_dir, |
216 zip_path, | 217 zip_path, |
217 rebase_path("crd/manifest.json.jinja2", root_build_dir), | 218 rebase_path("crd/manifest.json.jinja2", root_build_dir), |
218 webapp_type, | 219 webapp_type, |
219 ] | 220 ] |
220 args += [ | 221 args += [ |
221 "--files_listfile", | 222 "--files_listfile", |
222 rebase_path(file_list, root_build_dir), | 223 rebase_path(file_list, root_build_dir), |
223 ] | 224 ] |
224 args += [ | 225 args += [ |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 # Create a file that contains a list of all the resource files needed | 301 # Create a file that contains a list of all the resource files needed |
301 # to build the webapp. This is needed to avoid problems on platforms that | 302 # to build the webapp. This is needed to avoid problems on platforms that |
302 # limit the size of a command line. | 303 # limit the size of a command line. |
303 file_list = "$target_gen_dir/${target_name}_files.txt" | 304 file_list = "$target_gen_dir/${target_name}_files.txt" |
304 files = [] | 305 files = [] |
305 files += rebase_path(ar_webapp_files, root_build_dir) | 306 files += rebase_path(ar_webapp_files, root_build_dir) |
306 write_file(file_list, files) | 307 write_file(file_list, files) |
307 | 308 |
308 args = [ | 309 args = [ |
309 buildtype, | 310 buildtype, |
310 version_full, | 311 chrome_version_full, |
311 output_dir, | 312 output_dir, |
312 zip_path, | 313 zip_path, |
313 rebase_path(ar_app_manifest, root_build_dir), | 314 rebase_path(ar_app_manifest, root_build_dir), |
314 "app_remoting", # Web app type | 315 "app_remoting", # Web app type |
315 ] | 316 ] |
316 args += [ | 317 args += [ |
317 "--files_listfile", | 318 "--files_listfile", |
318 rebase_path(file_list, root_build_dir), | 319 rebase_path(file_list, root_build_dir), |
319 ] | 320 ] |
320 args += [ | 321 args += [ |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 # Create a file that contains a list of all the resource files needed | 486 # Create a file that contains a list of all the resource files needed |
486 # to build the webapp. This is needed to avoid problems on platforms that | 487 # to build the webapp. This is needed to avoid problems on platforms that |
487 # limit the size of a command line. | 488 # limit the size of a command line. |
488 file_list = "$target_gen_dir/${target_name}_files.txt" | 489 file_list = "$target_gen_dir/${target_name}_files.txt" |
489 files = [] | 490 files = [] |
490 files += rebase_path(ar_webapp_files, root_build_dir) | 491 files += rebase_path(ar_webapp_files, root_build_dir) |
491 write_file(file_list, files) | 492 write_file(file_list, files) |
492 | 493 |
493 args = [ | 494 args = [ |
494 buildtype, | 495 buildtype, |
495 version_full, | 496 chrome_version_full, |
496 output_dir, | 497 output_dir, |
497 zip_path, | 498 zip_path, |
498 rebase_path(ar_manifest, root_build_dir), | 499 rebase_path(ar_manifest, root_build_dir), |
499 "shared_module", # Web app type | 500 "shared_module", # Web app type |
500 ] | 501 ] |
501 args += [ | 502 args += [ |
502 "--files_listfile", | 503 "--files_listfile", |
503 rebase_path(file_list, root_build_dir), | 504 rebase_path(file_list, root_build_dir), |
504 ] | 505 ] |
505 args += [ | 506 args += [ |
506 "--locales_listfile", | 507 "--locales_listfile", |
507 rebase_path(locales_listfile_output, root_build_dir), | 508 rebase_path(locales_listfile_output, root_build_dir), |
508 ] | 509 ] |
509 } | 510 } |
510 } | 511 } |
OLD | NEW |