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_retrieval_params.cc',
21 'data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.h',
22 'data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc',
23 'data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h',
24 'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc',
25 'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h',
26 'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc',
27 'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h',
28 'data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc',
29 'data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.h',
30 'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc',
31 'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h',
32 'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc',
33 'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h',
34 'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc',
35 'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h',
36 'data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc',
37 'data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.h',
38 'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc',
39 'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h',
40 'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc',
41 'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h',
42 'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc',
43 'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h',
44 'data_reduction_proxy/core/browser/data_reduction_proxy_service.cc',
45 'data_reduction_proxy/core/browser/data_reduction_proxy_service.h',
46 'data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h',
47 'data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc',
48 'data_reduction_proxy/core/browser/data_reduction_proxy_settings.h',
49 'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc',
50 'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h',
51 'data_reduction_proxy/core/browser/data_store.cc',
52 'data_reduction_proxy/core/browser/data_store.h',
53 'data_reduction_proxy/core/browser/data_usage_store.cc',
54 'data_reduction_proxy/core/browser/data_usage_store.h',
55 'data_reduction_proxy/core/browser/db_data_owner.cc',
56 'data_reduction_proxy/core/browser/db_data_owner.h',
58 'data_reduction_proxy_core_browser_deps' : [
59 'data_reduction_proxy_version_header',
60 '../base/base.gyp:base',
61 '../crypto/crypto.gyp:crypto',
64 'data_reduction_proxy_core_common_sources' : [
65 # Note: sources list duplicated in GN build.
66 'data_reduction_proxy/core/common/data_reduction_proxy_bypass_action_list.h',
67 'data_reduction_proxy/core/common/data_reduction_proxy_bypass_type_list.h',
68 'data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.cc',
69 'data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.h',
70 'data_reduction_proxy/core/common/data_reduction_proxy_config_values.h',
71 'data_reduction_proxy/core/common/data_reduction_proxy_event_creator.cc',
72 'data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h',
73 'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h',
74 'data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc',
75 'data_reduction_proxy/core/common/data_reduction_proxy_event_store.h',
76 'data_reduction_proxy/core/common/data_reduction_proxy_headers.cc',
77 'data_reduction_proxy/core/common/data_reduction_proxy_headers.h',
78 'data_reduction_proxy/core/common/data_reduction_proxy_params.cc',
79 'data_reduction_proxy/core/common/data_reduction_proxy_params.h',
80 'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc',
81 'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h',
82 'data_reduction_proxy/core/common/data_reduction_proxy_switches.cc',
83 'data_reduction_proxy/core/common/data_reduction_proxy_switches.h',
87 # Small versions of libraries for Cronet.
91 # GN version: //components/data_reduction_proxy/core/browser
92 'target_name': 'data_reduction_proxy_core_browser_small',
93 'type': 'static_library',
95 '<@(data_reduction_proxy_core_browser_deps)',
96 '../net/net.gyp:net_small',
97 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
98 'data_reduction_proxy_core_common_small',
99 'data_reduction_proxy_proto',
105 '<@(data_reduction_proxy_core_browser_sources)'
109 # GN version: //components/data_reduction_proxy/core/common
110 'target_name': 'data_reduction_proxy_core_common_small',
111 'type': 'static_library',
113 '../base/base.gyp:base',
114 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
115 'data_reduction_proxy_proto',
121 '<@(data_reduction_proxy_core_common_sources)'
128 # GN Version: //components/data_reduction_proxy/content
129 'target_name': 'data_reduction_proxy_content',
130 'type': 'static_library',
132 '../base/base.gyp:base',
133 '../content/content.gyp:content_browser',
134 '../skia/skia.gyp:skia',
135 '../ui/base/ui_base.gyp:ui_base',
136 'components_resources.gyp:components_resources',
137 'components_strings.gyp:components_strings',
143 # Note: sources list duplicated in GN build.
144 'data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc',
145 'data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h',
146 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.cc',
147 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.h',
148 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc',
149 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h',
150 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.cc',
151 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.h',
155 # GN version: //components/data_reduction_proxy/content/common
156 'target_name': 'data_reduction_proxy_content_common',
157 'type': 'static_library',
159 '../content/content.gyp:content_common',
160 '../ipc/ipc.gyp:ipc',
166 'data_reduction_proxy/content/common/data_reduction_proxy_messages.cc',
167 'data_reduction_proxy/content/common/data_reduction_proxy_messages.h',
171 # GN version: //components/data_reduction_proxy/content/browser
172 'target_name': 'data_reduction_proxy_content_browser',
173 'type': 'static_library',
175 '../content/content.gyp:content_common',
176 '../ipc/ipc.gyp:ipc',
177 'data_reduction_proxy_content_common',
183 'data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc',
184 'data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h',
188 # GN version: //components/data_reduction_proxy/core/browser
189 'target_name': 'data_reduction_proxy_core_browser',
190 'type': 'static_library',
194 'USE_GOOGLE_API_KEYS_FOR_AUTH_KEY'
199 'USE_GOOGLE_API_KEYS'
202 '<@(data_reduction_proxy_core_browser_deps)',
203 '../google_apis/google_apis.gyp:google_apis',
204 '../net/net.gyp:net',
205 '../url/url.gyp:url_lib',
206 'data_reduction_proxy_core_common',
207 'data_reduction_proxy_proto',
208 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
210 'export_dependent_settings': [
211 'data_reduction_proxy_proto',
217 '<@(data_reduction_proxy_core_browser_sources)',
218 'data_reduction_proxy/core/browser/data_store_impl.cc',
219 'data_reduction_proxy/core/browser/data_store_impl.h',
223 # GN version: //components/data_reduction_proxy/core/common
224 'target_name': 'data_reduction_proxy_core_common',
225 'type': 'static_library',
227 '../base/base.gyp:base',
228 '../url/url.gyp:url_lib',
229 'data_reduction_proxy_proto',
235 '<@(data_reduction_proxy_core_common_sources)'
239 # GN version: //components/data_reduction_proxy/core/browser:test_support
240 'target_name': 'data_reduction_proxy_test_support',
241 'type': 'static_library',
243 '../base/base.gyp:base',
244 '../net/net.gyp:net',
245 '../net/net.gyp:net_test_support',
246 '../testing/gmock.gyp:gmock',
247 '../testing/gtest.gyp:gtest',
248 'data_reduction_proxy_content',
249 'data_reduction_proxy_core_browser',
250 'data_reduction_proxy_core_common',
251 'data_reduction_proxy_proto',
257 # Note: sources list duplicated in GN build.
258 'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc',
259 'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h',
260 'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc',
261 'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h',
262 'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc',
263 'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h',
264 'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc',
265 'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h',
266 'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.cc',
267 'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h',
268 'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.cc',
269 'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h',
270 'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc',
271 'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h',
273 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
274 'msvs_disabled_warnings': [4267, ],
277 # GN version: //components/data_reduction_proxy/proto
278 'target_name': 'data_reduction_proxy_proto',
279 'type': 'static_library',
285 # Note: sources list duplicated in GN build.
286 'data_reduction_proxy/proto/client_config.proto',
287 'data_reduction_proxy/proto/data_store.proto',
290 'proto_in_dir': 'data_reduction_proxy/proto',
291 'proto_out_dir': 'components/data_reduction_proxy/proto',
293 'includes': [ '../build/protoc.gypi' ],
296 'target_name': 'data_reduction_proxy_version_header',
298 'direct_dependent_settings': {
300 '<(SHARED_INTERMEDIATE_DIR)',
305 'action_name': 'version_header',
306 'message': 'Generating version header file: <@(_outputs)',
309 'data_reduction_proxy/core/common/version.h.in',
312 '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/core/common/version.h',
316 '<(version_py_path)',
317 '-e', 'VERSION_FULL="<(version_full)"',
318 'data_reduction_proxy/core/common/version.h.in',
322 '../build/util/version.gypi',