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/config/features.gni") |
9 import("//build/util/version.gni") | 9 import("//build/util/version.gni") |
10 import("//remoting/remoting_locales.gni") | 10 import("//remoting/remoting_locales.gni") |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 main_html = target_name + "_main_html" | 161 main_html = target_name + "_main_html" |
162 main_html_output = "$target_gen_dir/html/$target_name/main.html" | 162 main_html_output = "$target_gen_dir/html/$target_name/main.html" |
163 | 163 |
164 build_webapp_html(main_html) { | 164 build_webapp_html(main_html) { |
165 html_template_file = remoting_webapp_template_main | 165 html_template_file = remoting_webapp_template_main |
166 html_template_include_files = remoting_webapp_template_files | 166 html_template_include_files = remoting_webapp_template_files |
167 js_files = remoting_webapp_crd_main_html_all_js_files | 167 js_files = remoting_webapp_crd_main_html_all_js_files |
168 html_output = main_html_output | 168 html_output = main_html_output |
169 } | 169 } |
170 | 170 |
| 171 public_session_html = target_name + "_public_session_html" |
| 172 public_session_html_output = |
| 173 "$target_gen_dir/html/$target_name/public_session.html" |
| 174 |
| 175 build_webapp_html(public_session_html) { |
| 176 html_template_file = remoting_webapp_template_public_session |
| 177 html_template_include_files = remoting_webapp_public_session_template_files |
| 178 js_files = remoting_webapp_public_session_html_all_js_files |
| 179 html_output = public_session_html_output |
| 180 } |
| 181 |
171 action(target_name) { | 182 action(target_name) { |
172 script = "//remoting/webapp/build-webapp.py" | 183 script = "//remoting/webapp/build-webapp.py" |
173 | 184 |
174 webapp_type = invoker.webapp_type | 185 webapp_type = invoker.webapp_type |
175 output_dir = invoker.output_dir | 186 output_dir = invoker.output_dir |
176 zip_path = invoker.zip_path | 187 zip_path = invoker.zip_path |
177 extra_files = invoker.extra_files | 188 extra_files = invoker.extra_files |
178 | 189 |
179 dr_generated_html_files = [ | 190 dr_generated_html_files = [ |
180 background_html_output, | 191 background_html_output, |
181 message_window_html_output, | 192 message_window_html_output, |
182 wcs_sandbox_html_output, | 193 wcs_sandbox_html_output, |
183 main_html_output, | 194 main_html_output, |
| 195 public_session_html_output, |
184 "$target_gen_dir/credits.html", | 196 "$target_gen_dir/credits.html", |
185 ] | 197 ] |
186 | 198 |
187 if (enable_pnacl) { | 199 if (enable_pnacl) { |
188 pexe_dir = get_label_info( | 200 pexe_dir = get_label_info( |
189 "//remoting/client/plugin:remoting_client_plugin_newlib(//build/to
olchain/nacl:newlib_pnacl)", | 201 "//remoting/client/plugin:remoting_client_plugin_newlib(//build/to
olchain/nacl:newlib_pnacl)", |
190 "root_out_dir") | 202 "root_out_dir") |
191 | 203 |
192 extra_files += [ "$pexe_dir/remoting_client_plugin_newlib.pexe" ] | 204 extra_files += [ "$pexe_dir/remoting_client_plugin_newlib.pexe" ] |
193 if (is_debug) { | 205 if (is_debug) { |
194 extra_files += [ "$pexe_dir/remoting_client_plugin_newlib.pexe.debug" ] | 206 extra_files += [ "$pexe_dir/remoting_client_plugin_newlib.pexe.debug" ] |
195 } | 207 } |
196 } | 208 } |
197 | 209 |
198 inputs = [ rebase_path("crd/manifest.json.jinja2", root_build_dir) ] + | 210 inputs = [ rebase_path("crd/manifest.json.jinja2", root_build_dir) ] + |
199 remoting_version_files + | 211 remoting_version_files + |
200 rebase_path(remoting_webapp_crd_files, root_build_dir) + | 212 rebase_path(remoting_webapp_crd_files, root_build_dir) + |
201 extra_files + dr_generated_html_files | 213 extra_files + dr_generated_html_files |
202 | 214 |
203 outputs = [ | 215 outputs = [ |
204 zip_path, | 216 zip_path, |
205 ] | 217 ] |
206 | 218 |
207 deps = [ | 219 deps = [ |
208 ":$locales_listfile", | 220 ":$locales_listfile", |
209 ":$background_html", | 221 ":$background_html", |
210 ":$message_window_html", | 222 ":$message_window_html", |
211 ":$wcs_sandbox_html", | 223 ":$wcs_sandbox_html", |
| 224 ":$public_session_html", |
212 ":$main_html", | 225 ":$main_html", |
213 "//remoting/resources", | 226 "//remoting/resources", |
214 "//remoting/webapp:credits", | 227 "//remoting/webapp:credits", |
215 ] | 228 ] |
216 | 229 |
217 if (enable_pnacl) { | 230 if (enable_pnacl) { |
218 deps += [ | 231 deps += [ "//remoting/client/plugin:remoting_client_plugin_newlib(//build/
toolchain/nacl:newlib_pnacl)" ] |
219 "//remoting/client/plugin:remoting_client_plugin_newlib(//build/toolchai
n/nacl:newlib_pnacl)", | |
220 ] | |
221 } | 232 } |
222 | 233 |
223 # Create a file that contains a list of all the resource files needed | 234 # Create a file that contains a list of all the resource files needed |
224 # to build the webapp. This is needed to avoid problems on platforms that | 235 # to build the webapp. This is needed to avoid problems on platforms that |
225 # limit the size of a command line. | 236 # limit the size of a command line. |
226 file_list = "$target_gen_dir/${target_name}_files.txt" | 237 file_list = "$target_gen_dir/${target_name}_files.txt" |
227 files = [] | 238 files = [] |
228 files += rebase_path(dr_generated_html_files, root_build_dir) | 239 files += rebase_path(dr_generated_html_files, root_build_dir) |
229 files += rebase_path(remoting_webapp_crd_files, root_build_dir) | 240 files += rebase_path(remoting_webapp_crd_files, root_build_dir) |
230 files += rebase_path(extra_files, root_build_dir) | 241 files += rebase_path(extra_files, root_build_dir) |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 args += [ | 538 args += [ |
528 "--files_listfile", | 539 "--files_listfile", |
529 rebase_path(file_list, root_build_dir), | 540 rebase_path(file_list, root_build_dir), |
530 ] | 541 ] |
531 args += [ | 542 args += [ |
532 "--locales_listfile", | 543 "--locales_listfile", |
533 rebase_path(locales_listfile_output, root_build_dir), | 544 rebase_path(locales_listfile_output, root_build_dir), |
534 ] | 545 ] |
535 } | 546 } |
536 } | 547 } |
OLD | NEW |