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("//remoting/remoting_locales.gni") | 7 import("//remoting/remoting_locales.gni") |
8 import("//remoting/remoting_options.gni") | 8 import("//remoting/remoting_options.gni") |
9 import("//remoting/remoting_version.gni") | 9 import("//remoting/remoting_version.gni") |
10 import("//remoting/webapp/files.gni") | 10 import("//remoting/webapp/files.gni") |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 generated_html_files = [ | 68 generated_html_files = [ |
69 "$target_gen_dir/background.html", | 69 "$target_gen_dir/background.html", |
70 "$target_gen_dir/main.html", | 70 "$target_gen_dir/main.html", |
71 "$target_gen_dir/message_window.html", | 71 "$target_gen_dir/message_window.html", |
72 "$target_gen_dir/wcs_sandbox.html", | 72 "$target_gen_dir/wcs_sandbox.html", |
73 ] | 73 ] |
74 | 74 |
| 75 # Create a file that contains a list of all the resource files needed |
| 76 # to build the webapp. This is needed to avoid problems on platforms that |
| 77 # limit the size of a command line. |
| 78 file_list = "$target_gen_dir/${target_name}_file_list.txt" |
| 79 files = [] |
| 80 files += rebase_path(generated_html_files, root_build_dir) |
| 81 files += rebase_path(remoting_webapp_crd_files, root_build_dir) |
| 82 files += rebase_path(extra_files, root_build_dir) |
| 83 write_file(file_list, files) |
| 84 |
75 args = [ | 85 args = [ |
76 buildtype, | 86 buildtype, |
77 version_full, | 87 version_full, |
78 output_dir, | 88 output_dir, |
79 zip_path, | 89 zip_path, |
80 rebase_path("crd/manifest.json.jinja2", root_build_dir), | 90 rebase_path("crd/manifest.json.jinja2", root_build_dir), |
81 webapp_type, | 91 webapp_type, |
82 ] | 92 ] |
83 args += rebase_path(generated_html_files, root_build_dir) | 93 args += [ |
84 args += rebase_path(remoting_webapp_crd_files, root_build_dir) | 94 "--files_listfile", |
85 args += rebase_path(extra_files, root_build_dir) | 95 rebase_path(file_list, root_build_dir), |
| 96 ] |
86 args += [ | 97 args += [ |
87 "--locales_listfile", | 98 "--locales_listfile", |
88 listfile_rel, | 99 listfile_rel, |
89 ] | 100 ] |
90 args += [ | 101 args += [ |
91 "--use_gcd", | 102 "--use_gcd", |
92 "$remoting_use_gcd", | 103 "$remoting_use_gcd", |
93 ] | 104 ] |
94 } | 105 } |
95 } | 106 } |
OLD | NEW |