Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: net/BUILD.gn

Issue 236063018: Fill out the rest of the net targets in the GN build except Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/config/linux/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 15 matching lines...) Expand all
26 26
27 # The way the cache uses mmap() is inefficient on some Android devices. If 27 # The way the cache uses mmap() is inefficient on some Android devices. If
28 # this flag is set, we hackily avoid using mmap() in the disk cache. We are 28 # this flag is set, we hackily avoid using mmap() in the disk cache. We are
29 # pretty confident that mmap-ing the index would not hurt any existing x86 29 # pretty confident that mmap-ing the index would not hurt any existing x86
30 # android devices, but we cannot be so sure about the variety of ARM devices. 30 # android devices, but we cannot be so sure about the variety of ARM devices.
31 # So enable it for x86 only for now. 31 # So enable it for x86 only for now.
32 posix_avoid_mmap = is_android && cpu_arch != "x86" 32 posix_avoid_mmap = is_android && cpu_arch != "x86"
33 33
34 # WebSockets and socket stream code are used everywhere except iOS. 34 # WebSockets and socket stream code are used everywhere except iOS.
35 enable_websockets = !is_ios 35 enable_websockets = !is_ios
36 use_v8_in_net = !is_ios 36 # TODO(brettw) put back to "!is_ios" when v8 is supported in GN build.
37 use_v8_in_net = false # TODO(brettw)!is_ios
37 enable_built_in_dns = !is_ios 38 enable_built_in_dns = !is_ios
38 39
39 disable_ftp_support = !is_ios 40 enable_ftp_support = !is_ios
40 41
41 # When OpenSSL is used for SSL and crypto on Unix-like systems, use OpenSSL"s 42 # When OpenSSL is used for SSL and crypto on Unix-like systems, use OpenSSL"s
42 # certificate definition. 43 # certificate definition.
43 use_openssl_certs = (is_linux || is_android) && use_openssl 44 use_openssl_certs = (is_linux || is_android) && use_openssl
44 45
45 config("net_config") { 46 config("net_config") {
46 defines = [] 47 defines = []
47 if (posix_avoid_mmap) { 48 if (posix_avoid_mmap) {
48 defines += [ "POSIX_AVOID_MMAP" ] 49 defines += [ "POSIX_AVOID_MMAP" ]
49 } 50 }
50 } 51 }
51 52
53 # Disables Windows warning about size to int truncations.
54 # TODO(jschuh): crbug.com/167187 fix this and delete this config.
55 config("net_win_size_truncation") {
56 if (is_win) {
57 cflags += [ "/wd4267" ]
58 }
59 }
60
52 component("net") { 61 component("net") {
53 sources = 62 sources =
54 gypi_values.net_nacl_common_sources + 63 gypi_values.net_nacl_common_sources +
55 gypi_values.net_non_nacl_sources 64 gypi_values.net_non_nacl_sources
56 65
57 cflags = [] 66 cflags = []
58 defines = [ "NET_IMPLEMENTATION" ] 67 defines = [
68 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to
69 # 0) which implies that we run pkg_config on kerberos and link to that
70 # rather than setting this define which will dynamically open it. That
71 # doesn't seem to be set in the regular builds, so we're skipping this
72 # capability here.
73 "DLOPEN_KERBEROS",
74 "NET_IMPLEMENTATION"
75 ]
76 configs += [ ":net_win_size_truncation" ]
59 direct_dependent_configs = [ ":net_config" ] 77 direct_dependent_configs = [ ":net_config" ]
60 include_dirs = [] 78 include_dirs = []
61 79
62 deps = [ 80 deps = [
63 ":net_resources", 81 ":net_resources",
64 "//base", 82 "//base",
65 "//base:i18n", 83 "//base:i18n",
66 "//base/third_party/dynamic_annotations", 84 "//base/third_party/dynamic_annotations",
67 "//crypto", 85 "//crypto",
68 "//crypto:platform", 86 "//crypto:platform",
(...skipping 18 matching lines...) Expand all
87 } 105 }
88 106
89 if (is_posix) { 107 if (is_posix) {
90 if (posix_avoid_mmap) { 108 if (posix_avoid_mmap) {
91 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] 109 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ]
92 } else { 110 } else {
93 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] 111 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ]
94 } 112 }
95 } 113 }
96 114
97 if (disable_ftp_support) { 115 if (!enable_ftp_support) {
98 sources -= [ 116 sources -= [
99 "ftp/ftp_auth_cache.cc", 117 "ftp/ftp_auth_cache.cc",
100 "ftp/ftp_auth_cache.h", 118 "ftp/ftp_auth_cache.h",
101 "ftp/ftp_ctrl_response_buffer.cc", 119 "ftp/ftp_ctrl_response_buffer.cc",
102 "ftp/ftp_ctrl_response_buffer.h", 120 "ftp/ftp_ctrl_response_buffer.h",
103 "ftp/ftp_directory_listing_parser.cc", 121 "ftp/ftp_directory_listing_parser.cc",
104 "ftp/ftp_directory_listing_parser.h", 122 "ftp/ftp_directory_listing_parser.h",
105 "ftp/ftp_directory_listing_parser_ls.cc", 123 "ftp/ftp_directory_listing_parser_ls.cc",
106 "ftp/ftp_directory_listing_parser_ls.h", 124 "ftp/ftp_directory_listing_parser_ls.h",
107 "ftp/ftp_directory_listing_parser_netware.cc", 125 "ftp/ftp_directory_listing_parser_netware.cc",
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 374
357 if (is_win) { 375 if (is_win) {
358 sources -= [ 376 sources -= [
359 "http/http_auth_handler_ntlm_portable.cc", 377 "http/http_auth_handler_ntlm_portable.cc",
360 "socket/tcp_socket_libevent.cc", 378 "socket/tcp_socket_libevent.cc",
361 "socket/tcp_socket_libevent.h", 379 "socket/tcp_socket_libevent.h",
362 "udp/udp_socket_libevent.cc", 380 "udp/udp_socket_libevent.cc",
363 "udp/udp_socket_libevent.h", 381 "udp/udp_socket_libevent.h",
364 ] 382 ]
365 deps += [ 383 deps += [
366 #"//third_party/nss:nspr", # TODO(brettw) 384 "//third_party/nss:nspr",
367 #"//third_party/nss", 385 "//third_party/nss",
368 ] 386 ]
369
370 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
371 cflags += [ "/wd4267" ]
372 } else { # !is_win 387 } else { # !is_win
373 sources -= [ 388 sources -= [
374 "base/winsock_init.cc", 389 "base/winsock_init.cc",
375 "base/winsock_init.h", 390 "base/winsock_init.h",
376 "base/winsock_util.cc", 391 "base/winsock_util.cc",
377 "base/winsock_util.h", 392 "base/winsock_util.h",
378 "proxy/proxy_resolver_winhttp.cc", 393 "proxy/proxy_resolver_winhttp.cc",
379 "proxy/proxy_resolver_winhttp.h", 394 "proxy/proxy_resolver_winhttp.h",
380 ] 395 ]
381 } 396 }
382 397
383 if (is_mac) { 398 if (is_mac) {
384 sources -= [ 399 sources -= [
385 "ssl/client_cert_store_nss.cc", 400 "ssl/client_cert_store_nss.cc",
386 "ssl/client_cert_store_nss.h", 401 "ssl/client_cert_store_nss.h",
387 ] 402 ]
388 deps += [ 403 deps += [
389 # TODO(brettw) 404 "//third_party/nss:nspr",
390 #"//third_party/nss:nspr", 405 "//third_party/nss",
391 #"//third_party/nss",
392 ] 406 ]
393 libs = [ 407 libs = [
394 "$SDKROOT/System/Library/Frameworks/Foundation.framework", 408 "$SDKROOT/System/Library/Frameworks/Foundation.framework",
395 "$SDKROOT/System/Library/Frameworks/Security.framework", 409 "$SDKROOT/System/Library/Frameworks/Security.framework",
396 "$SDKROOT/System/Library/Frameworks/SystemConfiguration.framework", 410 "$SDKROOT/System/Library/Frameworks/SystemConfiguration.framework",
397 "$SDKROOT/usr/lib/libresolv.dylib", 411 "$SDKROOT/usr/lib/libresolv.dylib",
398 ] 412 ]
399 } 413 }
400 414
401 if (is_ios) { 415 if (is_ios) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 "server/web_socket.cc", 460 "server/web_socket.cc",
447 "server/web_socket.h", 461 "server/web_socket.h",
448 ] 462 ]
449 configs += [ "//build/config/compiler:wexit_time_destructors" ] 463 configs += [ "//build/config/compiler:wexit_time_destructors" ]
450 deps = [ 464 deps = [
451 ":net", 465 ":net",
452 "//base", 466 "//base",
453 ] 467 ]
454 } 468 }
455 469
456 #TODO(brettw) enable this wben we've done all deps required by this target. 470 executable("dump_cache") {
457 #executable("dump_cache") { 471 sources = [
458 # sources = [ 472 "tools/dump_cache/cache_dumper.cc",
459 # 'tools/dump_cache/cache_dumper.cc', 473 "tools/dump_cache/cache_dumper.h",
460 # 'tools/dump_cache/cache_dumper.h', 474 "tools/dump_cache/dump_cache.cc",
461 # 'tools/dump_cache/dump_cache.cc', 475 "tools/dump_cache/dump_files.cc",
462 # 'tools/dump_cache/dump_files.cc', 476 "tools/dump_cache/dump_files.h",
463 # 'tools/dump_cache/dump_files.h', 477 "tools/dump_cache/simple_cache_dumper.cc",
464 # 'tools/dump_cache/simple_cache_dumper.cc', 478 "tools/dump_cache/simple_cache_dumper.h",
465 # 'tools/dump_cache/simple_cache_dumper.h', 479 "tools/dump_cache/upgrade_win.cc",
466 # 'tools/dump_cache/upgrade_win.cc', 480 "tools/dump_cache/upgrade_win.h",
467 # 'tools/dump_cache/upgrade_win.h', 481 "tools/dump_cache/url_to_filename_encoder.cc",
468 # 'tools/dump_cache/url_to_filename_encoder.cc', 482 "tools/dump_cache/url_to_filename_encoder.h",
469 # 'tools/dump_cache/url_to_filename_encoder.h', 483 "tools/dump_cache/url_utilities.h",
470 # 'tools/dump_cache/url_utilities.h', 484 "tools/dump_cache/url_utilities.cc",
471 # 'tools/dump_cache/url_utilities.cc', 485 ]
472 # ] 486
473 # 487 configs += [ ":net_win_size_truncation" ]
474 # deps = [ 488
475 # "//base", 489 deps = [
476 # ":net", 490 "//base",
477 # ":net_test_support", 491 ":net",
478 # ] 492 ":net_test_support",
479 # 493 ]
480 # if (is_win) { 494 }
481 # # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 495
482 # cflags += [ "/wd4267" ] 496 source_set("net_test_support") {
483 # } 497 sources = [
484 #} 498 "base/capturing_net_log.cc",
485 # 499 "base/capturing_net_log.h",
486 #source_set("net_test_support") { 500 "base/load_timing_info_test_util.cc",
487 # sources = [ 501 "base/load_timing_info_test_util.h",
488 # 'base/capturing_net_log.cc', 502 "base/mock_file_stream.cc",
489 # 'base/capturing_net_log.h', 503 "base/mock_file_stream.h",
490 # 'base/load_timing_info_test_util.cc', 504 "base/test_completion_callback.cc",
491 # 'base/load_timing_info_test_util.h', 505 "base/test_completion_callback.h",
492 # 'base/mock_file_stream.cc', 506 "base/test_data_directory.cc",
493 # 'base/mock_file_stream.h', 507 "base/test_data_directory.h",
494 # 'base/test_completion_callback.cc', 508 "cert/mock_cert_verifier.cc",
495 # 'base/test_completion_callback.h', 509 "cert/mock_cert_verifier.h",
496 # 'base/test_data_directory.cc', 510 "cookies/cookie_monster_store_test.cc",
497 # 'base/test_data_directory.h', 511 "cookies/cookie_monster_store_test.h",
498 # 'cert/mock_cert_verifier.cc', 512 "cookies/cookie_store_test_callbacks.cc",
499 # 'cert/mock_cert_verifier.h', 513 "cookies/cookie_store_test_callbacks.h",
500 # 'cookies/cookie_monster_store_test.cc', 514 "cookies/cookie_store_test_helpers.cc",
501 # 'cookies/cookie_monster_store_test.h', 515 "cookies/cookie_store_test_helpers.h",
502 # 'cookies/cookie_store_test_callbacks.cc', 516 "disk_cache/disk_cache_test_base.cc",
503 # 'cookies/cookie_store_test_callbacks.h', 517 "disk_cache/disk_cache_test_base.h",
504 # 'cookies/cookie_store_test_helpers.cc', 518 "disk_cache/disk_cache_test_util.cc",
505 # 'cookies/cookie_store_test_helpers.h', 519 "disk_cache/disk_cache_test_util.h",
506 # 'disk_cache/disk_cache_test_base.cc', 520 "dns/dns_test_util.cc",
507 # 'disk_cache/disk_cache_test_base.h', 521 "dns/dns_test_util.h",
508 # 'disk_cache/disk_cache_test_util.cc', 522 "dns/mock_host_resolver.cc",
509 # 'disk_cache/disk_cache_test_util.h', 523 "dns/mock_host_resolver.h",
510 # 'dns/dns_test_util.cc', 524 "dns/mock_mdns_socket_factory.cc",
511 # 'dns/dns_test_util.h', 525 "dns/mock_mdns_socket_factory.h",
512 # 'dns/mock_host_resolver.cc', 526 "proxy/mock_proxy_resolver.cc",
513 # 'dns/mock_host_resolver.h', 527 "proxy/mock_proxy_resolver.h",
514 # 'dns/mock_mdns_socket_factory.cc', 528 "proxy/mock_proxy_script_fetcher.cc",
515 # 'dns/mock_mdns_socket_factory.h', 529 "proxy/mock_proxy_script_fetcher.h",
516 # 'proxy/mock_proxy_resolver.cc', 530 "proxy/proxy_config_service_common_unittest.cc",
517 # 'proxy/mock_proxy_resolver.h', 531 "proxy/proxy_config_service_common_unittest.h",
518 # 'proxy/mock_proxy_script_fetcher.cc', 532 "socket/socket_test_util.cc",
519 # 'proxy/mock_proxy_script_fetcher.h', 533 "socket/socket_test_util.h",
520 # 'proxy/proxy_config_service_common_unittest.cc', 534 "test/cert_test_util.cc",
521 # 'proxy/proxy_config_service_common_unittest.h', 535 "test/cert_test_util.h",
522 # 'socket/socket_test_util.cc', 536 "test/ct_test_util.cc",
523 # 'socket/socket_test_util.h', 537 "test/ct_test_util.h",
524 # 'test/cert_test_util.cc', 538 "test/embedded_test_server/embedded_test_server.cc",
525 # 'test/cert_test_util.h', 539 "test/embedded_test_server/embedded_test_server.h",
526 # 'test/ct_test_util.cc', 540 "test/embedded_test_server/http_connection.cc",
527 # 'test/ct_test_util.h', 541 "test/embedded_test_server/http_connection.h",
528 # 'test/embedded_test_server/embedded_test_server.cc', 542 "test/embedded_test_server/http_request.cc",
529 # 'test/embedded_test_server/embedded_test_server.h', 543 "test/embedded_test_server/http_request.h",
530 # 'test/embedded_test_server/http_connection.cc', 544 "test/embedded_test_server/http_response.cc",
531 # 'test/embedded_test_server/http_connection.h', 545 "test/embedded_test_server/http_response.h",
532 # 'test/embedded_test_server/http_request.cc', 546 "test/net_test_suite.cc",
533 # 'test/embedded_test_server/http_request.h', 547 "test/net_test_suite.h",
534 # 'test/embedded_test_server/http_response.cc', 548 "test/python_utils.cc",
535 # 'test/embedded_test_server/http_response.h', 549 "test/python_utils.h",
536 # 'test/net_test_suite.cc', 550 "test/spawned_test_server/base_test_server.cc",
537 # 'test/net_test_suite.h', 551 "test/spawned_test_server/base_test_server.h",
538 # 'test/python_utils.cc', 552 "test/spawned_test_server/local_test_server_posix.cc",
539 # 'test/python_utils.h', 553 "test/spawned_test_server/local_test_server_win.cc",
540 # 'test/spawned_test_server/base_test_server.cc', 554 "test/spawned_test_server/local_test_server.cc",
541 # 'test/spawned_test_server/base_test_server.h', 555 "test/spawned_test_server/local_test_server.h",
542 # 'test/spawned_test_server/local_test_server_posix.cc', 556 "test/spawned_test_server/remote_test_server.cc",
543 # 'test/spawned_test_server/local_test_server_win.cc', 557 "test/spawned_test_server/remote_test_server.h",
544 # 'test/spawned_test_server/local_test_server.cc', 558 "test/spawned_test_server/spawned_test_server.h",
545 # 'test/spawned_test_server/local_test_server.h', 559 "test/spawned_test_server/spawner_communicator.cc",
546 # 'test/spawned_test_server/remote_test_server.cc', 560 "test/spawned_test_server/spawner_communicator.h",
547 # 'test/spawned_test_server/remote_test_server.h', 561 "url_request/test_url_fetcher_factory.cc",
548 # 'test/spawned_test_server/spawned_test_server.h', 562 "url_request/test_url_fetcher_factory.h",
549 # 'test/spawned_test_server/spawner_communicator.cc', 563 "url_request/url_request_test_util.cc",
550 # 'test/spawned_test_server/spawner_communicator.h', 564 "url_request/url_request_test_util.h",
551 # 'url_request/test_url_fetcher_factory.cc', 565 ]
552 # 'url_request/test_url_fetcher_factory.h', 566
553 # 'url_request/url_request_test_util.cc', 567 configs += [ ":net_win_size_truncation" ]
554 # 'url_request/url_request_test_util.h', 568
555 # ] 569 deps = [
556 # 570 "//base",
557 # deps = [ 571 "//base/test:test_support",
558 # "//base", 572 "//crypto:platform",
559 # "//base/test:test_support", 573 "//net/tools/tld_cleanup",
560 # "//crypto:platform", 574 "//testing/gmock",
561 # "//net/tools/tld_cleanup", 575 "//testing/gtest",
562 # "//testing/gmock", 576 "//url",
563 # "//testing/gtest", 577 ]
564 # "//url", 578
565 # ] 579 if (is_ios) {
566 # 580 deps += [ "//third_party/nss" ]
567 # # TODO(brettw) conditions from GYP 581 }
568 # 582
569 # forward_dependent_configs_from = deps 583 if (!is_android) {
570 #} 584 sources -= [
571 585 "test/spawned_test_server/remote_test_server.cc",
572 # TODO(brettw) remaining targets from GYP file. 586 "test/spawned_test_server/remote_test_server.h",
587 "test/spawned_test_server/spawner_communicator.cc",
588 "test/spawned_test_server/spawner_communicator.h",
589 ]
590 }
591
592 if (use_v8_in_net) {
593 deps += [ ":net_with_v8" ]
594 }
595
596 if (!enable_mdns) {
597 sources -= [
598 "dns/mock_mdns_socket_factory.cc",
599 "dns/mock_mdns_socket_factory.h",
600 ]
601 }
602
603 forward_dependent_configs_from = deps
604 }
605
606 if (use_v8_in_net) {
607 component("net_with_v8") {
608 sources = [
609 "proxy/proxy_resolver_v8.cc",
610 "proxy/proxy_resolver_v8.h",
611 "proxy/proxy_resolver_v8_tracing.cc",
612 "proxy/proxy_resolver_v8_tracing.h",
613 "proxy/proxy_service_v8.cc",
614 "proxy/proxy_service_v8.h",
615 ]
616
617 defines = [ "NET_IMPLEMENTATION" ]
618 configs += [
619 ":net_win_size_truncation",
620 "//build/config/compiler:wexit_time_destructors",
621 ]
622
623 deps = [
624 ":net",
625 "//base",
626 "//gin",
627 "//url",
628 "//v8",
629 ]
630 }
631 }
632
633 if (!is_ios && !is_android) {
634 executable("crash_cache") {
635 sources = [ "tools/crash_cache/crash_cache.cc" ]
636 configs += [ ":net_win_size_truncation" ]
637 deps = [
638 ":net",
639 ":net_test_support",
640 "//base",
641 ]
642 }
643
644 executable("crl_set_dump") {
645 sources = [ "tools/crl_set_dump/crl_set_dump.cc" ]
646 configs += [ ":net_win_size_truncation" ]
647 deps = [
648 ":net",
649 "//base",
650 ]
651 }
652
653 executable("dns_fuzz_stub") {
654 sources = [ "tools/dns_fuzz_stub/dns_fuzz_stub.cc" ]
655 configs += [ ":net_win_size_truncation" ]
656 deps = [
657 ":net",
658 "//base",
659 ]
660 }
661
662 executable("gdig") {
663 sources = [
664 "tools/gdig/file_net_log.cc",
665 "tools/gdig/gdig.cc",
666 ]
667 deps = [
668 ":net",
669 "//base",
670 ]
671 }
672
673 executable("get_server_time") {
674 sources = [ "tools/get_server_time/get_server_time.cc" ]
675 configs += [ ":net_win_size_truncation" ]
676 deps = [
677 ":net",
678 "//base",
679 "//base:i18n",
680 "//url",
681 ]
682 }
683
684 if (use_v8_in_net) {
685 executable("net_watcher") {
686 sources = [ "tools/net_watcher/net_watcher.cc" ]
687 deps = [
688 ":net",
689 ":net_with_v8",
690 "//base",
691 ]
692
693 if (is_linux) {
694 configs += [ "//build/config/linux:gconf" ]
695 deps += [ "//build/config/linux:gio" ]
696 }
697 }
698 }
699
700 executable("run_testserver") {
701 sources = [ "tools/testserver/run_testserver.cc" ]
702 deps = [
703 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not
704 # in the GYP build, and can be removed when the bug is fixed.
705 ":net_test_support",
706 "//base",
707 "//base/test:test_support",
708 "//testing/gtest",
709 ]
710 }
711
712 executable("stress_cache") {
713 sources = [ "disk_cache/blockfile/stress_cache.cc" ]
714 configs += [ ":net_win_size_truncation" ]
715 deps = [
716 ":net",
717 ":net_test_support",
718 "//base",
719 ]
720 }
721
722 executable("tld_cleanup") {
723 sources = [ "tools/tld_cleanup/tld_cleanup.cc" ]
724 configs += [ ":net_win_size_truncation" ]
725 deps = [
726 "//base",
727 "//base:i18n",
728 "//net/tools/tld_cleanup",
729 ]
730 }
731 }
732
733 if (is_linux) {
734 source_set("balsa") {
735 sources = [
736 "tools/balsa/balsa_enums.h",
737 "tools/balsa/balsa_frame.cc",
738 "tools/balsa/balsa_frame.h",
739 "tools/balsa/balsa_headers.cc",
740 "tools/balsa/balsa_headers.h",
741 "tools/balsa/balsa_headers_token_utils.cc",
742 "tools/balsa/balsa_headers_token_utils.h",
743 "tools/balsa/balsa_visitor_interface.h",
744 "tools/balsa/http_message_constants.cc",
745 "tools/balsa/http_message_constants.h",
746 "tools/balsa/noop_balsa_visitor.h",
747 "tools/balsa/simple_buffer.cc",
748 "tools/balsa/simple_buffer.h",
749 "tools/balsa/split.cc",
750 "tools/balsa/split.h",
751 "tools/balsa/string_piece_utils.h",
752 ]
753 deps = [
754 ":net",
755 "//base",
756 ]
757 }
758
759 source_set("epoll_server") {
760 sources = [
761 "tools/epoll_server/epoll_server.cc",
762 "tools/epoll_server/epoll_server.h",
763 ]
764 deps = [
765 ":net",
766 "//base",
767 ]
768 }
769
770 source_set("flip_in_mem_edsm_server_base") {
771 sources = [
772 "tools/dump_cache/url_to_filename_encoder.cc",
773 "tools/dump_cache/url_to_filename_encoder.h",
774 "tools/dump_cache/url_utilities.h",
775 "tools/dump_cache/url_utilities.cc",
776 "tools/flip_server/acceptor_thread.h",
777 "tools/flip_server/acceptor_thread.cc",
778 "tools/flip_server/create_listener.cc",
779 "tools/flip_server/create_listener.h",
780 "tools/flip_server/constants.h",
781 "tools/flip_server/flip_config.cc",
782 "tools/flip_server/flip_config.h",
783 "tools/flip_server/http_interface.cc",
784 "tools/flip_server/http_interface.h",
785 "tools/flip_server/loadtime_measurement.h",
786 "tools/flip_server/mem_cache.h",
787 "tools/flip_server/mem_cache.cc",
788 "tools/flip_server/output_ordering.cc",
789 "tools/flip_server/output_ordering.h",
790 "tools/flip_server/ring_buffer.cc",
791 "tools/flip_server/ring_buffer.h",
792 "tools/flip_server/sm_connection.cc",
793 "tools/flip_server/sm_connection.h",
794 "tools/flip_server/sm_interface.h",
795 "tools/flip_server/spdy_ssl.cc",
796 "tools/flip_server/spdy_ssl.h",
797 "tools/flip_server/spdy_interface.cc",
798 "tools/flip_server/spdy_interface.h",
799 "tools/flip_server/spdy_util.cc",
800 "tools/flip_server/spdy_util.h",
801 "tools/flip_server/streamer_interface.cc",
802 "tools/flip_server/streamer_interface.h",
803 ]
804 deps = [
805 ":balsa",
806 ":epoll_server",
807 ":net",
808 "//base",
809 "//third_party/openssl",
810 ]
811 }
812
813 executable("flip_in_mem_edsm_server_unittests") {
814 sources = [
815 "tools/flip_server/flip_test_utils.cc",
816 "tools/flip_server/flip_test_utils.h",
817 "tools/flip_server/http_interface_test.cc",
818 "tools/flip_server/mem_cache_test.cc",
819 "tools/flip_server/run_all_tests.cc",
820 "tools/flip_server/spdy_interface_test.cc",
821 ]
822 deps = [
823 ":flip_in_mem_edsm_server_base",
824 ":net",
825 ":net_test_support",
826 "//testing/gtest",
827 "//testing/gmock",
828 "//third_party/openssl",
829 ]
830 }
831
832 executable("flip_in_mem_edsm_server") {
833 sources = [ "tools/flip_server/flip_in_mem_edsm_server.cc" ]
834 deps = [
835 ":flip_in_mem_edsm_server_base",
836 ":net",
837 "//base",
838 ]
839 }
840
841 source_set("quic_base") {
842 sources = [
843 "tools/quic/quic_client.cc",
844 "tools/quic/quic_client.h",
845 "tools/quic/quic_client_session.cc",
846 "tools/quic/quic_client_session.h",
847 "tools/quic/quic_default_packet_writer.cc",
848 "tools/quic/quic_default_packet_writer.h",
849 "tools/quic/quic_dispatcher.h",
850 "tools/quic/quic_dispatcher.cc",
851 "tools/quic/quic_epoll_clock.cc",
852 "tools/quic/quic_epoll_clock.h",
853 "tools/quic/quic_epoll_connection_helper.cc",
854 "tools/quic/quic_epoll_connection_helper.h",
855 "tools/quic/quic_in_memory_cache.cc",
856 "tools/quic/quic_in_memory_cache.h",
857 "tools/quic/quic_packet_writer_wrapper.cc",
858 "tools/quic/quic_packet_writer_wrapper.h",
859 "tools/quic/quic_server.cc",
860 "tools/quic/quic_server.h",
861 "tools/quic/quic_server_session.cc",
862 "tools/quic/quic_server_session.h",
863 "tools/quic/quic_socket_utils.cc",
864 "tools/quic/quic_socket_utils.h",
865 "tools/quic/quic_spdy_client_stream.cc",
866 "tools/quic/quic_spdy_client_stream.h",
867 "tools/quic/quic_spdy_server_stream.cc",
868 "tools/quic/quic_spdy_server_stream.h",
869 "tools/quic/quic_time_wait_list_manager.h",
870 "tools/quic/quic_time_wait_list_manager.cc",
871 "tools/quic/spdy_utils.cc",
872 "tools/quic/spdy_utils.h",
873 ]
874 deps = [
875 ":balsa",
876 ":epoll_server",
877 ":net",
878 "//base",
879 "//base/third_party/dynamic_annotations",
880 "//crypto",
881 "//third_party/openssl",
882 "//url",
883 ]
884 }
885
886 executable("quic_client") {
887 sources = [ "tools/quic/quic_client_bin.cc" ]
888 deps = [
889 ":quic_base",
890 ":net",
891 "//base",
892 "//third_party/openssl",
893 ]
894 }
895
896 executable("quic_server") {
897 sources = [ "tools/quic/quic_server_bin.cc" ]
898 deps = [
899 ":quic_base",
900 ":net",
901 "//base",
902 "//third_party/openssl",
903 ]
904 }
905 }
906
907 # TODO(GYP) Android net_jni_headers target and related.
908
909 if (is_android || is_linux) {
910 executable("disk_cache_memory_test") {
911 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ]
912 deps = [
913 ":net",
914 "//base",
915 ]
916 }
917 }
OLDNEW
« no previous file with comments | « build/config/linux/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698