| 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 'branding_flag': ['-b', '<(branding_path_component)',], | 11 'branding_flag': ['-b', '<(branding_path_component)',], |
| 12 'conditions': [ | 12 'conditions': [ |
| 13 ['chromeos==1', { | 13 ['chromeos==1', { |
| 14 'chromeos_flag': ['--chromeos=1'], | 14 'chromeos_flag': ['--chromeos=1'], |
| 15 }, { | 15 }, { |
| 16 'chromeos_flag': ['--chromeos=0'], | 16 'chromeos_flag': ['--chromeos=0'], |
| 17 }], | 17 }], |
| 18 ], | 18 ], |
| 19 'repack_extra_flags%': [], | 19 'repack_extra_flags%': [], |
| 20 'repack_shared_dir%': '<(SHARED_INTERMEDIATE_DIR)', | 20 'repack_shared_dir%': '<(SHARED_INTERMEDIATE_DIR)', |
| 21 'repack_output_dir%': '<(SHARED_INTERMEDIATE_DIR)', | 21 'repack_output_dir%': '<(SHARED_INTERMEDIATE_DIR)', |
| 22 }, | 22 }, |
| 23 'inputs': [ | 23 'inputs': [ |
| 24 '<(repack_locales_path)', | 24 '<(repack_locales_path)', |
| 25 '<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_
dir) -s <(repack_shared_dir) -x <(repack_output_dir) --use-ash <(use_ash) <(repa
ck_extra_flags) <(chromeos_flag) --enable-autofill-dialog <(enable_autofill_dial
og) --enable-extensions <(enable_extensions) <(pak_locales))' | 25 '<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_
dir) -s <(repack_shared_dir) -x <(repack_output_dir) --use-ash <(use_ash) <(repa
ck_extra_flags) <(chromeos_flag) --enable-extensions <(enable_extensions) <(pak_
locales))' |
| 26 ], | 26 ], |
| 27 'outputs': [ | 27 'outputs': [ |
| 28 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(repack_
shared_dir) -x <(repack_output_dir) <(pak_locales))' | 28 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(repack_
shared_dir) -x <(repack_output_dir) <(pak_locales))' |
| 29 ], | 29 ], |
| 30 'action': [ | 30 'action': [ |
| 31 'python', | 31 'python', |
| 32 '<(repack_locales_path)', | 32 '<(repack_locales_path)', |
| 33 '<@(branding_flag)', | 33 '<@(branding_flag)', |
| 34 '-p', '<(OS)', | 34 '-p', '<(OS)', |
| 35 '-g', '<(grit_out_dir)', | 35 '-g', '<(grit_out_dir)', |
| 36 '-s<(repack_shared_dir)', | 36 '-s<(repack_shared_dir)', |
| 37 '-x<(repack_output_dir)/.', | 37 '-x<(repack_output_dir)/.', |
| 38 '--use-ash=<(use_ash)', | 38 '--use-ash=<(use_ash)', |
| 39 '<@(repack_extra_flags)', | 39 '<@(repack_extra_flags)', |
| 40 '<@(chromeos_flag)', | 40 '<@(chromeos_flag)', |
| 41 '--enable-autofill-dialog=<(enable_autofill_dialog)', | |
| 42 '--enable-extensions=<(enable_extensions)', | 41 '--enable-extensions=<(enable_extensions)', |
| 43 '<@(repack_options)', | 42 '<@(repack_options)', |
| 44 '<@(pak_locales)', | 43 '<@(pak_locales)', |
| 45 ], | 44 ], |
| 46 } | 45 } |
| OLD | NEW |