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

Side by Side Diff: remoting/remoting.gyp

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

Powered by Google App Engine
This is Rietveld 408576698