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

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: 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 | « no previous file | components/autofill.gypi » ('j') | components/component_resources.grd » ('J')
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)/components/component_resources_da.pak',
95 inputs.append(os.path.join(SHARE_INT_DIR, 'component_resources',
96 'component_resources_%s.pak' % locale))
97
94 #e.g. '<(grit_out_dir)/google_chrome_strings_da.pak' 98 #e.g. '<(grit_out_dir)/google_chrome_strings_da.pak'
95 # or 99 # or
96 # '<(grit_out_dir)/chromium_strings_da.pak' 100 # '<(grit_out_dir)/chromium_strings_da.pak'
97 inputs.append(os.path.join( 101 inputs.append(os.path.join(
98 GRIT_DIR, '%s_strings_%s.pak' % (BRANDING, locale))) 102 GRIT_DIR, '%s_strings_%s.pak' % (BRANDING, locale)))
99 103
100 # Add any extra input files. 104 # Add any extra input files.
101 for extra_file in EXTRA_INPUT_FILES: 105 for extra_file in EXTRA_INPUT_FILES:
102 inputs.append('%s_%s.pak' % (extra_file, locale)) 106 inputs.append('%s_%s.pak' % (extra_file, locale))
103 107
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 208
205 if print_outputs: 209 if print_outputs:
206 return list_outputs(locales) 210 return list_outputs(locales)
207 211
208 return repack_locales(locales) 212 return repack_locales(locales)
209 213
210 if __name__ == '__main__': 214 if __name__ == '__main__':
211 results = DoMain(sys.argv[1:]) 215 results = DoMain(sys.argv[1:])
212 if results: 216 if results:
213 print results 217 print results
OLDNEW
« no previous file with comments | « no previous file | components/autofill.gypi » ('j') | components/component_resources.grd » ('J')

Powered by Google App Engine
This is Rietveld 408576698