Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / components / safe_json.gypi
blob11ab7889f88df95719e79d2e7a3f389b5d0c52af
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_common',
69         '../content/content.gyp:content_utility',
70         '../ipc/ipc.gyp:ipc',
71       ],
72       'include_dirs': [
73         '..',
74       ],
75       'sources': [
76         'safe_json/safe_json_parser_message_filter.cc',
77         'safe_json/safe_json_parser_message_filter.h',
78         'safe_json/safe_json_parser_messages.cc',
79         'safe_json/safe_json_parser_messages.h',
80       ],
81     },
82   ],
83   'conditions': [
84     ['OS=="android"', {
85       'targets': [
86         {
87           # GN version: //components/safe_json/android:safe_json_java
88           'target_name': 'safe_json_java',
89           'type': 'none',
90           'dependencies': [
91             '../base/base.gyp:base',
92           ],
93           'variables': {
94             'java_in_dir': 'safe_json/android/java',
95           },
96           'includes': [ '../build/java.gypi' ],
97         },
98         {
99           # GN version: //components/safe_json:jni
100           'target_name': 'safe_json_jni_headers',
101           'type': 'none',
102           'sources': [
103             'safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java',
104           ],
105           'variables': {
106             'jni_gen_package': 'safe_json',
107           },
108           'includes': [ '../build/jni_generator.gypi' ],
109         },
110       ],
111     }],
112   ]