Linux: Correct the path to gnome-default-applications.xml.
[chromium-blink-merge.git] / components / data_reduction_proxy.gypi
blob1a8bf6dc1dbfe0f7717021a55f3269796a42efc3
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.
7   'targets': [
8    {
9       # GN Version: //components/data_reduction_proxy/content
10       'target_name': 'data_reduction_proxy_content',
11       'type': 'static_library',
12       'dependencies': [
13         '../base/base.gyp:base',
14         '../content/content.gyp:content_browser',
15         '../skia/skia.gyp:skia',
16         '../ui/base/ui_base.gyp:ui_base',
17         'components_resources.gyp:components_resources',
18         'components_strings.gyp:components_strings',
19       ],
20       'include_dirs': [
21         '..',
22       ],
23       'sources': [
24         # Note: sources list duplicated in GN build.
25         'data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc',
26         'data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h',
27         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.cc',
28         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.h',
29         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc',
30         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h',
31         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.cc',
32         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.h',
33       ],
34     },
35     {
36       # GN version: //components/data_reduction_proxy/content/common
37       'target_name': 'data_reduction_proxy_content_common',
38       'type': 'static_library',
39       'dependencies': [
40         '../content/content.gyp:content_common',
41         '../ipc/ipc.gyp:ipc',
42       ],
43       'include_dirs': [
44         '..',
45       ],
46       'sources': [
47         'data_reduction_proxy/content/common/data_reduction_proxy_messages.cc',
48         'data_reduction_proxy/content/common/data_reduction_proxy_messages.h',
49       ],
50     },
51     {
52       # GN version: //components/data_reduction_proxy/content/browser
53       'target_name': 'data_reduction_proxy_content_browser',
54       'type': 'static_library',
55       'dependencies': [
56         '../content/content.gyp:content_common',
57         '../ipc/ipc.gyp:ipc',
58         'data_reduction_proxy_content_common',
59       ],
60       'include_dirs': [
61         '..',
62       ],
63       'sources': [
64         'data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc',
65         'data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h',
66       ],
67     },
68     {
69       # GN version: //components/data_reduction_proxy/core/browser
70       'target_name': 'data_reduction_proxy_core_browser',
71       'type': 'static_library',
72       'conditions': [
73         ['OS != "android" and OS != "ios"', {
74           'dependencies' : [
75             '../google_apis/google_apis.gyp:google_apis',
76           ]
77         }],
78       ],
79       'dependencies': [
80         'data_reduction_proxy_version_header',
81         '../base/base.gyp:base',
82         '../crypto/crypto.gyp:crypto',
83         '../net/net.gyp:net',
84         '../url/url.gyp:url_lib',
85         'data_reduction_proxy_core_common',
86         'data_reduction_proxy_proto',
87         'pref_registry',
88       ],
89       'include_dirs': [
90         '..',
91       ],
92       'sources': [
93         # Note: sources list duplicated in GN build.
94         "data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service.h",
95         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc',
96         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h',
97         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc',
98         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h',
99         'data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc',
100         'data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h',
101         'data_reduction_proxy/core/browser/data_reduction_proxy_config.cc',
102         'data_reduction_proxy/core/browser/data_reduction_proxy_config.h',
103         'data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc',
104         'data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h',
105         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc',
106         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h',
107         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc',
108         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h',
109         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc',
110         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h',
111         'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc',
112         'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h',
113         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc',
114         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h',
115         'data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc',
116         'data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.h',
117         'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc',
118         'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h',
119         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc',
120         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h',
121         'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc',
122         'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h',
123         'data_reduction_proxy/core/browser/data_reduction_proxy_service.cc',
124         'data_reduction_proxy/core/browser/data_reduction_proxy_service.h',
125         'data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h',
126         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc',
127         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.h',
128         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc',
129         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h',
130       ],
131     },
132     {
133       # GN version: //components/data_reduction_proxy/core/common
134       'target_name': 'data_reduction_proxy_core_common',
135       'type': 'static_library',
136       'dependencies': [
137         '../base/base.gyp:base',
138         '../url/url.gyp:url_lib',
139         'data_reduction_proxy_proto',
140       ],
141       'include_dirs': [
142         '..',
143       ],
144       'sources': [
145         # Note: sources list duplicated in GN build.
146         'data_reduction_proxy/core/common/data_reduction_proxy_bypass_type_list.h',
147         'data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.cc',
148         'data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.h',
149         'data_reduction_proxy/core/common/data_reduction_proxy_config_values.h',
150         'data_reduction_proxy/core/common/data_reduction_proxy_event_creator.cc',
151         'data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h',
152         'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h',
153         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc',
154         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.h',
155         'data_reduction_proxy/core/common/data_reduction_proxy_headers.cc',
156         'data_reduction_proxy/core/common/data_reduction_proxy_headers.h',
157         'data_reduction_proxy/core/common/data_reduction_proxy_params.cc',
158         'data_reduction_proxy/core/common/data_reduction_proxy_params.h',
159         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc',
160         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h',
161         'data_reduction_proxy/core/common/data_reduction_proxy_switches.cc',
162         'data_reduction_proxy/core/common/data_reduction_proxy_switches.h',
163       ],
164     },
165     {
166       # GN version: //components/data_reduction_proxy/core/browser:test_support
167       'target_name': 'data_reduction_proxy_test_support',
168       'type': 'static_library',
169       'dependencies' : [
170         '../base/base.gyp:base',
171         '../net/net.gyp:net',
172         '../net/net.gyp:net_test_support',
173         '../testing/gmock.gyp:gmock',
174         '../testing/gtest.gyp:gtest',
175         'data_reduction_proxy_content',
176         'data_reduction_proxy_core_browser',
177         'data_reduction_proxy_core_common',
178       ],
179       'include_dirs': [
180         '..',
181       ],
182       'sources': [
183         # Note: sources list duplicated in GN build.
184         'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc',
185         'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h',
186         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc',
187         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h',
188         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc',
189         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h',
190         'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc',
191         'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h',
192         'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.cc',
193         'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h',
194         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.cc',
195         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h',
196         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc',
197         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h',
198       ],
199       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
200       'msvs_disabled_warnings': [4267, ],
201     },
202     {
203       # GN version: //components/data_reduction_proxy/proto
204       'target_name': 'data_reduction_proxy_proto',
205       'type': 'static_library',
206       'dependencies': [
207       ],
208       'include_dirs': [
209       ],
210       'sources': [
211         # Note: sources list duplicated in GN build.
212         'data_reduction_proxy/proto/client_config.proto',
213       ],
214       'variables': {
215         'proto_in_dir': 'data_reduction_proxy/proto',
216         'proto_out_dir': 'components/data_reduction_proxy/proto',
217       },
218       'includes': [ '../build/protoc.gypi' ],
219     },
220     {
221       'target_name': 'data_reduction_proxy_version_header',
222       'type': 'none',
223       'direct_dependent_settings': {
224         'include_dirs': [
225           '<(SHARED_INTERMEDIATE_DIR)',
226         ],
227       },
228       'actions': [
229         {
230           'action_name': 'version_header',
231           'message': 'Generating version header file: <@(_outputs)',
232           'inputs': [
233             '<(version_path)',
234             'data_reduction_proxy/core/common/version.h.in',
235           ],
236           'outputs': [
237             '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/core/common/version.h',
238           ],
239           'action': [
240             'python',
241             '<(version_py_path)',
242             '-e', 'VERSION_FULL="<(version_full)"',
243             'data_reduction_proxy/core/common/version.h.in',
244             '<@(_outputs)',
245           ],
246           'includes': [
247             '../build/util/version.gypi',
248           ],
249         },
250       ],
251     },
252   ],