summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_webapp.gypi
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-27 18:55:28 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-27 18:55:28 +0000
commit5e0914991a75a6cfcaca27b06209f0133477ff51 (patch)
tree615e26e67c64086ecfe4d83664666e3334f99b10 /remoting/remoting_webapp.gypi
parent74af28eac1f51fc37812c7c1ef6e90cc3a3585af (diff)
downloadchromium_src-5e0914991a75a6cfcaca27b06209f0133477ff51.zip
chromium_src-5e0914991a75a6cfcaca27b06209f0133477ff51.tar.gz
chromium_src-5e0914991a75a6cfcaca27b06209f0133477ff51.tar.bz2
Cleanup remoting.gyp around the remoting_webapp target
Added two new targets remoting_webapp_v1 and remoting_webapp_v2. Both include the new remoting_webapp.gypi. remoting_webapp target depends on both. Also moved these targets to remoting_client.gypi. remoting_webapp.gypi will also be reused for webapp version that uses PNaCl plugin. BUG=276739 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253800 R=jamiewalch@chromium.org Review URL: https://codereview.chromium.org/181473008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting_webapp.gypi')
-rw-r--r--remoting/remoting_webapp.gypi103
1 files changed, 103 insertions, 0 deletions
diff --git a/remoting/remoting_webapp.gypi b/remoting/remoting_webapp.gypi
new file mode 100644
index 0000000..1b81873
--- /dev/null
+++ b/remoting/remoting_webapp.gypi
@@ -0,0 +1,103 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# File included in remoting_webapp_* targets in remoting_client.gypi
+
+{
+ 'type': 'none',
+ 'variables': {
+ 'include_host_plugin%': 0,
+ 'patch_files%': [],
+ 'extra_files%': [],
+ 'generated_html_files': [
+ '<(SHARED_INTERMEDIATE_DIR)/main.html',
+ '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
+ ],
+ },
+ 'dependencies': [
+ 'remoting_resources',
+ 'remoting_webapp_html',
+ ],
+ 'conditions': [
+ ['include_host_plugin==1', {
+ 'dependencies': [
+ 'remoting_host_plugin',
+ ],
+ 'variables': {
+ 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plugin.<(host_plugin_extension)',
+ 'plugin_args': [
+ '--locales', '<@(remoting_host_locale_files)',
+ '--plugin', '<(plugin_path)',
+ ],
+ },
+ }, {
+ 'variables': {
+ 'plugin_args': [],
+ },
+ }],
+ ['run_jscompile != 0', {
+ 'variables': {
+ 'success_stamp': '<(PRODUCT_DIR)/remoting_webapp_jscompile.stamp',
+ },
+ 'actions': [
+ {
+ 'action_name': 'Verify remoting webapp',
+ 'inputs': [
+ '<@(remoting_webapp_all_js_files)',
+ '<@(remoting_webapp_js_proto_files)',
+ ],
+ 'outputs': [
+ '<(success_stamp)',
+ ],
+ 'action': [
+ 'python', 'tools/jscompile.py',
+ '<@(remoting_webapp_all_js_files)',
+ '<@(remoting_webapp_js_proto_files)',
+ '--success-stamp', '<(success_stamp)'
+ ],
+ },
+ ], # actions
+ }],
+ ],
+ 'actions': [
+ {
+ 'action_name': 'Build Remoting WebApp',
+ 'inputs': [
+ 'webapp/build-webapp.py',
+ '<(chrome_version_path)',
+ '<(remoting_version_path)',
+ '<@(generated_html_files)',
+ '<@(remoting_webapp_files)',
+ '<@(remoting_webapp_locale_files)',
+ '<@(extra_files)',
+ ],
+ 'conditions': [
+ ['include_host_plugin==1', {
+ 'inputs': [
+ '<(plugin_path)',
+ '<@(remoting_host_locale_files)',
+ ],
+ }],
+ ],
+ 'outputs': [
+ '<(output_dir)',
+ '<(zip_path)',
+ ],
+ 'action': [
+ 'python', 'webapp/build-webapp.py',
+ '<(buildtype)',
+ '<(version_full)',
+ '<(host_plugin_mime_type)',
+ '<(output_dir)',
+ '<(zip_path)',
+ '<@(generated_html_files)',
+ '<@(remoting_webapp_files)',
+ '<@(extra_files)',
+ '<@(plugin_args)',
+ '--locales', '<@(remoting_webapp_locale_files)',
+ '--patches', '<@(patch_files)',
+ ],
+ },
+ ],
+}