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

Side by Side Diff: chrome/tools/build/repack_locales.py

Issue 9307037: Reland http://codereview.chromium.org/9121050/ with fix for aura_win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate ash_strings into its own gyp to break circular dependencies Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | chrome/tools/check_grd_for_unused_strings.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Helper script to repack paks for a list of locales. 6 """Helper script to repack paks for a list of locales.
7 7
8 Gyp doesn't have any built-in looping capability, so this just provides a way to 8 Gyp doesn't have any built-in looping capability, so this just provides a way to
9 loop over a list of locales when repacking pak files, thus avoiding a 9 loop over a list of locales when repacking pak files, thus avoiding a
10 proliferation of mostly duplicate, cut-n-paste gyp actions. 10 proliferation of mostly duplicate, cut-n-paste gyp actions.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 'platform_locale_settings_%s.pak' % locale)) 65 'platform_locale_settings_%s.pak' % locale))
66 66
67 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak' 67 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak'
68 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit', 68 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit',
69 'webkit_strings_%s.pak' % locale)) 69 'webkit_strings_%s.pak' % locale))
70 70
71 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings_da.pak', 71 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings_da.pak',
72 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings', 72 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings',
73 'ui_strings_%s.pak' % locale)) 73 'ui_strings_%s.pak' % locale))
74 74
75 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash_strings/ash_strings_da.pak',
76 inputs.append(os.path.join(SHARE_INT_DIR, 'ash_strings',
77 'ash_strings_%s.pak' % locale))
78
75 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings_da.pak', 79 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings_da.pak',
76 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'app_locale_settings', 80 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'app_locale_settings',
77 'app_locale_settings_%s.pak' % locale)) 81 'app_locale_settings_%s.pak' % locale))
78 82
79 #e.g. '<(grit_out_dir)/google_chrome_strings_da.pak' 83 #e.g. '<(grit_out_dir)/google_chrome_strings_da.pak'
80 # or 84 # or
81 # '<(grit_out_dir)/chromium_strings_da.pak' 85 # '<(grit_out_dir)/chromium_strings_da.pak'
82 inputs.append(os.path.join( 86 inputs.append(os.path.join(
83 GRIT_DIR, '%s_strings_%s.pak' % (BRANDING, locale))) 87 GRIT_DIR, '%s_strings_%s.pak' % (BRANDING, locale)))
84 88
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 191
188 if print_outputs: 192 if print_outputs:
189 return list_outputs(locales) 193 return list_outputs(locales)
190 194
191 return repack_locales(locales) 195 return repack_locales(locales)
192 196
193 if __name__ == '__main__': 197 if __name__ == '__main__':
194 results = DoMain(sys.argv[1:]) 198 results = DoMain(sys.argv[1:])
195 if results: 199 if results:
196 print results 200 print results
OLDNEW
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | chrome/tools/check_grd_for_unused_strings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698