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

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

Issue 682863002: Repack remoting resources into Chrome on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@It2me_ChromeOS
Patch Set: Fix GN build error Created 6 years, 1 month 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/chrome_resources.gyp ('k') | remoting/remoting.gyp » ('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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 'ash_strings_%s.pak' % locale)) 90 'ash_strings_%s.pak' % locale))
91 91
92 if USE_ATHENA: 92 if USE_ATHENA:
93 #e.g. '<(SHARED_INTERMEDIATE_DIR)/athena/strings/athena_strings_da.pak', 93 #e.g. '<(SHARED_INTERMEDIATE_DIR)/athena/strings/athena_strings_da.pak',
94 inputs.append(os.path.join(SHARE_INT_DIR, 'athena', 'strings', 94 inputs.append(os.path.join(SHARE_INT_DIR, 'athena', 'strings',
95 'athena_strings_%s.pak' % locale)) 95 'athena_strings_%s.pak' % locale))
96 96
97 if CHROMEOS: 97 if CHROMEOS:
98 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings', 98 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings',
99 'ui_chromeos_strings_%s.pak' % locale)) 99 'ui_chromeos_strings_%s.pak' % locale))
100 inputs.append(os.path.join(SHARE_INT_DIR, 'remoting', 'resources',
101 '%s.pak' % locale))
100 102
101 if OS != 'ios': 103 if OS != 'ios':
102 #e.g. 104 #e.g.
103 # '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_da.pak' 105 # '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_da.pak'
104 inputs.append(os.path.join(SHARE_INT_DIR, 'content', 'app', 'strings', 106 inputs.append(os.path.join(SHARE_INT_DIR, 'content', 'app', 'strings',
105 'content_strings_%s.pak' % locale)) 107 'content_strings_%s.pak' % locale))
106 108
107 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_da.pak', 109 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_da.pak',
108 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings', 110 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings',
109 'ui_strings_%s.pak' % locale)) 111 'ui_strings_%s.pak' % locale))
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 272
271 if print_outputs: 273 if print_outputs:
272 return list_outputs(locales) 274 return list_outputs(locales)
273 275
274 return repack_locales(locales) 276 return repack_locales(locales)
275 277
276 if __name__ == '__main__': 278 if __name__ == '__main__':
277 results = DoMain(sys.argv[1:]) 279 results = DoMain(sys.argv[1:])
278 if results: 280 if results:
279 print results 281 print results
OLDNEW
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698