Apply automatic range checks to content enum types across IPC.
[chromium-blink-merge.git] / chrome / chrome_repack_locales.gypi
blobb7096c2c48aeda7c001a360712a5448e0e0bae54
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.
5 # To use this the following variables need to be defined:
6 #   pak_locales: string: the list of all the locales that need repacking
8   'variables': {
9     'repack_locales_path': 'tools/build/repack_locales.py',
10     'repack_options%': [],
11     'conditions': [
12       ['branding=="Chrome"', {
13         'branding_flag': ['-b', 'google_chrome',],
14       }, {  # else: branding!="Chrome"
15         'branding_flag': ['-b', 'chromium',],
16       }],
17       ['chromeos==1', {
18         'chromeos_flag': ['--chromeos=1'],
19       }, {
20         'chromeos_flag': ['--chromeos=0'],
21       }],
22     ],
23     'repack_extra_flags%': [],
24     'repack_shared_dir%': '<(SHARED_INTERMEDIATE_DIR)',
25     'repack_output_dir%': '<(SHARED_INTERMEDIATE_DIR)',
26   },
27   'inputs': [
28     '<(repack_locales_path)',
29     '<!@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) <(repack_extra_flags) <(chromeos_flag) --enable-autofill-dialog <(enable_autofill_dialog) --enable-extensions <(enable_extensions) <(pak_locales))'
30   ],
31   'outputs': [
32     '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(repack_shared_dir) -x <(repack_output_dir) <(pak_locales))'
33   ],
34   'action': [
35     'python',
36     '<(repack_locales_path)',
37     '<@(branding_flag)',
38     '-p', '<(OS)',
39     '-g', '<(grit_out_dir)',
40     '-s<(repack_shared_dir)',
41     '-x<(repack_output_dir)/.',
42     '--use-ash=<(use_ash)',
43     '<@(repack_extra_flags)',
44     '<@(chromeos_flag)',
45     '--enable-autofill-dialog=<(enable_autofill_dialog)',
46     '--enable-extensions=<(enable_extensions)',
47     '<@(repack_options)',
48     '<@(pak_locales)',
49   ],