| 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 |
| 5 # To use this the following variables need to be defined: |
| 6 # pak_locales: string: the list of all the locales that need repacking |
| 4 { | 7 { |
| 5 'action_name': 'repack_locales', | |
| 6 'variables': { | 8 'variables': { |
| 9 'repack_locales_path': 'tools/build/repack_locales.py', |
| 7 'conditions': [ | 10 'conditions': [ |
| 8 ['branding=="Chrome"', { | 11 ['branding=="Chrome"', { |
| 9 'branding_flag': ['-b', 'google_chrome',], | 12 'branding_flag': ['-b', 'google_chrome',], |
| 10 }, { # else: branding!="Chrome" | 13 }, { # else: branding!="Chrome" |
| 11 'branding_flag': ['-b', 'chromium',], | 14 'branding_flag': ['-b', 'chromium',], |
| 12 }], | 15 }], |
| 13 ], | 16 ], |
| 14 'repack_extra_flags%': [], | |
| 15 'repack_output_dir%': '<(SHARED_INTERMEDIATE_DIR)', | |
| 16 }, | 17 }, |
| 17 'inputs': [ | 18 'inputs': [ |
| 18 'tools/build/repack_locales.py', | 19 '<(repack_locales_path)', |
| 19 '<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_
dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(repack_output_dir) --use-ash <(use_ash)
<(repack_extra_flags) <(locales))' | 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))' |
| 20 ], | 21 ], |
| 21 'outputs': [ | 22 'outputs': [ |
| 22 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_
INTERMEDIATE_DIR) -x <(repack_output_dir) <(locales))' | 23 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_
INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))' |
| 23 ], | 24 ], |
| 24 'action': [ | 25 'action': [ |
| 25 '<@(repack_locales_cmd)', | 26 'python', |
| 27 '<(repack_locales_path)', |
| 26 '<@(branding_flag)', | 28 '<@(branding_flag)', |
| 27 '-p', '<(OS)', | 29 '-p', '<(OS)', |
| 28 '-g', '<(grit_out_dir)', | 30 '-g', '<(grit_out_dir)', |
| 29 '-s', '<(SHARED_INTERMEDIATE_DIR)', | 31 '-s', '<(SHARED_INTERMEDIATE_DIR)', |
| 30 '-x', '<(repack_output_dir)/.', | 32 '-x', '<(SHARED_INTERMEDIATE_DIR)/.', |
| 31 '--use-ash', '<(use_ash)', | 33 '--use-ash', '<(use_ash)', |
| 32 '<@(repack_extra_flags)', | 34 '<@(pak_locales)', |
| 33 '<@(locales)', | |
| 34 ], | 35 ], |
| 35 } | 36 } |
| OLD | NEW |