summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorweitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 23:07:46 +0000
committerweitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 23:07:46 +0000
commite87eccbe1fe5a8e1301680c65d28bfb305365dd4 (patch)
tree05a3d3e55d74af96a9a420a405c94ff17c9485c1 /remoting
parentdf90563783a730f075af5df62e91d718d17107bb (diff)
downloadchromium_src-e87eccbe1fe5a8e1301680c65d28bfb305365dd4.zip
chromium_src-e87eccbe1fe5a8e1301680c65d28bfb305365dd4.tar.gz
chromium_src-e87eccbe1fe5a8e1301680c65d28bfb305365dd4.tar.bz2
Build both v1 and v2 apps on the bots. Change #1: building both V1 and V2 apps at the same time. V1 app goes to remoting/remoting.webapp and V1 app goes to remoting/remoting.webapp.V2.
BUG= 239941 Review URL: https://chromiumcodereview.appspot.com/16031003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/remoting.gyp101
-rw-r--r--remoting/webapp/appsv2.patch2
2 files changed, 69 insertions, 34 deletions
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp
index 31c6be8..f99e399 100644
--- a/remoting/remoting.gyp
+++ b/remoting/remoting.gyp
@@ -21,7 +21,6 @@
'remoting_multi_process%': '<(remoting_multi_process)',
'remoting_rdp_session%': 1,
- 'remoting_use_apps_v2%': 0,
# The |major|, |build| and |patch| versions are inherited from Chrome.
# Since Chrome's |minor| version is always '0', we replace it with a
@@ -2026,6 +2025,15 @@
{
'target_name': 'remoting_webapp',
'type': 'none',
+ 'variables': {
+ 'remoting_webapp_patch_files': [
+ 'webapp/appsv2.patch',
+ ],
+ 'remoting_webapp_apps_v2_js_files': [
+ 'webapp/background.js',
+ 'webapp/identity.js',
+ ],
+ },
'dependencies': [
'remoting_resources',
'remoting_host_plugin',
@@ -2034,13 +2042,12 @@
'webapp/build-webapp.py',
'<(remoting_version_path)',
'<(chrome_version_path)',
- '<@(remoting_webapp_patch_files)',
+ '<@(remoting_webapp_apps_v2_js_files)',
'<@(remoting_webapp_files)',
'<@(remoting_webapp_js_files)',
- '<@(remoting_webapp_apps_v2_js_files)',
'<@(remoting_webapp_locale_files)',
+ '<@(remoting_webapp_patch_files)',
],
-
'conditions': [
['enable_remoting_host==1', {
'variables': {
@@ -2059,30 +2066,7 @@
'remoting_host_plugin_manifest',
],
}],
- ['remoting_use_apps_v2==1', {
- 'variables': {
- 'remoting_webapp_patch_files': [
- 'webapp/appsv2.patch',
- ],
- 'remoting_webapp_apps_v2_js_files': [
- 'webapp/background.js',
- 'webapp/identity.js',
- ],
- },
- }, {
- 'variables': {
- 'remoting_webapp_patch_files': [],
- 'remoting_webapp_apps_v2_js_files': [],
- },
- }],
],
-
- # Can't use a 'copies' because we need to manipulate
- # the manifest file to get the right plugin name.
- # Also we need to move the plugin into the me2mom
- # folder, which means 2 copies, and gyp doesn't
- # seem to guarantee the ordering of 2 copies statements
- # when the actual project is generated.
'actions': [
{
'action_name': 'Build Remoting WebApp',
@@ -2090,12 +2074,10 @@
'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip',
'inputs': [
'webapp/build-webapp.py',
- '<(remoting_version_path)',
'<(chrome_version_path)',
- '<@(remoting_webapp_patch_files)',
+ '<(remoting_version_path)',
'<@(remoting_webapp_files)',
'<@(remoting_webapp_js_files)',
- '<@(remoting_webapp_apps_v2_js_files)',
'<@(remoting_webapp_locale_files)',
],
'conditions': [
@@ -2119,15 +2101,68 @@
'<(plugin_path)',
'<@(remoting_webapp_files)',
'<@(remoting_webapp_js_files)',
- '<@(remoting_webapp_apps_v2_js_files)',
'--locales',
'<@(remoting_webapp_locale_files)',
- '--patches',
- '<@(remoting_webapp_patch_files)',
],
'msvs_cygwin_shell': 1,
},
],
+ 'target_conditions': [
+ # We cannot currently build the appsv2 version of WebApp on Windows as
+ # there isn't a version of the "patch" tool available on windows. We
+ # should remove this condition when we remove the reliance on the 'patch'.
+
+ # We define this in a 'target_conditions' section because 'plugin_path'
+ # is defined in a 'conditions' section so its value is not available
+ # when gyp processes the 'actions' in a 'conditions" section.
+ ['OS != "win"', {
+ 'actions': [
+ {
+ 'action_name': 'Build Remoting WebApp V2',
+ 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2',
+ 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip',
+ 'inputs': [
+ 'webapp/build-webapp.py',
+ '<(chrome_version_path)',
+ '<(remoting_version_path)',
+ '<@(remoting_webapp_apps_v2_js_files)',
+ '<@(remoting_webapp_files)',
+ '<@(remoting_webapp_js_files)',
+ '<@(remoting_webapp_locale_files)',
+ '<@(remoting_webapp_patch_files)',
+ ],
+ 'conditions': [
+ ['enable_remoting_host==1', {
+ 'inputs': [
+ '<(plugin_path)',
+ ],
+ }],
+ ],
+ 'outputs': [
+ '<(_output_dir)',
+ '<(_zip_path)',
+ ],
+ 'action': [
+ 'python', 'webapp/build-webapp.py',
+ '<(buildtype)',
+ '<(version_full)',
+ '<(host_plugin_mime_type)',
+ '<(_output_dir)',
+ '<(_zip_path)',
+ '<(plugin_path)',
+ '<@(remoting_webapp_apps_v2_js_files)',
+ '<@(remoting_webapp_files)',
+ '<@(remoting_webapp_js_files)',
+ '--locales',
+ '<@(remoting_webapp_locale_files)',
+ '--patches',
+ '<@(remoting_webapp_patch_files)',
+ ],
+ 'msvs_cygwin_shell': 1,
+ },
+ ],
+ }],
+ ],
}, # end of target 'remoting_webapp'
{
diff --git a/remoting/webapp/appsv2.patch b/remoting/webapp/appsv2.patch
index c9a399d..0b9c8f3 100644
--- a/remoting/webapp/appsv2.patch
+++ b/remoting/webapp/appsv2.patch
@@ -25,7 +25,7 @@ index 83c9844..98f63c3 100644
onDone(hostId);
};
try {
-- this.plugin_.getDaemonConfig(onConfig);
+- this.hostDispatcher_.getDaemonVersion(printVersion);
+ onConfig('{}');
} catch (err) {
onDone(null);