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 3 # found in the LICENSE file. 4 { 5 'action_name': 'repack_locales', 6 'variables': { 7 'conditions': [ 8 ['branding=="Chrome"', { 9 'branding_flag': ['-b', 'google_chrome',], 10 }, { # else: branding!="Chrome" 11 'branding_flag': ['-b', 'chromium',], 12 }], 13 ], 14 'repack_extra_flags%': [], 15 'repack_output_dir%': '<(SHARED_INTERMEDIATE_DIR)', 16 }, 17 'inputs': [ 18 'tools/build/repack_locales.py', 19 '<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(repack_output_dir) <(repack_extra_flags) <(locales))' 20 ], 21 'outputs': [ 22 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(repack_output_dir) <(locales))' 23 ], 24 'action': [ 25 '<@(repack_locales_cmd)', 26 '<@(branding_flag)', 27 '-p', '<(OS)', 28 '-g', '<(grit_out_dir)', 29 '-s', '<(SHARED_INTERMEDIATE_DIR)', 30 '-x', '<(repack_output_dir)/.', 31 '<@(repack_extra_flags)', 32 '<@(locales)', 33 ], 34 } 35