Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: remoting/remoting.gyp

Issue 16031003: Build both v1 and v2 apps on the bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating comment Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/webapp/appsv2.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/remoting.gyp
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp
index fce91db4914ac7b07558231738e129f4478f2abd..3476f0f9dc46b398005596d0ece9610078061097 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
@@ -2028,6 +2027,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',
@@ -2036,13 +2044,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': {
@@ -2061,30 +2068,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',
@@ -2092,12 +2076,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': [
@@ -2121,15 +2103,67 @@
'<(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
Lambros 2013/05/29 00:15:37 nit: rephrase as we discussed offline.
+ # windows doesn't support patching. We should remove this condition
+ # when we remove the reliance on patch.
+ # We define this in a "target_conditions" section because 'plugin_path'
Lambros 2013/05/29 00:15:37 nit: Be consistent about single/double quotes.
+ # is defined in a "conditions" section so its value is not available
+ # when gyp processes the 'actions' in a 'conditions" section.
+ ['OS != "win"', {
Sergey Ulanov 2013/05/29 02:20:43 FYI, I see patch.exe pulled on windows by perl dep
+ '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'
{
« no previous file with comments | « no previous file | remoting/webapp/appsv2.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698