Check build status by parsing tryserver buildbot JSON.
[chromium-blink-merge.git] / build / java_strings_grd.gypi
blobff374e310062f0352fd76c164053e1339536d403
1 # Copyright 2014 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 # This file is meant to be included into a target to provide a rule
6 # to generate localized strings.xml from a grd file.
8 # To use this, create a gyp target with the following form:
9 # {
10 #   'target_name': 'my-package_strings_grd',
11 #   'type': 'none',
12 #   'variables': {
13 #     'grd_file': 'path/to/grd/file',
14 #   },
15 #   'includes': ['path/to/this/gypi/file'],
16 # }
18 # Required variables:
19 #  grd_file - The path to the grd file to use.
21   'variables': {
22     'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)',
23     'res_grit_dir': '<(intermediate_dir)/res_grit',
24     'grit_grd_file': '<(grd_file)',
25     'resource_input_paths': [
26       '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(res_grit_dir)" <(grd_file))'
27     ],
28   },
29   'all_dependent_settings': {
30     'variables': {
31       'additional_res_dirs': ['<@(res_grit_dir)'],
32       'dependencies_res_files': ['<@(resource_input_paths)'],
33       'dependencies_res_input_dirs': ['<@(res_grit_dir)'],
34     },
35   },
36   'actions': [
37     {
38       'action_name': 'generate_localized_strings_xml',
39       'variables': {
40         'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=false'],
41         'grit_out_dir': '<(res_grit_dir)',
42         # resource_ids is unneeded since we don't generate .h headers.
43         'grit_resource_ids': '',
44       },
45       'includes': ['../build/grit_action.gypi'],
46     },
47   ],