diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 00:35:31 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 00:35:31 +0000 |
commit | cb896ccaffc7618561c724770ceb4f7e4e6d1f9a (patch) | |
tree | 0476f462041fc2c2c766f15e3ad499311d9fe84e /remoting/remoting.gyp | |
parent | 0f6b51948db5818ea6c5aac5c834e2067005e98f (diff) | |
download | chromium_src-cb896ccaffc7618561c724770ceb4f7e4e6d1f9a.zip chromium_src-cb896ccaffc7618561c724770ceb4f7e4e6d1f9a.tar.gz chromium_src-cb896ccaffc7618561c724770ceb4f7e4e6d1f9a.tar.bz2 |
Python script to generate Chromoting's main.html.
With this change, it will be much easier to make changes to the UX (since
the dialogs will be easier to manage) and the set of JavaScript includes
will be guaranteed to match the gyp target.
This change also auto-generates the wcs_sandbox.html file.
BUG=
R=jamiewalch@chromium.org
Review URL: https://codereview.chromium.org/146903006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting.gyp')
-rw-r--r-- | remoting/remoting.gyp | 56 |
1 files changed, 53 insertions, 3 deletions
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp index 1392529..e4751ce 100644 --- a/remoting/remoting.gyp +++ b/remoting/remoting.gyp @@ -186,10 +186,15 @@ ], 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', + 'generated_html_files': [ + '<(SHARED_INTERMEDIATE_DIR)/main.html', + '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html', + ], }, 'dependencies': [ 'remoting_resources', 'remoting_host_plugin', + 'remoting_webapp_html', ], 'locale_files': [ '<@(remoting_webapp_locale_files)', @@ -218,7 +223,7 @@ { 'action_name': 'Verify remoting webapp', 'inputs': [ - '<@(remoting_webapp_js_files)', + '<@(remoting_webapp_all_js_files)', '<@(remoting_webapp_js_proto_files)', ], 'outputs': [ @@ -226,7 +231,7 @@ ], 'action': [ 'python', 'tools/jscompile.py', - '<@(remoting_webapp_js_files)', + '<@(remoting_webapp_all_js_files)', '<@(remoting_webapp_js_proto_files)', '--success-stamp', '<(success_stamp)' @@ -242,6 +247,7 @@ 'webapp/build-webapp.py', '<(chrome_version_path)', '<(remoting_version_path)', + '<@(generated_html_files)', '<@(remoting_webapp_files)', '<@(_locale_files)', ], @@ -264,6 +270,7 @@ '<(output_dir)', '<(zip_path)', '<(plugin_path)', + '<@(generated_html_files)', '<@(remoting_webapp_files)', '--locales', '<@(_locale_files)', @@ -326,12 +333,56 @@ }, # end of target 'remoting_webapp' { + 'target_name': 'remoting_webapp_html', + 'type': 'none', + 'actions': [ + { + 'action_name': 'Build Remoting Webapp main.html', + 'inputs': [ + 'webapp/build-html.py', + '<(remoting_webapp_template_main)', + '<@(remoting_webapp_template_files)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/main.html', + ], + 'action': [ + 'python', 'webapp/build-html.py', + '<(SHARED_INTERMEDIATE_DIR)/main.html', + '<(remoting_webapp_template_main)', + '<@(remoting_webapp_main_html_js_files)', + ], + }, + { + 'action_name': 'Build Remoting Webapp wcs_sandbox.html', + 'inputs': [ + 'webapp/build-html.py', + '<(remoting_webapp_template_wcs_sandbox)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html', + ], + 'action': [ + 'python', 'webapp/build-html.py', + '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html', + '<(remoting_webapp_template_wcs_sandbox)', + '<@(remoting_webapp_wcs_sandbox_html_js_files)', + ], + }, + ], + }, # end of target 'remoting_webapp_html' + + { 'target_name': 'remoting_resources', 'type': 'none', + 'dependencies': [ + 'remoting_webapp_html', + ], 'variables': { 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)', 'grit_resource_ids': 'resources/resource_ids', 'sources': [ + '<(SHARED_INTERMEDIATE_DIR)/main.html', 'base/resources_unittest.cc', 'host/continue_window_mac.mm', 'host/disconnect_window_mac.mm', @@ -348,7 +399,6 @@ 'webapp/host_list.js', 'webapp/host_setup_dialog.js', 'webapp/host_table_entry.js', - 'webapp/main.html', 'webapp/manifest.json', 'webapp/paired_client_manager.js', 'webapp/remoting.js', |