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

Side by Side Diff: remoting/remoting.gyp

Issue 11365095: Revert 166003 - Move Chromoting strings to string_resources.grd and simplify remoting_resources tar… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/grit_action.gypi ('k') | remoting/resources/common_resources.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 # TODO(dmaclach): can we pick this up some other way? Right now it's 7 # TODO(dmaclach): can we pick this up some other way? Right now it's
8 # duplicated from chrome.gyp 8 # duplicated from chrome.gyp
9 'chromium_code': 1, 9 'chromium_code': 1,
10 10
(...skipping 16 matching lines...) Expand all
27 'version_short': 27 'version_short':
28 '<(version_major).<(version_minor).' 28 '<(version_major).<(version_minor).'
29 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@BUILD@")', 29 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@BUILD@")',
30 'version_full': 30 'version_full':
31 '<(version_short).' 31 '<(version_short).'
32 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@PATCH@")', 32 '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_vers ion_path) -t "@PATCH@")',
33 33
34 'branding_path': '../remoting/branding_<(branding)', 34 'branding_path': '../remoting/branding_<(branding)',
35 'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COP YRIGHT@")', 35 'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COP YRIGHT@")',
36 36
37 'webapp_locale_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/webapp/_locales',
38
39 # Use consistent strings across all platforms. 37 # Use consistent strings across all platforms.
40 # These values must match host/plugin/constants.h 38 # These values must match host/plugin/constants.h
41 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', 39 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host',
42 'host_plugin_description': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_DESCRIPTION@")', 40 'host_plugin_description': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_DESCRIPTION@")',
43 'host_plugin_name': '<!(python <(version_py_path) -f <(branding_path) -t "@H OST_PLUGIN_FILE_NAME@")', 41 'host_plugin_name': '<!(python <(version_py_path) -f <(branding_path) -t "@H OST_PLUGIN_FILE_NAME@")',
44 42
45 'conditions': [ 43 'conditions': [
46 ['OS=="mac"', { 44 ['OS=="mac"', {
47 'mac_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@ MAC_BUNDLE_ID@")', 45 'mac_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@ MAC_BUNDLE_ID@")',
48 'mac_creator': '<!(python <(version_py_path) -f <(branding_path) -t "@MA C_CREATOR@")', 46 'mac_creator': '<!(python <(version_py_path) -f <(branding_path) -t "@MA C_CREATOR@")',
(...skipping 18 matching lines...) Expand all
67 'host_plugin_extension': 'mipsel.so', 65 'host_plugin_extension': 'mipsel.so',
68 'host_plugin_prefix': 'lib', 66 'host_plugin_prefix': 'lib',
69 }], 67 }],
70 ['OS=="win"', { 68 ['OS=="win"', {
71 'host_plugin_extension': 'dll', 69 'host_plugin_extension': 'dll',
72 'host_plugin_prefix': '', 70 'host_plugin_prefix': '',
73 }], 71 }],
74 72
75 ['branding=="Chrome"', { 73 ['branding=="Chrome"', {
76 'remoting_webapp_locale_files': [ 74 'remoting_webapp_locale_files': [
77 '<(webapp_locale_dir)/ar/messages.json', 75 'webapp/_locales.official/ar/messages.json',
78 '<(webapp_locale_dir)/bg/messages.json', 76 'webapp/_locales.official/bg/messages.json',
79 '<(webapp_locale_dir)/ca/messages.json', 77 'webapp/_locales.official/ca/messages.json',
80 '<(webapp_locale_dir)/cs/messages.json', 78 'webapp/_locales.official/cs/messages.json',
81 '<(webapp_locale_dir)/da/messages.json', 79 'webapp/_locales.official/da/messages.json',
82 '<(webapp_locale_dir)/de/messages.json', 80 'webapp/_locales.official/de/messages.json',
83 '<(webapp_locale_dir)/el/messages.json', 81 'webapp/_locales.official/el/messages.json',
84 '<(webapp_locale_dir)/en/messages.json', 82 'webapp/_locales.official/en/messages.json',
85 '<(webapp_locale_dir)/en_GB/messages.json', 83 'webapp/_locales.official/en_GB/messages.json',
86 '<(webapp_locale_dir)/es/messages.json', 84 'webapp/_locales.official/es/messages.json',
87 '<(webapp_locale_dir)/es_419/messages.json', 85 'webapp/_locales.official/es_419/messages.json',
88 '<(webapp_locale_dir)/et/messages.json', 86 'webapp/_locales.official/et/messages.json',
89 '<(webapp_locale_dir)/fi/messages.json', 87 'webapp/_locales.official/fi/messages.json',
90 '<(webapp_locale_dir)/fil/messages.json', 88 'webapp/_locales.official/fil/messages.json',
91 '<(webapp_locale_dir)/fr/messages.json', 89 'webapp/_locales.official/fr/messages.json',
92 '<(webapp_locale_dir)/he/messages.json', 90 'webapp/_locales.official/he/messages.json',
93 '<(webapp_locale_dir)/hi/messages.json', 91 'webapp/_locales.official/hi/messages.json',
94 '<(webapp_locale_dir)/hr/messages.json', 92 'webapp/_locales.official/hr/messages.json',
95 '<(webapp_locale_dir)/hu/messages.json', 93 'webapp/_locales.official/hu/messages.json',
96 '<(webapp_locale_dir)/id/messages.json', 94 'webapp/_locales.official/id/messages.json',
97 '<(webapp_locale_dir)/it/messages.json', 95 'webapp/_locales.official/it/messages.json',
98 '<(webapp_locale_dir)/ja/messages.json', 96 'webapp/_locales.official/ja/messages.json',
99 '<(webapp_locale_dir)/ko/messages.json', 97 'webapp/_locales.official/ko/messages.json',
100 '<(webapp_locale_dir)/lt/messages.json', 98 'webapp/_locales.official/lt/messages.json',
101 '<(webapp_locale_dir)/lv/messages.json', 99 'webapp/_locales.official/lv/messages.json',
102 '<(webapp_locale_dir)/nb/messages.json', 100 'webapp/_locales.official/nb/messages.json',
103 '<(webapp_locale_dir)/nl/messages.json', 101 'webapp/_locales.official/nl/messages.json',
104 '<(webapp_locale_dir)/pl/messages.json', 102 'webapp/_locales.official/pl/messages.json',
105 '<(webapp_locale_dir)/pt_BR/messages.json', 103 'webapp/_locales.official/pt_BR/messages.json',
106 '<(webapp_locale_dir)/pt_PT/messages.json', 104 'webapp/_locales.official/pt_PT/messages.json',
107 '<(webapp_locale_dir)/ro/messages.json', 105 'webapp/_locales.official/ro/messages.json',
108 '<(webapp_locale_dir)/ru/messages.json', 106 'webapp/_locales.official/ru/messages.json',
109 '<(webapp_locale_dir)/sk/messages.json', 107 'webapp/_locales.official/sk/messages.json',
110 '<(webapp_locale_dir)/sl/messages.json', 108 'webapp/_locales.official/sl/messages.json',
111 '<(webapp_locale_dir)/sr/messages.json', 109 'webapp/_locales.official/sr/messages.json',
112 '<(webapp_locale_dir)/sv/messages.json', 110 'webapp/_locales.official/sv/messages.json',
113 '<(webapp_locale_dir)/th/messages.json', 111 'webapp/_locales.official/th/messages.json',
114 '<(webapp_locale_dir)/tr/messages.json', 112 'webapp/_locales.official/tr/messages.json',
115 '<(webapp_locale_dir)/uk/messages.json', 113 'webapp/_locales.official/uk/messages.json',
116 '<(webapp_locale_dir)/vi/messages.json', 114 'webapp/_locales.official/vi/messages.json',
117 '<(webapp_locale_dir)/zh_CN/messages.json', 115 'webapp/_locales.official/zh_CN/messages.json',
118 '<(webapp_locale_dir)/zh_TW/messages.json', 116 'webapp/_locales.official/zh_TW/messages.json',
119 ], 117 ],
120 }, { # else: branding!="Chrome" 118 }, { # else: branding!="Chrome"
121 'remoting_webapp_locale_files': [ 119 'remoting_webapp_locale_files': [
122 '<(webapp_locale_dir)/en/messages.json', 120 'webapp/_locales/en/messages.json',
123 ], 121 ],
124 }], 122 }],
125 ['OS=="win"', { 123 ['OS=="win"', {
126 # Use auto-generated CLSID for the daemon controller to make sure that 124 # Use auto-generated CLSID for the daemon controller to make sure that
127 # the newly installed version of the controller will be used during 125 # the newly installed version of the controller will be used during
128 # upgrade even if there is an old instance running already. 126 # upgrade even if there is an old instance running already.
129 'daemon_controller_clsid': '<!(python tools/uuidgen.py)', 127 'daemon_controller_clsid': '<!(python tools/uuidgen.py)',
130 }], 128 }],
131 ], 129 ],
132 'remoting_webapp_files': [ 130 'remoting_webapp_files': [
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 'host/plugin/host_plugin.def', 1207 'host/plugin/host_plugin.def',
1210 ], 1208 ],
1211 }], 1209 }],
1212 ], 1210 ],
1213 }, # end of target 'remoting_host_plugin' 1211 }, # end of target 'remoting_host_plugin'
1214 1212
1215 { 1213 {
1216 'target_name': 'remoting_webapp', 1214 'target_name': 'remoting_webapp',
1217 'type': 'none', 1215 'type': 'none',
1218 'dependencies': [ 1216 'dependencies': [
1219 'remoting_resources',
1220 'remoting_host_plugin', 1217 'remoting_host_plugin',
1221 ], 1218 ],
1222 'sources': [ 1219 'sources': [
1223 'webapp/build-webapp.py', 1220 'webapp/build-webapp.py',
1224 'webapp/verify-webapp.py', 1221 'webapp/verify-webapp.py',
1225 '<(remoting_version_path)', 1222 '<(remoting_version_path)',
1226 '<(chrome_version_path)', 1223 '<(chrome_version_path)',
1227 '<@(remoting_webapp_files)', 1224 '<@(remoting_webapp_files)',
1228 '<@(remoting_webapp_locale_files)', 1225 '<@(remoting_webapp_locale_files)',
1229 ], 1226 ],
1230 # Can't use a 'copies' because we need to manipulate 1227 # Can't use a 'copies' because we need to manipulate
1231 # the manifest file to get the right plugin name. 1228 # the manifest file to get the right plugin name.
1232 # Also we need to move the plugin into the me2mom 1229 # Also we need to move the plugin into the me2mom
1233 # folder, which means 2 copies, and gyp doesn't 1230 # folder, which means 2 copies, and gyp doesn't
1234 # seem to guarantee the ordering of 2 copies statements 1231 # seem to guarantee the ordering of 2 copies statements
1235 # when the actual project is generated. 1232 # when the actual project is generated.
1236 'actions': [ 1233 'actions': [
1237 { 1234 {
1238 'action_name': 'Verify Remoting WebApp i18n', 1235 'action_name': 'Verify Remoting WebApp i18n',
1239 'inputs': [ 1236 'inputs': [
1240 'host/plugin/host_script_object.cc', 1237 'host/plugin/host_script_object.cc',
1241 '<(webapp_locale_dir)/en/messages.json', 1238 'webapp/_locales/en/messages.json',
1242 'webapp/client_screen.js', 1239 'webapp/client_screen.js',
1243 'webapp/host_controller.js', 1240 'webapp/host_controller.js',
1244 'webapp/host_table_entry.js', 1241 'webapp/host_table_entry.js',
1245 'webapp/host_setup_dialog.js', 1242 'webapp/host_setup_dialog.js',
1246 'webapp/main.html', 1243 'webapp/main.html',
1247 'webapp/manifest.json', 1244 'webapp/manifest.json',
1248 'webapp/remoting.js', 1245 'webapp/remoting.js',
1249 'webapp/verify-webapp.py', 1246 'webapp/verify-webapp.py',
1250 ], 1247 ],
1251 'outputs': [ 1248 'outputs': [
1252 '<(PRODUCT_DIR)/remoting/webapp_verified.stamp', 1249 '<(PRODUCT_DIR)/remoting/webapp_verified.stamp',
1253 ], 1250 ],
1254 'action': [ 1251 'action': [
1255 'python', 1252 'python',
1256 'webapp/verify-webapp.py', 1253 'webapp/verify-webapp.py',
1257 '<(PRODUCT_DIR)/remoting/webapp_verified.stamp', 1254 '<(PRODUCT_DIR)/remoting/webapp_verified.stamp',
1258 '<(webapp_locale_dir)/en/messages.json', 1255 'webapp/_locales/en/messages.json',
1259 'webapp/client_screen.js', 1256 'webapp/client_screen.js',
1260 'webapp/host_controller.js', 1257 'webapp/host_controller.js',
1261 'webapp/host_table_entry.js', 1258 'webapp/host_table_entry.js',
1262 'webapp/host_setup_dialog.js', 1259 'webapp/host_setup_dialog.js',
1263 'webapp/main.html', 1260 'webapp/main.html',
1264 'webapp/manifest.json', 1261 'webapp/manifest.json',
1265 'webapp/remoting.js', 1262 'webapp/remoting.js',
1266 'host/plugin/host_script_object.cc', 1263 'host/plugin/host_script_object.cc',
1267 ], 1264 ],
1268 }, 1265 },
(...skipping 28 matching lines...) Expand all
1297 ], 1294 ],
1298 }, 1295 },
1299 ], 1296 ],
1300 }, # end of target 'remoting_webapp' 1297 }, # end of target 'remoting_webapp'
1301 1298
1302 { 1299 {
1303 'target_name': 'remoting_resources', 1300 'target_name': 'remoting_resources',
1304 'type': 'none', 1301 'type': 'none',
1305 'variables': { 1302 'variables': {
1306 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)', 1303 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)',
1307 'grit_resource_ids': '', 1304 'base_strings_grd_file': 'resources/string_resources.grd',
1305 'base_resource_ids_file': 'resources/resource_ids',
1308 }, 1306 },
1307 'conditions': [
1308 [ 'branding=="Chrome"', {
1309 'variables': {
1310 'strings_grd_file': '<(base_strings_grd_file)',
1311 'resource_ids_file': '<(base_resource_ids_file)',
1312 },
1313 }, { # else branding!="Chrome"
1314 # For non-official builds change branding in string resources
1315 # to "Chromoting".
1316 'variables': {
1317 'strings_grd_file':
1318 '<(grit_out_dir)/remoting/resources/string_resources.grd',
1319 'resource_ids_file':
1320 '<(grit_out_dir)/remoting/resources/resource_ids',
1321 },
1322 'copies': [
1323 {
1324 'destination': '<(grit_out_dir)/remoting/resources',
1325 'files': [ '<(base_resource_ids_file)', ]
1326 },
1327 ],
1328 'actions': [
1329 {
1330 'action_name': 'update_branding',
1331 'inputs': [
1332 '<(base_strings_grd_file)',
1333 ],
1334 'outputs': [
1335 '<(strings_grd_file)',
1336 ],
1337 'action': ['python', 'tools/remove_official_branding.py',
1338 '<(base_strings_grd_file)', '<(strings_grd_file)' ],
1339 },
1340 ],
1341 }],
1342 ],
1309 'actions': [ 1343 'actions': [
1310 { 1344 {
1311 'action_name': 'string_resources', 1345 'action_name': 'string_resources',
1312 'variables': { 1346 'variables': {
1313 'grit_grd_file': 'resources/string_resources.grd', 1347 'grit_grd_file': '<(strings_grd_file)',
1348 'base_grit_grd_file': '<(base_strings_grd_file)',
1314 }, 1349 },
1315 'includes': [ '../build/grit_action.gypi' ], 1350 'includes': [ 'grit_action.gypi' ],
1316 }, 1351 },
1317 { 1352 {
1318 'action_name': 'common_resources', 1353 'action_name': 'common_resources',
1319 'variables': { 1354 'variables': {
1320 'grit_grd_file': 'resources/common_resources.grd', 1355 'grit_grd_file': 'resources/common_resources.grd',
1356 'base_grit_grd_file': 'resources/common_resources.grd',
1321 }, 1357 },
1322 'includes': [ '../build/grit_action.gypi' ], 1358 'includes': [ 'grit_action.gypi' ],
1323 }, 1359 },
1324 ], 1360 ],
1325 'copies': [ 1361 'copies': [
1326 # Copy results to the product directory. 1362 # Copy results to the product directory.
1327 { 1363 {
1328 'destination': '<(PRODUCT_DIR)/remoting_locales', 1364 'destination': '<(PRODUCT_DIR)/remoting_locales',
1329 'files': [ 1365 'files': [
1330 '<(grit_out_dir)/remoting/resources/ar.pak',
1331 '<(grit_out_dir)/remoting/resources/bg.pak',
1332 '<(grit_out_dir)/remoting/resources/ca.pak',
1333 '<(grit_out_dir)/remoting/resources/cs.pak',
1334 '<(grit_out_dir)/remoting/resources/da.pak',
1335 '<(grit_out_dir)/remoting/resources/de.pak',
1336 '<(grit_out_dir)/remoting/resources/el.pak',
1337 '<(grit_out_dir)/remoting/resources/en-US.pak', 1366 '<(grit_out_dir)/remoting/resources/en-US.pak',
1338 '<(grit_out_dir)/remoting/resources/en-GB.pak', 1367 ]
1339 '<(grit_out_dir)/remoting/resources/es.pak',
1340 '<(grit_out_dir)/remoting/resources/es-419.pak',
1341 '<(grit_out_dir)/remoting/resources/et.pak',
1342 '<(grit_out_dir)/remoting/resources/fi.pak',
1343 '<(grit_out_dir)/remoting/resources/fil.pak',
1344 '<(grit_out_dir)/remoting/resources/fr.pak',
1345 '<(grit_out_dir)/remoting/resources/he.pak',
1346 '<(grit_out_dir)/remoting/resources/hi.pak',
1347 '<(grit_out_dir)/remoting/resources/hr.pak',
1348 '<(grit_out_dir)/remoting/resources/hu.pak',
1349 '<(grit_out_dir)/remoting/resources/id.pak',
1350 '<(grit_out_dir)/remoting/resources/it.pak',
1351 '<(grit_out_dir)/remoting/resources/ja.pak',
1352 '<(grit_out_dir)/remoting/resources/ko.pak',
1353 '<(grit_out_dir)/remoting/resources/lt.pak',
1354 '<(grit_out_dir)/remoting/resources/lv.pak',
1355 '<(grit_out_dir)/remoting/resources/nb.pak',
1356 '<(grit_out_dir)/remoting/resources/nl.pak',
1357 '<(grit_out_dir)/remoting/resources/pl.pak',
1358 '<(grit_out_dir)/remoting/resources/pt-BR.pak',
1359 '<(grit_out_dir)/remoting/resources/pt-PT.pak',
1360 '<(grit_out_dir)/remoting/resources/ro.pak',
1361 '<(grit_out_dir)/remoting/resources/ru.pak',
1362 '<(grit_out_dir)/remoting/resources/sk.pak',
1363 '<(grit_out_dir)/remoting/resources/sl.pak',
1364 '<(grit_out_dir)/remoting/resources/sr.pak',
1365 '<(grit_out_dir)/remoting/resources/sv.pak',
1366 '<(grit_out_dir)/remoting/resources/th.pak',
1367 '<(grit_out_dir)/remoting/resources/tr.pak',
1368 '<(grit_out_dir)/remoting/resources/uk.pak',
1369 '<(grit_out_dir)/remoting/resources/vi.pak',
1370 '<(grit_out_dir)/remoting/resources/zh-CN.pak',
1371 '<(grit_out_dir)/remoting/resources/zh-TW.pak',
1372 ],
1373 }, 1368 },
1374 { 1369 {
1375 'destination': '<(PRODUCT_DIR)', 1370 'destination': '<(PRODUCT_DIR)',
1376 'files': [ 1371 'files': [
1377 '<(grit_out_dir)/remoting/resources/chrome_remote_desktop.pak', 1372 '<(grit_out_dir)/remoting/resources/chrome_remote_desktop.pak',
1378 ] 1373 ]
1379 }, 1374 },
1380 ], 1375 ],
1381 'includes': [ '../build/grit_target.gypi' ], 1376 'includes': [ '../build/grit_target.gypi' ],
1382 }, # end of target 'remoting_resources' 1377 }, # end of target 'remoting_resources'
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
2233 '../base/allocator/allocator.gyp:allocator', 2228 '../base/allocator/allocator.gyp:allocator',
2234 ], 2229 ],
2235 }, 2230 },
2236 ], 2231 ],
2237 ], 2232 ],
2238 }], # end of 'toolkit_uses_gtk == 1' 2233 }], # end of 'toolkit_uses_gtk == 1'
2239 ], # end of 'conditions' 2234 ], # end of 'conditions'
2240 }, # end of target 'remoting_unittests' 2235 }, # end of target 'remoting_unittests'
2241 ], # end of targets 2236 ], # end of targets
2242 } 2237 }
OLDNEW
« no previous file with comments | « remoting/grit_action.gypi ('k') | remoting/resources/common_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698