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

Unified Diff: remoting/remoting.gyp

Issue 11359035: Revert 165605 - 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/grit_action.gypi ('k') | remoting/resources/common_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/remoting.gyp
===================================================================
--- remoting/remoting.gyp (revision 165610)
+++ remoting/remoting.gyp (working copy)
@@ -1304,71 +1304,118 @@
'type': 'none',
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)',
- 'grit_resource_ids': '',
+ 'base_strings_grd_file': 'resources/string_resources.grd',
+ 'base_resource_ids_file': 'resources/resource_ids',
},
+ 'conditions': [
+ [ 'branding=="Chrome"', {
+ 'variables': {
+ 'strings_grd_file': '<(base_strings_grd_file)',
+ 'resource_ids_file': '<(base_resource_ids_file)',
+ },
+ }, { # else branding!="Chrome"
+ # For non-official builds change branding in string resources
+ # to "Chromoting".
+ 'variables': {
+ 'strings_grd_file':
+ '<(grit_out_dir)/remoting/resources/string_resources.grd',
+ 'resource_ids_file':
+ '<(grit_out_dir)/remoting/resources/resource_ids',
+ },
+ 'copies': [
+ {
+ 'destination': '<(grit_out_dir)/remoting/resources',
+ 'files': [ '<(base_resource_ids_file)', ]
+ },
+ ],
+ 'actions': [
+ {
+ 'action_name': 'update_branding',
+ 'inputs': [
+ '<(base_strings_grd_file)',
+ ],
+ 'outputs': [
+ '<(strings_grd_file)',
+ ],
+ 'action': ['python', 'tools/remove_official_branding.py',
+ '<(base_strings_grd_file)', '<(strings_grd_file)' ],
+ },
+ ],
+ }],
+ ],
'actions': [
{
'action_name': 'string_resources',
'variables': {
- 'grit_grd_file': 'resources/string_resources.grd',
+ 'grit_grd_file': '<(strings_grd_file)',
+ 'base_grit_grd_file': '<(base_strings_grd_file)',
},
- 'includes': [ '../build/grit_action.gypi' ],
+ 'includes': [ 'grit_action.gypi' ],
},
{
'action_name': 'common_resources',
'variables': {
'grit_grd_file': 'resources/common_resources.grd',
+ 'base_grit_grd_file': 'resources/common_resources.grd',
},
- 'includes': [ '../build/grit_action.gypi' ],
+ 'includes': [ 'grit_action.gypi' ],
},
],
'copies': [
# Copy results to the product directory.
{
'destination': '<(PRODUCT_DIR)/remoting_locales',
- 'files': [
- '<(grit_out_dir)/remoting/resources/ar.pak',
- '<(grit_out_dir)/remoting/resources/bg.pak',
- '<(grit_out_dir)/remoting/resources/ca.pak',
- '<(grit_out_dir)/remoting/resources/cs.pak',
- '<(grit_out_dir)/remoting/resources/da.pak',
- '<(grit_out_dir)/remoting/resources/de.pak',
- '<(grit_out_dir)/remoting/resources/el.pak',
- '<(grit_out_dir)/remoting/resources/en-US.pak',
- '<(grit_out_dir)/remoting/resources/en-GB.pak',
- '<(grit_out_dir)/remoting/resources/es.pak',
- '<(grit_out_dir)/remoting/resources/es-419.pak',
- '<(grit_out_dir)/remoting/resources/et.pak',
- '<(grit_out_dir)/remoting/resources/fi.pak',
- '<(grit_out_dir)/remoting/resources/fil.pak',
- '<(grit_out_dir)/remoting/resources/fr.pak',
- '<(grit_out_dir)/remoting/resources/he.pak',
- '<(grit_out_dir)/remoting/resources/hi.pak',
- '<(grit_out_dir)/remoting/resources/hr.pak',
- '<(grit_out_dir)/remoting/resources/hu.pak',
- '<(grit_out_dir)/remoting/resources/id.pak',
- '<(grit_out_dir)/remoting/resources/it.pak',
- '<(grit_out_dir)/remoting/resources/ja.pak',
- '<(grit_out_dir)/remoting/resources/ko.pak',
- '<(grit_out_dir)/remoting/resources/lt.pak',
- '<(grit_out_dir)/remoting/resources/lv.pak',
- '<(grit_out_dir)/remoting/resources/nb.pak',
- '<(grit_out_dir)/remoting/resources/nl.pak',
- '<(grit_out_dir)/remoting/resources/pl.pak',
- '<(grit_out_dir)/remoting/resources/pt-BR.pak',
- '<(grit_out_dir)/remoting/resources/pt-PT.pak',
- '<(grit_out_dir)/remoting/resources/ro.pak',
- '<(grit_out_dir)/remoting/resources/ru.pak',
- '<(grit_out_dir)/remoting/resources/sk.pak',
- '<(grit_out_dir)/remoting/resources/sl.pak',
- '<(grit_out_dir)/remoting/resources/sr.pak',
- '<(grit_out_dir)/remoting/resources/sv.pak',
- '<(grit_out_dir)/remoting/resources/th.pak',
- '<(grit_out_dir)/remoting/resources/tr.pak',
- '<(grit_out_dir)/remoting/resources/uk.pak',
- '<(grit_out_dir)/remoting/resources/vi.pak',
- '<(grit_out_dir)/remoting/resources/zh-CN.pak',
- '<(grit_out_dir)/remoting/resources/zh-TW.pak',
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'files': [
+ '<(grit_out_dir)/remoting/resources/ar.pak',
+ '<(grit_out_dir)/remoting/resources/bg.pak',
+ '<(grit_out_dir)/remoting/resources/ca.pak',
+ '<(grit_out_dir)/remoting/resources/cs.pak',
+ '<(grit_out_dir)/remoting/resources/da.pak',
+ '<(grit_out_dir)/remoting/resources/de.pak',
+ '<(grit_out_dir)/remoting/resources/el.pak',
+ '<(grit_out_dir)/remoting/resources/en-US.pak',
+ '<(grit_out_dir)/remoting/resources/en-GB.pak',
+ '<(grit_out_dir)/remoting/resources/es.pak',
+ '<(grit_out_dir)/remoting/resources/es-419.pak',
+ '<(grit_out_dir)/remoting/resources/et.pak',
+ '<(grit_out_dir)/remoting/resources/fi.pak',
+ '<(grit_out_dir)/remoting/resources/fil.pak',
+ '<(grit_out_dir)/remoting/resources/fr.pak',
+ '<(grit_out_dir)/remoting/resources/he.pak',
+ '<(grit_out_dir)/remoting/resources/hi.pak',
+ '<(grit_out_dir)/remoting/resources/hr.pak',
+ '<(grit_out_dir)/remoting/resources/hu.pak',
+ '<(grit_out_dir)/remoting/resources/id.pak',
+ '<(grit_out_dir)/remoting/resources/it.pak',
+ '<(grit_out_dir)/remoting/resources/ja.pak',
+ '<(grit_out_dir)/remoting/resources/ko.pak',
+ '<(grit_out_dir)/remoting/resources/lt.pak',
+ '<(grit_out_dir)/remoting/resources/lv.pak',
+ '<(grit_out_dir)/remoting/resources/nb.pak',
+ '<(grit_out_dir)/remoting/resources/nl.pak',
+ '<(grit_out_dir)/remoting/resources/pl.pak',
+ '<(grit_out_dir)/remoting/resources/pt-BR.pak',
+ '<(grit_out_dir)/remoting/resources/pt-PT.pak',
+ '<(grit_out_dir)/remoting/resources/ro.pak',
+ '<(grit_out_dir)/remoting/resources/ru.pak',
+ '<(grit_out_dir)/remoting/resources/sk.pak',
+ '<(grit_out_dir)/remoting/resources/sl.pak',
+ '<(grit_out_dir)/remoting/resources/sr.pak',
+ '<(grit_out_dir)/remoting/resources/sv.pak',
+ '<(grit_out_dir)/remoting/resources/th.pak',
+ '<(grit_out_dir)/remoting/resources/tr.pak',
+ '<(grit_out_dir)/remoting/resources/uk.pak',
+ '<(grit_out_dir)/remoting/resources/vi.pak',
+ '<(grit_out_dir)/remoting/resources/zh-CN.pak',
+ '<(grit_out_dir)/remoting/resources/zh-TW.pak',
+ ],
+ }, { # else: branding!="Chrome"
+ 'files': [
+ '<(grit_out_dir)/remoting/resources/en-US.pak',
+ ]
+ }]
],
},
{
Property changes on: remoting/remoting.gyp
___________________________________________________________________
Deleted: svn:mergeinfo
« 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