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