OLD | NEW |
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 'repack_options%': [], |
11 'conditions': [ | 11 'conditions': [ |
12 ['branding=="Chrome"', { | 12 ['branding=="Chrome"', { |
13 'branding_flag': ['-b', 'google_chrome',], | 13 'branding_flag': ['-b', 'google_chrome',], |
14 }, { # else: branding!="Chrome" | 14 }, { # else: branding!="Chrome" |
15 'branding_flag': ['-b', 'chromium',], | 15 'branding_flag': ['-b', 'chromium',], |
16 }], | 16 }], |
17 ['chromeos==1', { | 17 ['chromeos==1', { |
18 'chromeos_flag': ['--chromeos=1'], | 18 'chromeos_flag': ['--chromeos=1'], |
19 }, { | 19 }, { |
20 'chromeos_flag': ['--chromeos=0'], | 20 'chromeos_flag': ['--chromeos=0'], |
21 }], | 21 }], |
22 ], | 22 ], |
23 }, | 23 }, |
24 'inputs': [ | 24 'inputs': [ |
25 '<(repack_locales_path)', | 25 '<(repack_locales_path)', |
26 '<!@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) --use-athena <(use_athena) <(chromeos_flag) --enable-autofill-dialog <(ena
ble_autofill_dialog) --enable-extensions <(enable_extensions) <(pak_locales))' | 26 '<!@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) <(chromeos_flag) --enable-autofill-dialog <(enable_autofill_dialog) --enab
le-extensions <(enable_extensions) <(pak_locales))' |
27 ], | 27 ], |
28 'outputs': [ | 28 'outputs': [ |
29 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_
INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))' | 29 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_
INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))' |
30 ], | 30 ], |
31 'action': [ | 31 'action': [ |
32 'python', | 32 'python', |
33 '<(repack_locales_path)', | 33 '<(repack_locales_path)', |
34 '<@(branding_flag)', | 34 '<@(branding_flag)', |
35 '-p', '<(OS)', | 35 '-p', '<(OS)', |
36 '-g', '<(grit_out_dir)', | 36 '-g', '<(grit_out_dir)', |
37 '-s', '<(SHARED_INTERMEDIATE_DIR)', | 37 '-s', '<(SHARED_INTERMEDIATE_DIR)', |
38 '-x', '<(SHARED_INTERMEDIATE_DIR)/.', | 38 '-x', '<(SHARED_INTERMEDIATE_DIR)/.', |
39 '--use-ash=<(use_ash)', | 39 '--use-ash=<(use_ash)', |
40 '--use-athena=<(use_athena)', | |
41 '<@(chromeos_flag)', | 40 '<@(chromeos_flag)', |
42 '--enable-autofill-dialog=<(enable_autofill_dialog)', | 41 '--enable-autofill-dialog=<(enable_autofill_dialog)', |
43 '--enable-extensions=<(enable_extensions)', | 42 '--enable-extensions=<(enable_extensions)', |
44 '<@(repack_options)', | 43 '<@(repack_options)', |
45 '<@(pak_locales)', | 44 '<@(pak_locales)', |
46 ], | 45 ], |
47 } | 46 } |
OLD | NEW |