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

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

Issue 381463002: Add chrome/browser/ui to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add %$&*ing missing comma Created 6 years, 5 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 if USE_ASH: 82 if USE_ASH:
83 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash/strings/ash_strings_da.pak', 83 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash/strings/ash_strings_da.pak',
84 inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'strings', 84 inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'strings',
85 'ash_strings_%s.pak' % locale)) 85 'ash_strings_%s.pak' % locale))
86 86
87 if OS != 'ios': 87 if OS != 'ios':
88 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak' 88 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak'
89 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit', 89 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit',
90 'webkit_strings_%s.pak' % locale)) 90 'webkit_strings_%s.pak' % locale))
91 91
92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings_da.pak', 92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings_da.pak',
93 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings', 93 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings',
94 'ui_strings_%s.pak' % locale)) 94 'ui_strings_%s.pak' % locale))
95 95
96 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/ 96 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/
97 # device_bluetooth_strings_da.pak', 97 # device_bluetooth_strings_da.pak',
98 inputs.append(os.path.join(SHARE_INT_DIR, 'device', 'bluetooth', 'strings', 98 inputs.append(os.path.join(SHARE_INT_DIR, 'device', 'bluetooth', 'strings',
99 'device_bluetooth_strings_%s.pak' % locale)) 99 'device_bluetooth_strings_%s.pak' % locale))
100 100
101 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings_da.pak', 101 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings_da.pak',
102 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'app_locale_settings', 102 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'app_locale_settings',
103 'app_locale_settings_%s.pak' % locale)) 103 'app_locale_settings_%s.pak' % locale))
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 if print_outputs: 247 if print_outputs:
248 return list_outputs(locales) 248 return list_outputs(locales)
249 249
250 return repack_locales(locales) 250 return repack_locales(locales)
251 251
252 if __name__ == '__main__': 252 if __name__ == '__main__':
253 results = DoMain(sys.argv[1:]) 253 results = DoMain(sys.argv[1:])
254 if results: 254 if results:
255 print results 255 print results
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698