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

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

Issue 15018020: Separate component resources into their own .grd file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge and fix docs 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/autofill.gypi » ('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) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device_bluetooth_strings/ 85 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device_bluetooth_strings/
86 # device_bluetooth_strings_da.pak', 86 # device_bluetooth_strings_da.pak',
87 inputs.append(os.path.join(SHARE_INT_DIR, 'device_bluetooth_strings', 87 inputs.append(os.path.join(SHARE_INT_DIR, 'device_bluetooth_strings',
88 'device_bluetooth_strings_%s.pak' % locale)) 88 'device_bluetooth_strings_%s.pak' % locale))
89 89
90 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings_da.pak', 90 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings_da.pak',
91 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'app_locale_settings', 91 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'app_locale_settings',
92 'app_locale_settings_%s.pak' % locale)) 92 'app_locale_settings_%s.pak' % locale))
93 93
94 #e.g. '<(SHARED_INTERMEDIATE_DIR)/component_resources/
95 # component_resources_da.pak',
96 inputs.append(os.path.join(SHARE_INT_DIR, 'component_resources',
97 'component_resources_%s.pak' % locale))
98
94 #e.g. '<(grit_out_dir)/google_chrome_strings_da.pak' 99 #e.g. '<(grit_out_dir)/google_chrome_strings_da.pak'
95 # or 100 # or
96 # '<(grit_out_dir)/chromium_strings_da.pak' 101 # '<(grit_out_dir)/chromium_strings_da.pak'
97 inputs.append(os.path.join( 102 inputs.append(os.path.join(
98 GRIT_DIR, '%s_strings_%s.pak' % (BRANDING, locale))) 103 GRIT_DIR, '%s_strings_%s.pak' % (BRANDING, locale)))
99 104
100 # Add any extra input files. 105 # Add any extra input files.
101 for extra_file in EXTRA_INPUT_FILES: 106 for extra_file in EXTRA_INPUT_FILES:
102 inputs.append('%s_%s.pak' % (extra_file, locale)) 107 inputs.append('%s_%s.pak' % (extra_file, locale))
103 108
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 209
205 if print_outputs: 210 if print_outputs:
206 return list_outputs(locales) 211 return list_outputs(locales)
207 212
208 return repack_locales(locales) 213 return repack_locales(locales)
209 214
210 if __name__ == '__main__': 215 if __name__ == '__main__':
211 results = DoMain(sys.argv[1:]) 216 results = DoMain(sys.argv[1:])
212 if results: 217 if results:
213 print results 218 print results
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/autofill.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698