WebSocket header continuations test case.
[chromium-blink-merge.git] / components / data_reduction_proxy.gypi
blobe387910fc6f75d6c6377cd88278eccfdf957fd8f
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         'pref_registry',
87       ],
88       'include_dirs': [
89         '..',
90       ],
91       'sources': [
92         # Note: sources list duplicated in GN build.
93         "data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service.h",
94         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc',
95         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h',
96         'data_reduction_proxy/core/browser/data_reduction_proxy_config.cc',
97         'data_reduction_proxy/core/browser/data_reduction_proxy_config.h',
98         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc',
99         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h',
100         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc',
101         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h',
102         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc',
103         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h',
104         'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc',
105         'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h',
106         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc',
107         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h',
108         'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc',
109         'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h',
110         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc',
111         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h',
112         'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc',
113         'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h',
114         'data_reduction_proxy/core/browser/data_reduction_proxy_service.cc',
115         'data_reduction_proxy/core/browser/data_reduction_proxy_service.h',
116         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc',
117         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.h',
118         'data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc',
119         'data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h',
120         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc',
121         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h',
122         'data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc',
123         'data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h',
124       ],
125     },
126     {
127       # GN version: //components/data_reduction_proxy/core/common
128       'target_name': 'data_reduction_proxy_core_common',
129       'type': 'static_library',
130       'dependencies': [
131         '../base/base.gyp:base',
132         '../url/url.gyp:url_lib',
133       ],
134       'include_dirs': [
135         '..',
136       ],
137       'sources': [
138         # Note: sources list duplicated in GN build.
139         'data_reduction_proxy/core/common/data_reduction_proxy_bypass_type_list.h',
140         'data_reduction_proxy/core/common/data_reduction_proxy_config_values.h',
141         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc',
142         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.h',
143         'data_reduction_proxy/core/common/data_reduction_proxy_headers.cc',
144         'data_reduction_proxy/core/common/data_reduction_proxy_headers.h',
145         'data_reduction_proxy/core/common/data_reduction_proxy_params.cc',
146         'data_reduction_proxy/core/common/data_reduction_proxy_params.h',
147         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc',
148         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h',
149         'data_reduction_proxy/core/common/data_reduction_proxy_switches.cc',
150         'data_reduction_proxy/core/common/data_reduction_proxy_switches.h',
151       ],
152     },
153     {
154       # GN version: //components/data_reduction_proxy/core/browser:test_support
155       'target_name': 'data_reduction_proxy_test_support',
156       'type': 'static_library',
157       'dependencies' : [
158         '../base/base.gyp:base',
159         '../net/net.gyp:net',
160         '../net/net.gyp:net_test_support',
161         '../testing/gmock.gyp:gmock',
162         '../testing/gtest.gyp:gtest',
163         'data_reduction_proxy_content',
164         'data_reduction_proxy_core_browser',
165         'data_reduction_proxy_core_common',
166       ],
167       'include_dirs': [
168         '..',
169       ],
170       'sources': [
171         # Note: sources list duplicated in GN build.
172         'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc',
173         'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h',
174         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc',
175         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h',
176         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc',
177         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h',
178         'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc',
179         'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h',
180         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.cc',
181         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h',
182         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc',
183         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h',
184       ],
185       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
186       'msvs_disabled_warnings': [4267, ],
187     },
188     {
189       'target_name': 'data_reduction_proxy_version_header',
190       'type': 'none',
191       'direct_dependent_settings': {
192         'include_dirs': [
193           '<(SHARED_INTERMEDIATE_DIR)',
194         ],
195       },
196       'actions': [
197         {
198           'action_name': 'version_header',
199           'message': 'Generating version header file: <@(_outputs)',
200           'inputs': [
201             '<(version_path)',
202             'data_reduction_proxy/core/common/version.h.in',
203           ],
204           'outputs': [
205             '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/core/common/version.h',
206           ],
207           'action': [
208             'python',
209             '<(version_py_path)',
210             '-e', 'VERSION_FULL="<(version_full)"',
211             'data_reduction_proxy/core/common/version.h.in',
212             '<@(_outputs)',
213           ],
214           'includes': [
215             '../build/util/version.gypi',
216           ],
217         },
218       ],
219     },
220   ],