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

Side by Side Diff: chrome/chrome_repack_locales.gypi

Issue 216233012: Add whitelist support for grit repack steps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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 | « build/repack_action.gypi ('k') | chrome/tools/build/repack_locales.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # To use this the following variables need to be defined: 5 # To use this the following variables need to be defined:
6 # pak_locales: string: the list of all the locales that need repacking 6 # pak_locales: string: the list of all the locales that need repacking
7 { 7 {
8 'variables': { 8 'variables': {
9 'repack_locales_path': 'tools/build/repack_locales.py', 9 'repack_locales_path': 'tools/build/repack_locales.py',
10 'repack_options%': [],
10 'conditions': [ 11 'conditions': [
11 ['branding=="Chrome"', { 12 ['branding=="Chrome"', {
12 'branding_flag': ['-b', 'google_chrome',], 13 'branding_flag': ['-b', 'google_chrome',],
13 }, { # else: branding!="Chrome" 14 }, { # else: branding!="Chrome"
14 'branding_flag': ['-b', 'chromium',], 15 'branding_flag': ['-b', 'chromium',],
15 }], 16 }],
16 ], 17 ],
17 }, 18 },
18 'inputs': [ 19 'inputs': [
19 '<(repack_locales_path)', 20 '<(repack_locales_path)',
20 '<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_ dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) --use-ash <(use _ash) <(pak_locales))' 21 '<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_ dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) --use-ash <(use _ash) <(pak_locales))'
21 ], 22 ],
22 'outputs': [ 23 'outputs': [
23 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_ INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))' 24 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_ INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))'
24 ], 25 ],
25 'action': [ 26 'action': [
26 'python', 27 'python',
27 '<(repack_locales_path)', 28 '<(repack_locales_path)',
28 '<@(branding_flag)', 29 '<@(branding_flag)',
29 '-p', '<(OS)', 30 '-p', '<(OS)',
30 '-g', '<(grit_out_dir)', 31 '-g', '<(grit_out_dir)',
31 '-s', '<(SHARED_INTERMEDIATE_DIR)', 32 '-s', '<(SHARED_INTERMEDIATE_DIR)',
32 '-x', '<(SHARED_INTERMEDIATE_DIR)/.', 33 '-x', '<(SHARED_INTERMEDIATE_DIR)/.',
33 '--use-ash', '<(use_ash)', 34 '--use-ash', '<(use_ash)',
35 '<@(repack_options)',
34 '<@(pak_locales)', 36 '<@(pak_locales)',
35 ], 37 ],
36 } 38 }
OLDNEW
« no previous file with comments | « build/repack_action.gypi ('k') | chrome/tools/build/repack_locales.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698