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

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

Issue 2725903003: chromeos: Move //ash/common/strings to //ash/strings (Closed)
Patch Set: . Created 3 years, 9 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/exo/BUILD.gn » ('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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/ 92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/
93 # components_chromium_strings_da.pak' 93 # components_chromium_strings_da.pak'
94 # or 94 # or
95 # '<(SHARED_INTERMEDIATE_DIR)/components/strings/ 95 # '<(SHARED_INTERMEDIATE_DIR)/components/strings/
96 # components_google_chrome_strings_da.pak', 96 # components_google_chrome_strings_da.pak',
97 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings', 97 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings',
98 'components_%s_strings_%s.pak' % (BRANDING, locale))) 98 'components_%s_strings_%s.pak' % (BRANDING, locale)))
99 99
100 if USE_ASH: 100 if USE_ASH:
101 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash/common/strings/ash_strings_da.pak', 101 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash/strings/ash_strings_da.pak',
102 inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'common', 'strings', 102 inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'common', 'strings',
msw 2017/03/02 00:14:52 Fix this use of 'common', do a git gs/grep for som
James Cook 2017/03/02 00:30:58 Wow, good catch. Done, and after that the grep is
103 'ash_strings_%s.pak' % locale)) 103 'ash_strings_%s.pak' % locale))
104 104
105 if CHROMEOS: 105 if CHROMEOS:
106 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings', 106 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings',
107 'ui_chromeos_strings_%s.pak' % locale)) 107 'ui_chromeos_strings_%s.pak' % locale))
108 inputs.append(os.path.join(SHARE_INT_DIR, 'remoting', 'resources', 108 inputs.append(os.path.join(SHARE_INT_DIR, 'remoting', 'resources',
109 '%s.pak' % locale)) 109 '%s.pak' % locale))
110 110
111 if OS != 'ios': 111 if OS != 'ios':
112 #e.g. 112 #e.g.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 if print_outputs: 291 if print_outputs:
292 return list_outputs(locales) 292 return list_outputs(locales)
293 293
294 return repack_locales(locales) 294 return repack_locales(locales)
295 295
296 if __name__ == '__main__': 296 if __name__ == '__main__':
297 results = DoMain(sys.argv[1:]) 297 results = DoMain(sys.argv[1:])
298 if results: 298 if results:
299 print results 299 print results
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/exo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698