OLD | NEW |
| (Empty) |
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. | |
4 | |
5 | |
6 { | |
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_bypass_protocol.
cc', | |
12 'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.
h', | |
13 'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc'
, | |
14 'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h', | |
15 'data_reduction_proxy/core/browser/data_reduction_proxy_compression_stat
s.cc', | |
16 'data_reduction_proxy/core/browser/data_reduction_proxy_compression_stat
s.h', | |
17 'data_reduction_proxy/core/browser/data_reduction_proxy_config.cc', | |
18 'data_reduction_proxy/core/browser/data_reduction_proxy_config.h', | |
19 'data_reduction_proxy/core/browser/data_reduction_proxy_config_service_c
lient.cc', | |
20 'data_reduction_proxy/core/browser/data_reduction_proxy_config_service_c
lient.h', | |
21 'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc'
, | |
22 'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h', | |
23 'data_reduction_proxy/core/browser/data_reduction_proxy_data.cc', | |
24 'data_reduction_proxy/core/browser/data_reduction_proxy_data.h', | |
25 'data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service
.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_interceptor.cc', | |
29 'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h', | |
30 'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc', | |
31 'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h', | |
32 'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc', | |
33 'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h', | |
34 'data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_v
alues.cc', | |
35 'data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_v
alues.h', | |
36 'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate
.cc', | |
37 'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate
.h', | |
38 'data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.
cc', | |
39 'data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.
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_use_group.h', | |
54 'data_reduction_proxy/core/browser/data_use_group_provider.h', | |
55 'data_reduction_proxy/core/browser/data_usage_store.cc', | |
56 'data_reduction_proxy/core/browser/data_usage_store.h', | |
57 'data_reduction_proxy/core/browser/db_data_owner.cc', | |
58 'data_reduction_proxy/core/browser/db_data_owner.h', | |
59 ], | |
60 'data_reduction_proxy_core_browser_deps' : [ | |
61 'data_reduction_proxy_version_header', | |
62 '../base/base.gyp:base', | |
63 '../crypto/crypto.gyp:crypto', | |
64 'pref_registry', | |
65 ], | |
66 'data_reduction_proxy_core_common_sources' : [ | |
67 # Note: sources list duplicated in GN build. | |
68 'data_reduction_proxy/core/common/data_reduction_proxy_bypass_action_lis
t.h', | |
69 'data_reduction_proxy/core/common/data_reduction_proxy_bypass_type_list.
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_del
egate.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_page_load_timing.
cc', | |
79 'data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.
h', | |
80 'data_reduction_proxy/core/common/data_reduction_proxy_params.cc', | |
81 'data_reduction_proxy/core/common/data_reduction_proxy_params.h', | |
82 'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc', | |
83 'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h', | |
84 'data_reduction_proxy/core/common/data_reduction_proxy_switches.cc', | |
85 'data_reduction_proxy/core/common/data_reduction_proxy_switches.h', | |
86 'data_reduction_proxy/core/common/data_reduction_proxy_util.cc', | |
87 'data_reduction_proxy/core/common/data_reduction_proxy_util.h', | |
88 'data_reduction_proxy/core/common/lofi_decider.h', | |
89 'data_reduction_proxy/core/common/lofi_ui_service.h', | |
90 ], | |
91 }, | |
92 'conditions': [ | |
93 # Small versions of libraries for Cronet. | |
94 ['OS=="android"', { | |
95 'targets' : [ | |
96 { | |
97 # GN version: //components/data_reduction_proxy/core/browser:browser_
small | |
98 'target_name': 'data_reduction_proxy_core_browser_small', | |
99 'type': 'static_library', | |
100 'dependencies': [ | |
101 '<@(data_reduction_proxy_core_browser_deps)', | |
102 '../net/net.gyp:net', | |
103 '../url/url.gyp:url_lib', | |
104 'data_reduction_proxy_core_common', | |
105 'data_reduction_proxy_proto', | |
106 ], | |
107 'include_dirs': [ | |
108 '..', | |
109 ], | |
110 'sources': [ | |
111 '<@(data_reduction_proxy_core_browser_sources)' | |
112 ], | |
113 }, | |
114 ], | |
115 }], | |
116 ['OS!="ios"', { | |
117 'targets' : [ | |
118 { | |
119 # GN version: //components/data_reduction_proxy/content/common | |
120 'target_name': 'data_reduction_proxy_content_common', | |
121 'type': 'static_library', | |
122 'dependencies': [ | |
123 '../content/content.gyp:content_common', | |
124 '../ipc/ipc.gyp:ipc', | |
125 ], | |
126 'include_dirs': [ | |
127 '..', | |
128 ], | |
129 'sources': [ | |
130 'data_reduction_proxy/content/common/data_reduction_proxy_messages.c
c', | |
131 'data_reduction_proxy/content/common/data_reduction_proxy_messages.h
', | |
132 ], | |
133 }, | |
134 { | |
135 # GN version: //components/data_reduction_proxy/content/browser | |
136 'target_name': 'data_reduction_proxy_content_browser', | |
137 'type': 'static_library', | |
138 'dependencies': [ | |
139 '../content/content.gyp:content_common', | |
140 '../ipc/ipc.gyp:ipc', | |
141 '../skia/skia.gyp:skia', | |
142 'data_reduction_proxy_content_common', | |
143 ], | |
144 'include_dirs': [ | |
145 '..', | |
146 ], | |
147 'sources': [ | |
148 'data_reduction_proxy/content/browser/content_lofi_ui_service.cc', | |
149 'data_reduction_proxy/content/browser/content_lofi_ui_service.h', | |
150 'data_reduction_proxy/content/browser/content_lofi_decider.cc', | |
151 'data_reduction_proxy/content/browser/content_lofi_decider.h', | |
152 'data_reduction_proxy/content/browser/data_reduction_proxy_message_f
ilter.cc', | |
153 'data_reduction_proxy/content/browser/data_reduction_proxy_message_f
ilter.h', | |
154 ], | |
155 }, | |
156 ], | |
157 }], | |
158 ], | |
159 'targets': [ | |
160 { | |
161 # GN version: //components/data_reduction_proxy/core/browser | |
162 'target_name': 'data_reduction_proxy_core_browser', | |
163 'type': 'static_library', | |
164 'conditions': [ | |
165 ['OS != "ios"', { | |
166 'defines': [ | |
167 'USE_GOOGLE_API_KEYS_FOR_AUTH_KEY' | |
168 ] | |
169 }], | |
170 ], | |
171 'defines': [ | |
172 'USE_GOOGLE_API_KEYS' | |
173 ], | |
174 'dependencies': [ | |
175 '<@(data_reduction_proxy_core_browser_deps)', | |
176 '../google_apis/google_apis.gyp:google_apis', | |
177 '../net/net.gyp:net', | |
178 '../url/url.gyp:url_lib', | |
179 'data_reduction_proxy_core_common', | |
180 'data_reduction_proxy_proto', | |
181 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | |
182 ], | |
183 'export_dependent_settings': [ | |
184 'data_reduction_proxy_proto', | |
185 ], | |
186 'include_dirs': [ | |
187 '..', | |
188 ], | |
189 'sources': [ | |
190 '<@(data_reduction_proxy_core_browser_sources)', | |
191 'data_reduction_proxy/core/browser/data_store_impl.cc', | |
192 'data_reduction_proxy/core/browser/data_store_impl.h', | |
193 ], | |
194 }, | |
195 { | |
196 # GN version: //components/data_reduction_proxy/core/common | |
197 'target_name': 'data_reduction_proxy_core_common', | |
198 'type': 'static_library', | |
199 'defines': [ | |
200 'USE_GOOGLE_API_KEYS' | |
201 ], | |
202 'dependencies': [ | |
203 '../base/base.gyp:base', | |
204 '../google_apis/google_apis.gyp:google_apis', | |
205 '../url/url.gyp:url_lib', | |
206 'data_reduction_proxy_proto', | |
207 'data_reduction_proxy_version_header', | |
208 ], | |
209 'include_dirs': [ | |
210 '..', | |
211 ], | |
212 'sources': [ | |
213 '<@(data_reduction_proxy_core_common_sources)' | |
214 ], | |
215 }, | |
216 { | |
217 # GN version: //components/data_reduction_proxy/core/browser:test_support | |
218 'target_name': 'data_reduction_proxy_test_support', | |
219 'type': 'static_library', | |
220 'dependencies' : [ | |
221 '../base/base.gyp:base', | |
222 '../net/net.gyp:net', | |
223 '../net/net.gyp:net_test_support', | |
224 '../testing/gmock.gyp:gmock', | |
225 '../testing/gtest.gyp:gtest', | |
226 'data_reduction_proxy_core_browser', | |
227 'data_reduction_proxy_core_common', | |
228 'data_reduction_proxy_proto', | |
229 ], | |
230 'include_dirs': [ | |
231 '..', | |
232 ], | |
233 'sources': [ | |
234 # Note: sources list duplicated in GN build. | |
235 'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_util
s.cc', | |
236 'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_util
s.h', | |
237 'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_ut
ils.cc', | |
238 'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_ut
ils.h', | |
239 'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc', | |
240 'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h', | |
241 'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_del
egate_test_utils.cc', | |
242 'data_reduction_proxy/core/common/data_reduction_proxy_event_storage_del
egate_test_utils.h', | |
243 'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_util
s.cc', | |
244 'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_util
s.h', | |
245 'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils
.cc', | |
246 'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils
.h', | |
247 ], | |
248 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
249 'msvs_disabled_warnings': [4267, ], | |
250 }, | |
251 { | |
252 # GN version: //components/data_reduction_proxy/proto | |
253 'target_name': 'data_reduction_proxy_proto', | |
254 'type': 'static_library', | |
255 'dependencies': [ | |
256 ], | |
257 'include_dirs': [ | |
258 ], | |
259 'sources': [ | |
260 # Note: sources list duplicated in GN build. | |
261 'data_reduction_proxy/proto/client_config.proto', | |
262 'data_reduction_proxy/proto/data_store.proto', | |
263 'data_reduction_proxy/proto/pageload_metrics.proto', | |
264 ], | |
265 'variables': { | |
266 'proto_in_dir': 'data_reduction_proxy/proto', | |
267 'proto_out_dir': 'components/data_reduction_proxy/proto', | |
268 }, | |
269 'includes': [ '../build/protoc.gypi' ], | |
270 }, | |
271 { | |
272 'target_name': 'data_reduction_proxy_version_header', | |
273 'type': 'none', | |
274 'direct_dependent_settings': { | |
275 'include_dirs': [ | |
276 '<(SHARED_INTERMEDIATE_DIR)', | |
277 ], | |
278 }, | |
279 'actions': [ | |
280 { | |
281 'action_name': 'version_header', | |
282 'message': 'Generating version header file: <@(_outputs)', | |
283 'inputs': [ | |
284 '<(version_path)', | |
285 'data_reduction_proxy/core/common/version.h.in', | |
286 ], | |
287 'outputs': [ | |
288 '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/core/com
mon/version.h', | |
289 ], | |
290 'action': [ | |
291 'python', | |
292 '<(version_py_path)', | |
293 '-e', 'VERSION_FULL="<(version_full)"', | |
294 'data_reduction_proxy/core/common/version.h.in', | |
295 '<@(_outputs)', | |
296 ], | |
297 'includes': [ | |
298 '../build/util/version.gypi', | |
299 ], | |
300 }, | |
301 ], | |
302 }, | |
303 ], | |
304 } | |
OLD | NEW |