| 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 action("html") { | 5 action("html") { |
| 6 script = "build-html.py" | 6 script = "build-html.py" |
| 7 | 7 |
| 8 remoting_webapp_template_main = "html/template_main.html" | 8 remoting_webapp_template_main = "html/template_main.html" |
| 9 remoting_webapp_template_files = [ | 9 remoting_webapp_template_files = [ |
| 10 "html/butterbar.html", | 10 "html/butterbar.html", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 "html/ui_me2me.html", | 30 "html/ui_me2me.html", |
| 31 "html/window_frame.html", | 31 "html/window_frame.html", |
| 32 ] | 32 ] |
| 33 | 33 |
| 34 # Remoting core JavaScript files. | 34 # Remoting core JavaScript files. |
| 35 remoting_webapp_js_core_files = [ | 35 remoting_webapp_js_core_files = [ |
| 36 "base.js", | 36 "base.js", |
| 37 "error.js", | 37 "error.js", |
| 38 "event_handlers.js", | 38 "event_handlers.js", |
| 39 "plugin_settings.js", | 39 "plugin_settings.js", |
| 40 |
| 40 # TODO(garykac) Split out UI client stuff from remoting.js. | 41 # TODO(garykac) Split out UI client stuff from remoting.js. |
| 41 "remoting.js", | 42 "remoting.js", |
| 42 "typecheck.js", | 43 "typecheck.js", |
| 43 "xhr.js", | 44 "xhr.js", |
| 44 ] | 45 ] |
| 45 | 46 |
| 46 # Auth (client to host) JavaScript files. | 47 # Auth (client to host) JavaScript files. |
| 47 remoting_webapp_js_auth_client2host_files = [ | 48 remoting_webapp_js_auth_client2host_files = [ |
| 48 "third_party_host_permissions.js", | 49 "third_party_host_permissions.js", |
| 49 "third_party_token_fetcher.js", | 50 "third_party_token_fetcher.js", |
| 50 ] | 51 ] |
| 51 | 52 |
| 52 # Auth (Google account) JavaScript files. | 53 # Auth (Google account) JavaScript files. |
| 53 remoting_webapp_js_auth_google_files = [ | 54 remoting_webapp_js_auth_google_files = [ |
| 54 "identity.js", | 55 "identity.js", |
| 55 "oauth2.js", | 56 "oauth2.js", |
| 56 "oauth2_api.js", | 57 "oauth2_api.js", |
| 57 ] | 58 ] |
| 58 | 59 |
| 59 # Client JavaScript files. | 60 # Client JavaScript files. |
| 60 remoting_webapp_js_client_files = [ | 61 remoting_webapp_js_client_files = [ |
| 61 "client_plugin.js", | 62 "client_plugin.js", |
| 63 |
| 62 # TODO(garykac) For client_screen: | 64 # TODO(garykac) For client_screen: |
| 63 # * Split out pin/access code stuff into separate file. | 65 # * Split out pin/access code stuff into separate file. |
| 64 # * Move client logic into session_connector | 66 # * Move client logic into session_connector |
| 65 "client_screen.js", | 67 "client_screen.js", |
| 66 "client_session.js", | 68 "client_session.js", |
| 67 "clipboard.js", | 69 "clipboard.js", |
| 68 "hangout_session.js", | 70 "hangout_session.js", |
| 69 "media_source_renderer.js", | 71 "media_source_renderer.js", |
| 70 "session_connector.js", | 72 "session_connector.js", |
| 71 "smart_reconnector.js", | 73 "smart_reconnector.js", |
| 72 "video_frame_recorder.js", | 74 "video_frame_recorder.js", |
| 73 ] | 75 ] |
| 74 | 76 |
| 75 # gnubby authentication JavaScript files. | 77 # gnubby authentication JavaScript files. |
| 76 remoting_webapp_js_gnubby_auth_files = [ | 78 remoting_webapp_js_gnubby_auth_files = [ "gnubby_auth_handler.js" ] |
| 77 "gnubby_auth_handler.js", | 79 |
| 78 ] | |
| 79 # cast extension handler JavaScript files. | 80 # cast extension handler JavaScript files. |
| 80 remoting_webapp_js_cast_extension_files = [ | 81 remoting_webapp_js_cast_extension_files = [ "cast_extension_handler.js" ] |
| 81 "cast_extension_handler.js", | |
| 82 ] | |
| 83 | 82 |
| 84 # Host JavaScript files. | 83 # Host JavaScript files. |
| 85 # Includes both it2me and me2me files. | 84 # Includes both it2me and me2me files. |
| 86 remoting_webapp_js_host_files = [ | 85 remoting_webapp_js_host_files = [ |
| 87 "host_controller.js", | 86 "host_controller.js", |
| 88 "host_daemon_facade.js", | 87 "host_daemon_facade.js", |
| 89 "it2me_host_facade.js", | 88 "it2me_host_facade.js", |
| 90 "host_session.js", | 89 "host_session.js", |
| 91 ] | 90 ] |
| 92 | 91 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 124 |
| 126 # UI files for displaying (in the client) info about available hosts. | 125 # UI files for displaying (in the client) info about available hosts. |
| 127 remoting_webapp_js_ui_host_display_files = [ | 126 remoting_webapp_js_ui_host_display_files = [ |
| 128 "host.js", | 127 "host.js", |
| 129 "host_list.js", | 128 "host_list.js", |
| 130 "host_settings.js", | 129 "host_settings.js", |
| 131 "host_table_entry.js", | 130 "host_table_entry.js", |
| 132 ] | 131 ] |
| 133 | 132 |
| 134 # Remoting WCS container JavaScript files. | 133 # Remoting WCS container JavaScript files. |
| 135 remoting_webapp_js_wcs_container_files = [ | 134 remoting_webapp_js_wcs_container_files = [ "wcs_sandbox_container.js" ] |
| 136 "wcs_sandbox_container.js", | |
| 137 ] | |
| 138 | 135 |
| 139 # Browser test JavaScript files (uncomment if used below). | 136 # Browser test JavaScript files (uncomment if used below). |
| 140 #remoting_webapp_js_browser_test_files = [ | 137 #remoting_webapp_js_browser_test_files = [ |
| 141 # "browser_test/browser_test.js", | 138 # "browser_test/browser_test.js", |
| 142 # "browser_test/bump_scroll_browser_test.js", | 139 # "browser_test/bump_scroll_browser_test.js", |
| 143 # "browser_test/cancel_pin_browser_test.js", | 140 # "browser_test/cancel_pin_browser_test.js", |
| 144 # "browser_test/invalid_pin_browser_test.js", | 141 # "browser_test/invalid_pin_browser_test.js", |
| 145 # "browser_test/update_pin_browser_test.js", | 142 # "browser_test/update_pin_browser_test.js", |
| 146 #] | 143 #] |
| 147 | 144 |
| 148 # The JavaScript files required by main.html. | 145 # The JavaScript files required by main.html. |
| 149 remoting_webapp_main_html_js_files = | 146 remoting_webapp_main_html_js_files = |
| 150 # Include the core files first as it is required by the other files. | 147 # Include the core files first as it is required by the other files. |
| 151 # Otherwise, Jscompile will complain. | 148 # Otherwise, Jscompile will complain. |
| 152 remoting_webapp_js_core_files + | 149 remoting_webapp_js_core_files + |
| 153 remoting_webapp_js_auth_client2host_files + | 150 remoting_webapp_js_auth_client2host_files + |
| 154 remoting_webapp_js_auth_google_files + | 151 remoting_webapp_js_auth_google_files + remoting_webapp_js_client_files + |
| 155 remoting_webapp_js_client_files + | |
| 156 remoting_webapp_js_gnubby_auth_files + | 152 remoting_webapp_js_gnubby_auth_files + |
| 157 remoting_webapp_js_cast_extension_files + | 153 remoting_webapp_js_cast_extension_files + remoting_webapp_js_host_files + |
| 158 remoting_webapp_js_host_files + | 154 remoting_webapp_js_logging_files + remoting_webapp_js_ui_files + |
| 159 remoting_webapp_js_logging_files + | |
| 160 remoting_webapp_js_ui_files + | |
| 161 remoting_webapp_js_ui_host_control_files + | 155 remoting_webapp_js_ui_host_control_files + |
| 162 remoting_webapp_js_ui_host_display_files + | 156 remoting_webapp_js_ui_host_display_files + |
| 163 remoting_webapp_js_wcs_container_files | 157 remoting_webapp_js_wcs_container_files |
| 164 # Uncomment this line to include browser test files in the web app | |
| 165 # to expedite debugging or local development. | |
| 166 #+ remoting_webapp_js_browser_test_files | |
| 167 | 158 |
| 168 inputs = [ remoting_webapp_template_main ] + | 159 # Uncomment this line to include browser test files in the web app |
| 169 remoting_webapp_template_files + | 160 # to expedite debugging or local development. |
| 170 remoting_webapp_main_html_js_files | 161 #+ remoting_webapp_js_browser_test_files |
| 162 |
| 163 inputs = [ remoting_webapp_template_main ] + remoting_webapp_template_files + |
| 164 remoting_webapp_main_html_js_files |
| 171 | 165 |
| 172 outputs = [ | 166 outputs = [ |
| 173 "$root_gen_dir/main.html", | 167 "$root_gen_dir/main.html", |
| 174 ] | 168 ] |
| 175 | 169 |
| 176 # Template files are relative to this directory. This passes some template | 170 # Template files are relative to this directory. This passes some template |
| 177 # files to the script, and the script reads templates from the files on disk. | 171 # files to the script, and the script reads templates from the files on disk. |
| 178 # They all have to be relative to the same directory. The GYP build made all | 172 # They all have to be relative to the same directory. The GYP build made all |
| 179 # of these relative to the remoting directory, so this does the same. | 173 # of these relative to the remoting directory, so this does the same. |
| 180 template_rel_dir = "//remoting" | 174 template_rel_dir = "//remoting" |
| 181 | 175 |
| 182 # TODO(brettw) It's very bad to put this file named "main" in the root | 176 # TODO(brettw) It's very bad to put this file named "main" in the root |
| 183 # generated file directory. | 177 # generated file directory. |
| 184 args = [ | 178 args = [ |
| 185 rebase_path("$root_gen_dir/main.html", template_rel_dir), | 179 rebase_path("$root_gen_dir/main.html", template_rel_dir), |
| 186 rebase_path(remoting_webapp_template_main, template_rel_dir), | 180 rebase_path(remoting_webapp_template_main, template_rel_dir), |
| 187 ] | 181 ] |
| 188 args += [ "--template" ] + | 182 args += [ "--template" ] + |
| 189 rebase_path(remoting_webapp_template_files, template_rel_dir) | 183 rebase_path(remoting_webapp_template_files, template_rel_dir) |
| 190 args += [ "--js" ] + | 184 args += [ "--js" ] + |
| 191 rebase_path(remoting_webapp_main_html_js_files, template_rel_dir) | 185 rebase_path(remoting_webapp_main_html_js_files, template_rel_dir) |
| 192 args += [ "--dir-for-templates", | 186 args += [ |
| 193 rebase_path(template_rel_dir, root_build_dir) ] | 187 "--dir-for-templates", |
| 188 rebase_path(template_rel_dir, root_build_dir), |
| 189 ] |
| 194 } | 190 } |
| 195 | |
| 196 # TODO(GYP) wcs_sandbox.html | 191 # TODO(GYP) wcs_sandbox.html |
| OLD | NEW |