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.
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',
48 'data_reduction_proxy_core_browser_deps' : [
49 'data_reduction_proxy_version_header',
50 '../base/base.gyp:base',
51 '../crypto/crypto.gyp:crypto',
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',
77 # Small versions of libraries for Cronet.
81 # GN version: //components/data_reduction_proxy/core/browser
82 'target_name': 'data_reduction_proxy_core_browser_small',
83 'type': 'static_library',
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',
95 '<@(data_reduction_proxy_core_browser_sources)'
99 # GN version: //components/data_reduction_proxy/core/common
100 'target_name': 'data_reduction_proxy_core_common_small',
101 'type': 'static_library',
103 '../base/base.gyp:base',
104 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
105 'data_reduction_proxy_proto',
111 '<@(data_reduction_proxy_core_common_sources)'
118 # GN Version: //components/data_reduction_proxy/content
119 'target_name': 'data_reduction_proxy_content',
120 'type': 'static_library',
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',
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',
145 # GN version: //components/data_reduction_proxy/content/common
146 'target_name': 'data_reduction_proxy_content_common',
147 'type': 'static_library',
149 '../content/content.gyp:content_common',
150 '../ipc/ipc.gyp:ipc',
156 'data_reduction_proxy/content/common/data_reduction_proxy_messages.cc',
157 'data_reduction_proxy/content/common/data_reduction_proxy_messages.h',
161 # GN version: //components/data_reduction_proxy/content/browser
162 'target_name': 'data_reduction_proxy_content_browser',
163 'type': 'static_library',
165 '../content/content.gyp:content_common',
166 '../ipc/ipc.gyp:ipc',
167 'data_reduction_proxy_content_common',
173 'data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc',
174 'data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h',
178 # GN version: //components/data_reduction_proxy/core/browser
179 'target_name': 'data_reduction_proxy_core_browser',
180 'type': 'static_library',
182 ['OS != "android" and OS != "ios"', {
184 '../google_apis/google_apis.gyp:google_apis',
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',
199 '<@(data_reduction_proxy_core_browser_sources)'
203 # GN version: //components/data_reduction_proxy/core/common
204 'target_name': 'data_reduction_proxy_core_common',
205 'type': 'static_library',
207 '../base/base.gyp:base',
208 '../url/url.gyp:url_lib',
209 'data_reduction_proxy_proto',
215 '<@(data_reduction_proxy_core_common_sources)'
219 # GN version: //components/data_reduction_proxy/core/browser:test_support
220 'target_name': 'data_reduction_proxy_test_support',
221 'type': 'static_library',
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',
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',
252 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
253 'msvs_disabled_warnings': [4267, ],
256 # GN version: //components/data_reduction_proxy/proto
257 'target_name': 'data_reduction_proxy_proto',
258 'type': 'static_library',
264 # Note: sources list duplicated in GN build.
265 'data_reduction_proxy/proto/client_config.proto',
268 'proto_in_dir': 'data_reduction_proxy/proto',
269 'proto_out_dir': 'components/data_reduction_proxy/proto',
271 'includes': [ '../build/protoc.gypi' ],
274 'target_name': 'data_reduction_proxy_version_header',
276 'direct_dependent_settings': {
278 '<(SHARED_INTERMEDIATE_DIR)',
283 'action_name': 'version_header',
284 'message': 'Generating version header file: <@(_outputs)',
287 'data_reduction_proxy/core/common/version.h.in',
290 '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/core/common/version.h',
294 '<(version_py_path)',
295 '-e', 'VERSION_FULL="<(version_full)"',
296 'data_reduction_proxy/core/common/version.h.in',
300 '../build/util/version.gypi',