blob: fbac3e091b42649833d51dd70eabf363207ccb6b [file] [log] [blame]
[email protected]2f80c312009-02-25 21:26:551# Copyright (c) 2009 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 'variables': {
7 'chromium_code': 1,
8 },
9 'includes': [
10 '../build/common.gypi',
11 ],
12 'targets': [
13 {
14 'target_name': 'net',
[email protected]653bd5f032009-04-08 12:55:4915 'type': '<(library)',
[email protected]2f80c312009-02-25 21:26:5516 'dependencies': [
17 '../base/base.gyp:base',
18 '../build/temp_gyp/googleurl.gyp:googleurl',
19 '../sdch/sdch.gyp:sdch',
[email protected]d0644282009-04-22 00:20:2920 # TODO: various targets end up using
[email protected]ff007e162009-05-23 09:13:1521 # testing::internal::AssertHelper through references here.
[email protected]d0644282009-04-22 00:20:2922 # Good candidate for refactoring.
23 '../testing/gtest.gyp:gtest',
[email protected]2f80c312009-02-25 21:26:5524 '../third_party/bzip2/bzip2.gyp:bzip2',
25 '../third_party/icu38/icu38.gyp:icui18n',
26 '../third_party/icu38/icu38.gyp:icuuc',
27 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
28 '../third_party/zlib/zlib.gyp:zlib',
[email protected]ef36c74c2009-03-11 13:32:2229 'net_resources',
[email protected]2f80c312009-02-25 21:26:5530 ],
[email protected]0d54d2e2009-03-10 22:25:5431 'msvs_guid': '326E9795-E760-410A-B69A-3F79DB3F5243',
[email protected]2f80c312009-02-25 21:26:5532 'sources': [
33 'base/address_list.cc',
34 'base/address_list.h',
35 'base/auth.h',
36 'base/base64.cc',
37 'base/base64.h',
38 'base/bzip2_filter.cc',
39 'base/bzip2_filter.h',
[email protected]6192f732009-03-25 23:44:2040 'base/cache_type.h',
[email protected]2f80c312009-02-25 21:26:5541 'base/cert_status_flags.cc',
42 'base/cert_status_flags.h',
43 'base/cert_verifier.cc',
44 'base/cert_verifier.h',
45 'base/cert_verify_result.h',
46 'base/client_socket.cc',
47 'base/client_socket.h',
48 'base/client_socket_factory.cc',
49 'base/client_socket_factory.h',
50 'base/client_socket_handle.cc',
51 'base/client_socket_handle.h',
[email protected]2f80c312009-02-25 21:26:5552 'base/client_socket_pool.h',
53 'base/completion_callback.h',
54 'base/connection_type_histograms.cc',
55 'base/connection_type_histograms.h',
56 'base/cookie_monster.cc',
57 'base/cookie_monster.h',
58 'base/cookie_policy.cc',
59 'base/cookie_policy.h',
60 'base/data_url.cc',
61 'base/data_url.h',
62 'base/directory_lister.cc',
63 'base/directory_lister.h',
64 'base/dns_resolution_observer.cc',
65 'base/dns_resolution_observer.h',
66 'base/effective_tld_names.cc',
67 'base/effective_tld_names.dat',
68 'base/escape.cc',
69 'base/escape.h',
70 'base/ev_root_ca_metadata.cc',
71 'base/ev_root_ca_metadata.h',
72 'base/file_stream.h',
73 'base/file_stream_posix.cc',
74 'base/file_stream_win.cc',
75 'base/filter.cc',
76 'base/filter.h',
[email protected]a9cea7542009-05-20 04:30:2377 'base/force_tls_state.cc',
78 'base/force_tls_state.h',
[email protected]2f80c312009-02-25 21:26:5579 'base/gzip_filter.cc',
80 'base/gzip_filter.h',
81 'base/gzip_header.cc',
82 'base/gzip_header.h',
[email protected]8a00f00a2009-06-12 00:49:3883 'base/host_cache.cc',
84 'base/host_cache.h',
[email protected]2f80c312009-02-25 21:26:5585 'base/host_resolver.cc',
86 'base/host_resolver.h',
87 'base/io_buffer.cc',
88 'base/io_buffer.h',
89 'base/listen_socket.cc',
90 'base/listen_socket.h',
91 'base/load_flags.h',
92 'base/mime_sniffer.cc',
93 'base/mime_sniffer.h',
94 'base/mime_util.cc',
95 'base/mime_util.h',
96 'base/net_error_list.h',
97 'base/net_errors.cc',
98 'base/net_errors.h',
99 'base/net_module.cc',
100 'base/net_module.h',
[email protected]2f80c312009-02-25 21:26:55101 'base/net_util.cc',
102 'base/net_util.h',
103 'base/net_util_posix.cc',
104 'base/net_util_win.cc',
105 'base/nss_memio.c',
106 'base/platform_mime_util.h',
107 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
108 'base/platform_mime_util_linux.cc',
109 'base/platform_mime_util_mac.cc',
110 'base/platform_mime_util_win.cc',
111 'base/registry_controlled_domain.cc',
112 'base/registry_controlled_domain.h',
113 'base/scoped_cert_chain_context.h',
114 'base/sdch_filter.cc',
115 'base/sdch_filter.h',
116 'base/sdch_manager.cc',
117 'base/sdch_manager.h',
118 'base/socket.h',
119 'base/ssl_client_socket.h',
120 'base/ssl_client_socket_mac.cc',
121 'base/ssl_client_socket_nss.cc',
122 'base/ssl_client_socket_win.cc',
123 'base/ssl_client_socket_win.h',
124 'base/ssl_config_service.cc',
125 'base/ssl_config_service.h',
126 'base/ssl_info.h',
127 'base/ssl_test_util.cc',
128 'base/tcp_client_socket.h',
129 'base/tcp_client_socket_libevent.cc',
[email protected]8f1915d2009-04-20 18:37:39130 'base/tcp_client_socket_libevent.h',
[email protected]5e2a9592009-06-05 04:47:24131 'base/tcp_client_socket_pool.cc',
132 'base/tcp_client_socket_pool.h',
[email protected]2f80c312009-02-25 21:26:55133 'base/tcp_client_socket_win.cc',
[email protected]8f1915d2009-04-20 18:37:39134 'base/tcp_client_socket_win.h',
[email protected]2f80c312009-02-25 21:26:55135 'base/telnet_server.cc',
136 'base/telnet_server.h',
137 'base/upload_data.cc',
138 'base/upload_data.h',
139 'base/upload_data_stream.cc',
140 'base/upload_data_stream.h',
141 'base/wininet_util.cc',
142 'base/wininet_util.h',
143 'base/winsock_init.cc',
144 'base/winsock_init.h',
145 'base/x509_certificate.cc',
146 'base/x509_certificate.h',
147 'base/x509_certificate_mac.cc',
148 'base/x509_certificate_nss.cc',
149 'base/x509_certificate_win.cc',
150 'build/precompiled_net.cc',
151 'build/precompiled_net.h',
152 'disk_cache/addr.cc',
153 'disk_cache/addr.h',
154 'disk_cache/backend_impl.cc',
155 'disk_cache/backend_impl.h',
156 'disk_cache/block_files.cc',
157 'disk_cache/block_files.h',
158 'disk_cache/cache_util.h',
159 'disk_cache/cache_util_posix.cc',
160 'disk_cache/cache_util_win.cc',
161 'disk_cache/disk_cache.h',
162 'disk_cache/disk_format.h',
163 'disk_cache/entry_impl.cc',
164 'disk_cache/entry_impl.h',
165 'disk_cache/errors.h',
166 'disk_cache/eviction.cc',
167 'disk_cache/eviction.h',
168 'disk_cache/file.h',
169 'disk_cache/file_block.h',
170 'disk_cache/file_lock.cc',
171 'disk_cache/file_lock.h',
172 'disk_cache/file_posix.cc',
173 'disk_cache/file_win.cc',
174 'disk_cache/hash.cc',
175 'disk_cache/hash.h',
[email protected]17a8396f12009-03-27 20:12:34176 'disk_cache/histogram_macros.h',
[email protected]2f80c312009-02-25 21:26:55177 'disk_cache/mapped_file.h',
178 'disk_cache/mapped_file_posix.cc',
179 'disk_cache/mapped_file_win.cc',
180 'disk_cache/mem_backend_impl.cc',
181 'disk_cache/mem_backend_impl.h',
182 'disk_cache/mem_entry_impl.cc',
183 'disk_cache/mem_entry_impl.h',
184 'disk_cache/mem_rankings.cc',
185 'disk_cache/mem_rankings.h',
186 'disk_cache/rankings.cc',
187 'disk_cache/rankings.h',
188 'disk_cache/stats.cc',
189 'disk_cache/stats.h',
190 'disk_cache/stats_histogram.cc',
191 'disk_cache/stats_histogram.h',
192 'disk_cache/storage_block-inl.h',
193 'disk_cache/storage_block.h',
194 'disk_cache/trace.cc',
195 'disk_cache/trace.h',
196 'ftp/ftp_auth_cache.cc',
197 'ftp/ftp_auth_cache.h',
[email protected]fffc27d52009-03-19 23:26:27198 'ftp/ftp_directory_parser.cc',
199 'ftp/ftp_directory_parser.h',
[email protected]2f80c312009-02-25 21:26:55200 'ftp/ftp_network_layer.cc',
201 'ftp/ftp_network_layer.h',
202 'ftp/ftp_network_session.h',
203 'ftp/ftp_network_transaction.cc',
204 'ftp/ftp_network_transaction.h',
205 'ftp/ftp_request_info.h',
206 'ftp/ftp_response_info.h',
207 'ftp/ftp_transaction.h',
208 'ftp/ftp_transaction_factory.h',
[email protected]5ae0b862009-02-28 02:02:41209 'http/des.cc',
210 'http/des.h',
[email protected]2f80c312009-02-25 21:26:55211 'http/http_atom_list.h',
212 'http/http_auth.cc',
213 'http/http_auth.h',
214 'http/http_auth_cache.cc',
215 'http/http_auth_cache.h',
216 'http/http_auth_handler.h',
217 'http/http_auth_handler.cc',
218 'http/http_auth_handler_basic.cc',
219 'http/http_auth_handler_basic.h',
220 'http/http_auth_handler_digest.cc',
221 'http/http_auth_handler_digest.h',
[email protected]5ae0b862009-02-28 02:02:41222 'http/http_auth_handler_ntlm.cc',
223 'http/http_auth_handler_ntlm.h',
[email protected]fc48db82009-04-28 21:23:39224 'http/http_byte_range.cc',
225 'http/http_byte_range.h',
[email protected]2f80c312009-02-25 21:26:55226 'http/http_cache.cc',
227 'http/http_cache.h',
228 'http/http_chunked_decoder.cc',
229 'http/http_chunked_decoder.h',
230 'http/http_network_layer.cc',
231 'http/http_network_layer.h',
[email protected]0d8fa3ec2009-04-08 04:22:44232 'http/http_network_session.cc',
[email protected]2f80c312009-02-25 21:26:55233 'http/http_network_session.h',
234 'http/http_network_transaction.cc',
235 'http/http_network_transaction.h',
236 'http/http_request_info.h',
237 'http/http_response_headers.cc',
238 'http/http_response_headers.h',
239 'http/http_response_info.cc',
240 'http/http_response_info.h',
241 'http/http_transaction.h',
242 'http/http_transaction_factory.h',
243 'http/http_util.cc',
244 'http/http_util.h',
245 'http/http_vary_data.cc',
246 'http/http_vary_data.h',
[email protected]5ae0b862009-02-28 02:02:41247 'http/md4.cc',
248 'http/md4.h',
[email protected]7dc52f22009-03-02 22:37:18249 'proxy/proxy_config.cc',
250 'proxy/proxy_config.h',
251 'proxy/proxy_config_service.h',
[email protected]2f80c312009-02-25 21:26:55252 'proxy/proxy_config_service_fixed.h',
[email protected]861c6c62009-04-20 16:50:56253 'proxy/proxy_config_service_linux.cc',
254 'proxy/proxy_config_service_linux.h',
[email protected]2f80c312009-02-25 21:26:55255 'proxy/proxy_config_service_win.cc',
256 'proxy/proxy_config_service_win.h',
[email protected]7dc52f22009-03-02 22:37:18257 'proxy/proxy_info.cc',
258 'proxy/proxy_info.h',
259 'proxy/proxy_list.cc',
260 'proxy/proxy_list.h',
261 'proxy/proxy_resolver.h',
[email protected]2f80c312009-02-25 21:26:55262 'proxy/proxy_resolver_mac.cc',
[email protected]6b675b82009-02-26 23:18:32263 'proxy/proxy_resolver_script.h',
264 'proxy/proxy_resolver_v8.cc',
265 'proxy/proxy_resolver_v8.h',
[email protected]2f80c312009-02-25 21:26:55266 'proxy/proxy_resolver_winhttp.cc',
267 'proxy/proxy_resolver_winhttp.h',
[email protected]7dc52f22009-03-02 22:37:18268 'proxy/proxy_retry_info.h',
[email protected]2f80c312009-02-25 21:26:55269 'proxy/proxy_script_fetcher.cc',
270 'proxy/proxy_script_fetcher.h',
271 'proxy/proxy_server.cc',
272 'proxy/proxy_server.h',
273 'proxy/proxy_service.cc',
274 'proxy/proxy_service.h',
275 'url_request/mime_sniffer_proxy.cc',
276 'url_request/mime_sniffer_proxy.h',
277 'url_request/url_request.cc',
278 'url_request/url_request.h',
279 'url_request/url_request_about_job.cc',
280 'url_request/url_request_about_job.h',
281 'url_request/url_request_context.h',
282 'url_request/url_request_error_job.cc',
283 'url_request/url_request_error_job.h',
284 'url_request/url_request_file_dir_job.cc',
285 'url_request/url_request_file_dir_job.h',
286 'url_request/url_request_file_job.cc',
287 'url_request/url_request_file_job.h',
288 'url_request/url_request_filter.cc',
289 'url_request/url_request_filter.h',
290 'url_request/url_request_ftp_job.cc',
291 'url_request/url_request_ftp_job.h',
292 'url_request/url_request_http_job.cc',
293 'url_request/url_request_http_job.h',
294 'url_request/url_request_inet_job.cc',
295 'url_request/url_request_inet_job.h',
296 'url_request/url_request_job.cc',
297 'url_request/url_request_job.h',
298 'url_request/url_request_job_manager.cc',
299 'url_request/url_request_job_manager.h',
300 'url_request/url_request_job_metrics.cc',
301 'url_request/url_request_job_metrics.h',
302 'url_request/url_request_job_tracker.cc',
303 'url_request/url_request_job_tracker.h',
[email protected]b65ce0942009-03-16 20:13:33304 'url_request/url_request_new_ftp_job.cc',
305 'url_request/url_request_new_ftp_job.h',
[email protected]2f80c312009-02-25 21:26:55306 'url_request/url_request_simple_job.cc',
307 'url_request/url_request_simple_job.h',
308 'url_request/url_request_status.h',
309 'url_request/url_request_test_job.cc',
310 'url_request/url_request_test_job.h',
311 'url_request/url_request_view_cache_job.cc',
312 'url_request/url_request_view_cache_job.h',
313 ],
314 'sources!': [
315 'build/precompiled_net.h',
316 'build/precompiled_net.cc',
317 ],
318 'export_dependent_settings': [
319 '../base/base.gyp:base',
320 ],
321 'conditions': [
[email protected]c61f6432009-04-22 01:16:42322 ['javascript_engine=="v8"', {
323 'dependencies': [
[email protected]44531a22009-04-28 21:37:56324 '../v8/tools/gyp/v8.gyp:v8',
[email protected]c61f6432009-04-22 01:16:42325 ],
326 }],
[email protected]9d384032009-03-20 23:13:26327 [ 'OS == "linux"', {
328 'dependencies': [
[email protected]861c6c62009-04-20 16:50:56329 '../build/linux/system.gyp:gconf',
330 '../build/linux/system.gyp:gdk',
[email protected]9d384032009-03-20 23:13:26331 '../build/linux/system.gyp:nss',
332 ],
333 }],
[email protected]2f80c312009-02-25 21:26:55334 [ 'OS == "win"', {
335 'sources/': [ ['exclude', '_(mac|linux|posix)\\.cc$'] ],
336 'sources!': [
337 'base/tcp_client_socket_libevent.cc',
338 ],
339 'dependencies': [
[email protected]2f80c312009-02-25 21:26:55340 'tld_cleanup',
341 ],
342 'configurations': {
343 'Debug': {
344 'msvs_precompiled_header': 'build/precompiled_net.h',
345 'msvs_precompiled_source': 'build/precompiled_net.cc',
346 },
347 },
348 },
349 { # else: OS != "win"
350 'sources!': [
351 'base/ssl_config_service.cc',
352 'base/wininet_util.cc',
353 'base/winsock_init.cc',
354 'proxy/proxy_resolver_winhttp.cc',
355 'url_request/url_request_ftp_job.cc',
356 'url_request/url_request_inet_job.cc',
357 ],
358 },
359 ],
360 [ 'OS == "linux"', {
361 'sources/': [ ['exclude', '_(mac|win)\\.cc$'] ],
[email protected]2f80c312009-02-25 21:26:55362 },
363 { # else: OS != "linux"
364 'sources!': [
365 'base/nss_memio.c',
366 'base/ssl_client_socket_nss.cc',
367 'base/x509_certificate_nss.cc',
368 ],
369 # Get U_STATIC_IMPLEMENTATION and -I directories on Linux.
370 'dependencies': [
371 '../third_party/icu38/icu38.gyp:icui18n',
372 '../third_party/icu38/icu38.gyp:icuuc',
373 ],
374 },
375 ],
376 [ 'OS == "mac"', {
377 'sources/': [ ['exclude', '_(linux|win)\\.cc$'] ],
378 'link_settings': {
379 'libraries': [
380 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
381 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
382 ]
383 },
384 },
385 ],
[email protected]2f80c312009-02-25 21:26:55386 ],
387 },
388 {
389 'target_name': 'net_unittests',
390 'type': 'executable',
391 'dependencies': [
392 'net',
[email protected]6718b412009-03-04 18:26:00393 'net_test_support',
[email protected]2f80c312009-02-25 21:26:55394 '../base/base.gyp:base',
395 '../testing/gtest.gyp:gtest',
396 ],
[email protected]9e450f22009-03-10 23:12:16397 'msvs_guid': 'E99DA267-BE90-4F45-88A1-6919DB2C7567',
[email protected]2f80c312009-02-25 21:26:55398 'sources': [
[email protected]8a00f00a2009-06-12 00:49:38399 'base/address_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55400 'base/base64_unittest.cc',
401 'base/bzip2_filter_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55402 'base/cookie_monster_unittest.cc',
403 'base/cookie_policy_unittest.cc',
404 'base/data_url_unittest.cc',
405 'base/directory_lister_unittest.cc',
406 'base/escape_unittest.cc',
407 'base/file_stream_unittest.cc',
408 'base/filter_unittest.cc',
[email protected]56e72f32009-03-09 18:22:27409 'base/filter_unittest.h',
[email protected]c26a25a2009-06-02 02:37:05410 'base/force_tls_state_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55411 'base/gzip_filter_unittest.cc',
[email protected]8a00f00a2009-06-12 00:49:38412 'base/host_cache_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55413 'base/host_resolver_unittest.cc',
414 'base/listen_socket_unittest.cc',
415 'base/listen_socket_unittest.h',
416 'base/mime_sniffer_unittest.cc',
417 'base/mime_util_unittest.cc',
418 'base/net_util_unittest.cc',
419 'base/registry_controlled_domain_unittest.cc',
420 'base/run_all_unittests.cc',
421 'base/sdch_filter_unittest.cc',
422 'base/ssl_client_socket_unittest.cc',
423 'base/ssl_config_service_unittest.cc',
[email protected]5e2a9592009-06-05 04:47:24424 'base/tcp_client_socket_pool_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55425 'base/tcp_client_socket_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31426 'base/tcp_pinger_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55427 'base/telnet_server_unittest.cc',
428 'base/test_completion_callback_unittest.cc',
429 'base/wininet_util_unittest.cc',
430 'base/x509_certificate_unittest.cc',
431 'disk_cache/addr_unittest.cc',
432 'disk_cache/backend_unittest.cc',
433 'disk_cache/block_files_unittest.cc',
434 'disk_cache/disk_cache_test_base.cc',
435 'disk_cache/disk_cache_test_base.h',
[email protected]2f80c312009-02-25 21:26:55436 'disk_cache/entry_unittest.cc',
437 'disk_cache/mapped_file_unittest.cc',
438 'disk_cache/storage_block_unittest.cc',
439 'ftp/ftp_auth_cache_unittest.cc',
[email protected]5ae0b862009-02-28 02:02:41440 'http/des_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55441 'http/http_auth_cache_unittest.cc',
442 'http/http_auth_handler_basic_unittest.cc',
443 'http/http_auth_handler_digest_unittest.cc',
444 'http/http_auth_unittest.cc',
[email protected]fc48db82009-04-28 21:23:39445 'http/http_byte_range_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55446 'http/http_cache_unittest.cc',
447 'http/http_chunked_decoder_unittest.cc',
448 'http/http_network_layer_unittest.cc',
449 'http/http_network_transaction_unittest.cc',
450 'http/http_response_headers_unittest.cc',
451 'http/http_transaction_unittest.cc',
452 'http/http_transaction_unittest.h',
453 'http/http_util_unittest.cc',
454 'http/http_vary_data_unittest.cc',
[email protected]861c6c62009-04-20 16:50:56455 'proxy/proxy_config_service_linux_unittest.cc',
[email protected]96ce22362009-03-27 20:19:57456 'proxy/proxy_config_service_win_unittest.cc',
[email protected]5b45aec02009-03-31 01:03:23457 'proxy/proxy_config_unittest.cc',
[email protected]7dc52f22009-03-02 22:37:18458 'proxy/proxy_list_unittest.cc',
[email protected]6b675b82009-02-26 23:18:32459 'proxy/proxy_resolver_v8_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55460 'proxy/proxy_script_fetcher_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31461 'proxy/proxy_server_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55462 'proxy/proxy_service_unittest.cc',
463 'url_request/url_request_unittest.cc',
464 'url_request/url_request_unittest.h',
465 ],
466 'conditions': [
[email protected]861c6c62009-04-20 16:50:56467 [ 'OS == "win"', {
468 'sources/': [ ['exclude', '_(mac|linux|posix)_unittest\\.cc$'] ],
469 },
470 ],
[email protected]2f80c312009-02-25 21:26:55471 [ 'OS != "win"', {
472 'sources!': [
473 'base/wininet_util_unittest.cc',
474 ],
475 },
476 ],
477 [ 'OS == "linux"', {
[email protected]861c6c62009-04-20 16:50:56478 'sources/': [ ['exclude', '_(mac|win)_unittest\\.cc$'] ],
[email protected]9d384032009-03-20 23:13:26479 'dependencies': [
480 '../build/linux/system.gyp:gtk',
481 ],
[email protected]2f80c312009-02-25 21:26:55482 'sources!': [
483 'base/sdch_filter_unittest.cc',
484 'base/ssl_config_service_unittest.cc',
485 ],
486 },
487 ],
488 [ 'OS == "mac"', {
[email protected]861c6c62009-04-20 16:50:56489 'sources/': [ ['exclude', '_(linux|win)_unittest\\.cc$'] ],
[email protected]2f80c312009-02-25 21:26:55490 'sources!': [
491 'base/ssl_config_service_unittest.cc',
492 ],
493 },
494 ],
495 # This is needed to trigger the dll copy step on windows.
496 # TODO(mark): Specifying this here shouldn't be necessary.
497 [ 'OS == "win"', {
498 'dependencies': [
499 '../third_party/icu38/icu38.gyp:icudata',
500 ],
501 },
502 ],
503 ],
504 },
505 {
506 'target_name': 'net_perftests',
507 'type': 'executable',
508 'dependencies': [
509 'net',
[email protected]6718b412009-03-04 18:26:00510 'net_test_support',
[email protected]2f80c312009-02-25 21:26:55511 '../base/base.gyp:base',
[email protected]e8ef09a2009-03-16 23:46:45512 '../base/base.gyp:test_support_base',
[email protected]2f80c312009-02-25 21:26:55513 '../testing/gtest.gyp:gtest',
514 ],
[email protected]9e450f22009-03-10 23:12:16515 'msvs_guid': 'AAC78796-B9A2-4CD9-BF89-09B03E92BF73',
[email protected]2f80c312009-02-25 21:26:55516 'sources': [
[email protected]2f80c312009-02-25 21:26:55517 'base/cookie_monster_perftest.cc',
518 'disk_cache/disk_cache_perftest.cc',
[email protected]448cfef82009-03-06 01:44:33519 'proxy/proxy_resolver_perftest.cc',
[email protected]2f80c312009-02-25 21:26:55520 ],
521 'conditions': [
522 # This is needed to trigger the dll copy step on windows.
523 # TODO(mark): Specifying this here shouldn't be necessary.
524 [ 'OS == "win"', {
525 'dependencies': [
526 '../third_party/icu38/icu38.gyp:icudata',
527 ],
528 },
529 ],
530 ],
531 },
532 {
533 'target_name': 'stress_cache',
534 'type': 'executable',
535 'dependencies': [
536 'net',
[email protected]6718b412009-03-04 18:26:00537 'net_test_support',
[email protected]2f80c312009-02-25 21:26:55538 '../base/base.gyp:base',
539 ],
540 'sources': [
[email protected]2f80c312009-02-25 21:26:55541 'disk_cache/stress_cache.cc',
542 ],
543 },
544 {
545 'target_name': 'tld_cleanup',
546 'type': 'executable',
547 'dependencies': [
548 '../base/base.gyp:base',
549 '../build/temp_gyp/googleurl.gyp:googleurl',
550 ],
[email protected]b8234462009-03-18 02:30:55551 'msvs_guid': 'E13045CD-7E1F-4A41-9B18-8D288B2E7B41',
[email protected]2f80c312009-02-25 21:26:55552 'sources': [
553 'tools/tld_cleanup/tld_cleanup.cc',
554 ],
555 },
556 {
557 'target_name': 'crash_cache',
558 'type': 'executable',
559 'dependencies': [
560 'net',
[email protected]6718b412009-03-04 18:26:00561 'net_test_support',
[email protected]2f80c312009-02-25 21:26:55562 '../base/base.gyp:base',
563 ],
[email protected]9e450f22009-03-10 23:12:16564 'msvs_guid': 'B0EE0599-2913-46A0-A847-A3EC813658D3',
[email protected]2f80c312009-02-25 21:26:55565 'sources': [
566 'tools/crash_cache/crash_cache.cc',
[email protected]6718b412009-03-04 18:26:00567 ],
568 },
569 {
570 'target_name': 'net_test_support',
[email protected]653bd5f032009-04-08 12:55:49571 'type': '<(library)',
[email protected]6718b412009-03-04 18:26:00572 'dependencies': [
573 'net',
574 '../base/base.gyp:base',
[email protected]ff007e162009-05-23 09:13:15575 '../testing/gtest.gyp:gtest',
[email protected]6718b412009-03-04 18:26:00576 ],
577 'sources': [
[email protected]ff007e162009-05-23 09:13:15578 'base/socket_test_util.cc',
579 'base/socket_test_util.h',
[email protected]2f80c312009-02-25 21:26:55580 'disk_cache/disk_cache_test_util.cc',
[email protected]6718b412009-03-04 18:26:00581 'disk_cache/disk_cache_test_util.h',
[email protected]ab501a6a2009-05-12 15:07:50582 'proxy/proxy_config_service_common_unittest.cc',
583 'proxy/proxy_config_service_common_unittest.h',
[email protected]2f80c312009-02-25 21:26:55584 ],
585 },
[email protected]ef36c74c2009-03-11 13:32:22586 {
587 'target_name': 'net_resources',
588 'type': 'none',
589 'msvs_guid': '8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942',
590 'rules': [
[email protected]2f80c312009-02-25 21:26:55591 {
[email protected]ef36c74c2009-03-11 13:32:22592 'rule_name': 'grit',
593 'extension': 'grd',
594 'inputs': [
[email protected]b19f1cd72009-03-13 21:16:00595 '../tools/grit/grit.py',
[email protected]2f80c312009-02-25 21:26:55596 ],
[email protected]ef36c74c2009-03-11 13:32:22597 'outputs': [
598 '<(SHARED_INTERMEDIATE_DIR)/net/grit/<(RULE_INPUT_ROOT).h',
599 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_ROOT).rc',
600 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_ROOT).pak',
[email protected]2f80c312009-02-25 21:26:55601 ],
[email protected]ef36c74c2009-03-11 13:32:22602 'action':
603 ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/net'],
[email protected]027ec5f2009-03-16 18:30:35604 'message': 'Generating resources from <(RULE_INPUT_PATH)',
[email protected]2f80c312009-02-25 21:26:55605 },
[email protected]6718b412009-03-04 18:26:00606 ],
[email protected]ef36c74c2009-03-11 13:32:22607 'sources': [
608 'base/net_resources.grd',
609 ],
610 'direct_dependent_settings': {
611 'include_dirs': [
612 '<(SHARED_INTERMEDIATE_DIR)/net',
613 ],
614 },
[email protected]b392f3e2009-05-11 20:01:24615 'conditions': [
616 ['OS=="win"', {
617 'dependencies': ['../build/win/system.gyp:cygwin'],
618 }],
619 ],
[email protected]ef36c74c2009-03-11 13:32:22620 },
621 ],
622 'conditions': [
[email protected]6718b412009-03-04 18:26:00623 ['OS=="win"', {
624 'targets': [
[email protected]2f80c312009-02-25 21:26:55625 {
626 # TODO(port): dump_cache is still Windows-specific.
627 'target_name': 'dump_cache',
628 'type': 'executable',
629 'dependencies': [
630 'net',
631 '../base/base.gyp:base',
632 ],
633 'sources': [
634 'tools/dump_cache/dump_cache.cc',
635 'tools/dump_cache/dump_files.cc',
636 'tools/dump_cache/upgrade.cc',
637 ],
638 },
[email protected]acc9a6d2009-05-06 00:17:50639 {
640 'target_name': 'fetch_client',
641 'type': 'executable',
642 'dependencies': [
643 'net',
644 '../base/base.gyp:base',
645 '../base/base.gyp:test_support_base',
646 '../testing/gtest.gyp:gtest',
647 ],
648 'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B123',
649 'sources': [
650 'tools/fetch/fetch_client.cc',
651 ],
652 },
653 {
654 'target_name': 'fetch_server',
655 'type': 'executable',
656 'dependencies': [
657 'net',
658 '../base/base.gyp:base',
659 '../base/base.gyp:test_support_base',
660 '../testing/gtest.gyp:gtest',
661 ],
662 'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B124',
663 'sources': [
664 'tools/fetch/fetch_server.cc',
665 'tools/fetch/http_listen_socket.cc',
666 'tools/fetch/http_listen_socket.h',
667 'tools/fetch/http_server.cc',
668 'tools/fetch/http_server.h',
669 'tools/fetch/http_session.cc',
670 'tools/fetch/http_session.h',
671 ],
672 },
[email protected]2f80c312009-02-25 21:26:55673 ],
674 }],
[email protected]2f80c312009-02-25 21:26:55675 ],
676}