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

Side by Side Diff: net/BUILD.gn

Issue 913373002: Update Chomium's build files to work w/ latest GN binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_cpu_arch_changes
Patch Set: merge to #317214 Created 5 years, 10 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
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("//build/module_args/v8.gni") 8 import("//build/module_args/v8.gni")
9 import("//url/config.gni") 9 import("//url/config.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 20 matching lines...) Expand all
31 31
32 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs 32 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs
33 # configuration (krb5.conf and so on). 33 # configuration (krb5.conf and so on).
34 use_kerberos = !is_chromeos && !is_android && !is_ios 34 use_kerberos = !is_chromeos && !is_android && !is_ios
35 35
36 # The way the cache uses mmap() is inefficient on some Android devices. If 36 # The way the cache uses mmap() is inefficient on some Android devices. If
37 # this flag is set, we hackily avoid using mmap() in the disk cache. We are 37 # this flag is set, we hackily avoid using mmap() in the disk cache. We are
38 # pretty confident that mmap-ing the index would not hurt any existing x86 38 # pretty confident that mmap-ing the index would not hurt any existing x86
39 # android devices, but we cannot be so sure about the variety of ARM devices. 39 # android devices, but we cannot be so sure about the variety of ARM devices.
40 # So enable it for x86 only for now. 40 # So enable it for x86 only for now.
41 posix_avoid_mmap = is_android && cpu_arch != "x86" 41 posix_avoid_mmap = is_android && current_cpu != "x86"
42 42
43 # WebSockets and socket stream code are used everywhere except iOS. 43 # WebSockets and socket stream code are used everywhere except iOS.
44 enable_websockets = !is_ios 44 enable_websockets = !is_ios
45 use_v8_in_net = !is_ios 45 use_v8_in_net = !is_ios
46 enable_built_in_dns = !is_ios 46 enable_built_in_dns = !is_ios
47 disable_ftp_support = is_ios 47 disable_ftp_support = is_ios
48 48
49 declare_args() { 49 declare_args() {
50 # Disables support for file URLs. File URL support requires use of icu. 50 # Disables support for file URLs. File URL support requires use of icu.
51 disable_file_support = false 51 disable_file_support = false
(...skipping 16 matching lines...) Expand all
68 cflags = [] 68 cflags = []
69 defines = [ 69 defines = [
70 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to 70 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to
71 # 0) which implies that we run pkg_config on kerberos and link to that 71 # 0) which implies that we run pkg_config on kerberos and link to that
72 # rather than setting this define which will dynamically open it. That 72 # rather than setting this define which will dynamically open it. That
73 # doesn't seem to be set in the regular builds, so we're skipping this 73 # doesn't seem to be set in the regular builds, so we're skipping this
74 # capability here. 74 # capability here.
75 "DLOPEN_KERBEROS", 75 "DLOPEN_KERBEROS",
76 "NET_IMPLEMENTATION", 76 "NET_IMPLEMENTATION",
77 ] 77 ]
78
78 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 79 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
79 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 80 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
80 public_configs = [ ":net_config" ] 81 public_configs = [ ":net_config" ]
81 include_dirs = [] 82 include_dirs = []
82 83
83 public_deps = [ 84 public_deps = [
84 "//crypto", 85 "//crypto",
85 "//crypto:platform", 86 "//crypto:platform",
86 ] 87 ]
87 deps = [ 88 deps = [
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 ] 814 ]
814 } 815 }
815 } 816 }
816 817
817 if (!is_ios && !is_android) { 818 if (!is_ios && !is_android) {
818 executable("crash_cache") { 819 executable("crash_cache") {
819 testonly = true 820 testonly = true
820 sources = [ 821 sources = [
821 "tools/crash_cache/crash_cache.cc", 822 "tools/crash_cache/crash_cache.cc",
822 ] 823 ]
824
823 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 825 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
824 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 826 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
825 deps = [ 827 deps = [
826 ":net", 828 ":net",
827 ":test_support", 829 ":test_support",
828 "//base", 830 "//base",
829 ] 831 ]
830 } 832 }
831 833
832 executable("crl_set_dump") { 834 executable("crl_set_dump") {
833 testonly = true 835 testonly = true
834 sources = [ 836 sources = [
835 "tools/crl_set_dump/crl_set_dump.cc", 837 "tools/crl_set_dump/crl_set_dump.cc",
836 ] 838 ]
839
837 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 840 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
838 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 841 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
839 deps = [ 842 deps = [
840 ":net", 843 ":net",
841 "//base", 844 "//base",
842 ] 845 ]
843 } 846 }
844 847
845 executable("dns_fuzz_stub") { 848 executable("dns_fuzz_stub") {
846 testonly = true 849 testonly = true
847 sources = [ 850 sources = [
848 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", 851 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
849 ] 852 ]
853
850 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 854 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
851 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 855 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
852 deps = [ 856 deps = [
853 ":net", 857 ":net",
854 "//base", 858 "//base",
855 ] 859 ]
856 } 860 }
857 861
858 executable("gdig") { 862 executable("gdig") {
859 testonly = true 863 testonly = true
860 sources = [ 864 sources = [
861 "tools/gdig/file_net_log.cc", 865 "tools/gdig/file_net_log.cc",
862 "tools/gdig/gdig.cc", 866 "tools/gdig/gdig.cc",
863 ] 867 ]
864 deps = [ 868 deps = [
865 ":net", 869 ":net",
866 "//base", 870 "//base",
867 ] 871 ]
868 } 872 }
869 873
870 executable("get_server_time") { 874 executable("get_server_time") {
871 testonly = true 875 testonly = true
872 sources = [ 876 sources = [
873 "tools/get_server_time/get_server_time.cc", 877 "tools/get_server_time/get_server_time.cc",
874 ] 878 ]
879
875 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 880 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
876 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 881 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
877 deps = [ 882 deps = [
878 ":net", 883 ":net",
879 "//base", 884 "//base",
880 "//base:i18n", 885 "//base:i18n",
881 "//url", 886 "//url",
882 ] 887 ]
883 } 888 }
884 889
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 "//base/test:test_support", 922 "//base/test:test_support",
918 "//testing/gtest", 923 "//testing/gtest",
919 ] 924 ]
920 } 925 }
921 926
922 executable("stress_cache") { 927 executable("stress_cache") {
923 testonly = true 928 testonly = true
924 sources = [ 929 sources = [
925 "disk_cache/blockfile/stress_cache.cc", 930 "disk_cache/blockfile/stress_cache.cc",
926 ] 931 ]
932
927 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 933 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
928 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 934 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
929 deps = [ 935 deps = [
930 ":net", 936 ":net",
931 ":test_support", 937 ":test_support",
932 "//base", 938 "//base",
933 ] 939 ]
934 } 940 }
935 941
936 executable("tld_cleanup") { 942 executable("tld_cleanup") {
937 sources = [ 943 sources = [
938 "tools/tld_cleanup/tld_cleanup.cc", 944 "tools/tld_cleanup/tld_cleanup.cc",
939 ] 945 ]
946
940 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 947 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
941 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 948 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
942 deps = [ 949 deps = [
943 "//base", 950 "//base",
944 "//base:i18n", 951 "//base:i18n",
945 "//net/tools/tld_cleanup", 952 "//net/tools/tld_cleanup",
946 ] 953 ]
947 } 954 }
948 } 955 }
949 956
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 "quic/quic_server_bin.cc", 1455 "quic/quic_server_bin.cc",
1449 ] 1456 ]
1450 deps = [ 1457 deps = [
1451 ":quic_tools", 1458 ":quic_tools",
1452 ":net", 1459 ":net",
1453 "//base", 1460 "//base",
1454 "//third_party/boringssl", 1461 "//third_party/boringssl",
1455 ] 1462 ]
1456 } 1463 }
1457 } # !is_android && !is_win && !is_mac 1464 } # !is_android && !is_win && !is_mac
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698