Fix initial focus finding, ignore div nodes, and resolve aria-label name calculation.
[chromium-blink-merge.git] / components / safe_json.gypi
blobbda849467add0eda279af8e6b9839d8dc8a94700
1 # Copyright 2015 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.
6   'targets': [
7     {
8       # GN version: //components/safe_json
9       'target_name': 'safe_json',
10       'type': 'static_library',
11       'dependencies': [
12         'safe_json_parser_message_filter',
13         '../base/base.gyp:base',
14         '../components/components_strings.gyp:components_strings',
15         '../content/content.gyp:content_browser',
16         '../content/content.gyp:content_common',
17         '../ui/base/ui_base.gyp:ui_base',
18       ],
19       'include_dirs': [
20         '..',
21       ],
22       'sources': [
23         'safe_json/android/component_jni_registrar.cc',
24         'safe_json/android/component_jni_registrar.h',
25         'safe_json/json_sanitizer.cc',
26         'safe_json/json_sanitizer.h',
27         'safe_json/json_sanitizer_android.cc',
28         'safe_json/safe_json_parser.cc',
29         'safe_json/safe_json_parser.h',
30         'safe_json/safe_json_parser_android.cc',
31         'safe_json/safe_json_parser_android.h',
32         'safe_json/safe_json_parser_impl.cc',
33         'safe_json/safe_json_parser_impl.h',
34       ],
35       'conditions': [
36         ['OS == "android"', {
37           'dependencies': [
38             'safe_json_jni_headers',
39           ],
40           'sources!': [
41             'safe_json/json_sanitizer.cc',
42             'safe_json/safe_json_parser_impl.cc',
43             'safe_json/safe_json_parser_impl.h',
44           ],
45         }],
46       ],
47     },
48     {
49       'target_name': 'safe_json_test_support',
50       'type': 'static_library',
51       'dependencies': [
52         '../base/base.gyp:base',
53         ':safe_json',
54       ],
55       'include_dirs': [
56         '..',
57       ],
58       'sources': [
59         'safe_json/testing_json_parser.cc',
60         'safe_json/testing_json_parser.h',
61       ],
62     },
63     {
64       'target_name': 'safe_json_parser_message_filter',
65       'type': 'static_library',
66       'dependencies': [
67         '../base/base.gyp:base',
68         '../content/content.gyp:content_utility',
69         '../ipc/ipc.gyp:ipc',
70       ],
71       'include_dirs': [
72         '..',
73       ],
74       'sources': [
75         'safe_json/safe_json_parser_message_filter.cc',
76         'safe_json/safe_json_parser_message_filter.h',
77         'safe_json/safe_json_parser_messages.cc',
78         'safe_json/safe_json_parser_messages.h',
79       ],
80     },
81   ],
82   'conditions': [
83     ['OS=="android"', {
84       'targets': [
85         {
86           # GN version: //components/safe_json/android:safe_json_java
87           'target_name': 'safe_json_java',
88           'type': 'none',
89           'dependencies': [
90             '../base/base.gyp:base',
91           ],
92           'variables': {
93             'java_in_dir': 'safe_json/android/java',
94           },
95           'includes': [ '../build/java.gypi' ],
96         },
97         {
98           # GN version: //components/safe_json:jni
99           'target_name': 'safe_json_jni_headers',
100           'type': 'none',
101           'sources': [
102             'safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java',
103           ],
104           'variables': {
105             'jni_gen_package': 'safe_json',
106           },
107           'includes': [ '../build/jni_generator.gypi' ],
108         },
109       ],
110     }],
111   ]