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

Side by Side Diff: net/BUILD.gn

Issue 862813002: WIP: Prototype OOP V8 PAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight cleanup and report JS memory usage. 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
« no previous file with comments | « mojo/public/cpp/environment/mojo_public_environment_export.h ('k') | net/DEPS » ('j') | 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("//build/module_args/v8.gni") 8 import("//build/module_args/v8.gni")
9 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 import("//url/config.gni") 10 import("//url/config.gni")
10 import("//testing/test.gni") 11 import("//testing/test.gni")
11 12
12 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. 13 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni.
13 # Currently, that file can't be imported multiple times. Make this always 14 # Currently, that file can't be imported multiple times. Make this always
14 # imported when http://crbug.com/393704 is fixed. 15 # imported when http://crbug.com/393704 is fixed.
15 if (!is_android) { 16 if (!is_android) {
16 import("//tools/grit/grit_rule.gni") 17 import("//tools/grit/grit_rule.gni")
17 } 18 }
18 19
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 63 }
63 64
64 # Disables Windows warning about size to int truncations. 65 # Disables Windows warning about size to int truncations.
65 # TODO(jschuh): crbug.com/167187 fix this and delete this config. 66 # TODO(jschuh): crbug.com/167187 fix this and delete this config.
66 config("net_win_size_truncation") { 67 config("net_win_size_truncation") {
67 if (is_win) { 68 if (is_win) {
68 cflags = [ "/wd4267" ] 69 cflags = [ "/wd4267" ]
69 } 70 }
70 } 71 }
71 72
73 mojom("net_mojom") {
74 sources = [
75 "dns/host_resolver.mojom",
76 ]
77 }
78
72 component("net") { 79 component("net") {
73 sources = 80 sources =
74 gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources 81 gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources
75 82
76 cflags = [] 83 cflags = []
77 defines = [ 84 defines = [
78 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to 85 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to
79 # 0) which implies that we run pkg_config on kerberos and link to that 86 # 0) which implies that we run pkg_config on kerberos and link to that
80 # rather than setting this define which will dynamically open it. That 87 # rather than setting this define which will dynamically open it. That
81 # doesn't seem to be set in the regular builds, so we're skipping this 88 # doesn't seem to be set in the regular builds, so we're skipping this
82 # capability here. 89 # capability here.
83 "DLOPEN_KERBEROS", 90 "DLOPEN_KERBEROS",
84 "NET_IMPLEMENTATION", 91 "NET_IMPLEMENTATION",
85 ] 92 ]
86 configs += [ ":net_win_size_truncation" ] 93 configs += [ ":net_win_size_truncation" ]
87 public_configs = [ ":net_config" ] 94 public_configs = [ ":net_config" ]
88 include_dirs = [] 95 include_dirs = []
89 96
90 public_deps = [ 97 public_deps = [
91 "//crypto", 98 "//crypto",
92 "//crypto:platform", 99 "//crypto:platform",
93 ] 100 ]
94 deps = [ 101 deps = [
102 # TODO(amistry): Clean up these 4 deps.
103 ":net_mojom",
104 "//mojo/environment:chromium",
105 "//third_party/mojo/src/mojo/public/cpp/bindings",
106 "//third_party/mojo/src/mojo/edk/system",
95 ":net_resources", 107 ":net_resources",
96 "//base", 108 "//base",
97 "//base:i18n", 109 "//base:i18n",
98 "//base:prefs", 110 "//base:prefs",
99 "//base/third_party/dynamic_annotations", 111 "//base/third_party/dynamic_annotations",
100 "//net/base/registry_controlled_domains", 112 "//net/base/registry_controlled_domains",
101 "//sdch", 113 "//sdch",
102 "//third_party/icu", 114 "//third_party/icu",
103 "//third_party/zlib", 115 "//third_party/zlib",
104 "//url", 116 "//url",
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 "tools/quic/spdy_utils.h", 767 "tools/quic/spdy_utils.h",
756 ] 768 ]
757 deps = [ 769 deps = [
758 ":net", 770 ":net",
759 "//base", 771 "//base",
760 "//url", 772 "//url",
761 ] 773 ]
762 } 774 }
763 775
764 if (use_v8_in_net) { 776 if (use_v8_in_net) {
777 mojom("resolver_mojom") {
778 sources = [
779 "proxy/proxy_resolver.mojom",
780 ]
781 }
782
765 component("net_with_v8") { 783 component("net_with_v8") {
766 sources = [ 784 sources = [
785 "proxy/proxy_resolver_mojo.cc",
786 "proxy/proxy_resolver_mojo.h",
787 "proxy/proxy_resolver_mojo_host.cc",
788 "proxy/proxy_resolver_mojo_host.h",
789 "proxy/proxy_resolver_error_observer_mojo.cc",
790 "proxy/proxy_resolver_error_observer_mojo.h",
791 "proxy/proxy_resolver_error_observer_mojo_host.cc",
792 "proxy/proxy_resolver_error_observer_mojo_host.h",
767 "proxy/proxy_resolver_v8.cc", 793 "proxy/proxy_resolver_v8.cc",
768 "proxy/proxy_resolver_v8.h", 794 "proxy/proxy_resolver_v8.h",
769 "proxy/proxy_resolver_v8_tracing.cc", 795 "proxy/proxy_resolver_v8_tracing.cc",
770 "proxy/proxy_resolver_v8_tracing.h", 796 "proxy/proxy_resolver_v8_tracing.h",
771 "proxy/proxy_service_v8.cc", 797 "proxy/proxy_service_v8.cc",
772 "proxy/proxy_service_v8.h", 798 "proxy/proxy_service_v8.h",
773 ] 799 ]
774 800
775 defines = [ "NET_IMPLEMENTATION" ] 801 defines = [ "NET_IMPLEMENTATION" ]
776 configs += [ 802 configs += [
777 ":net_win_size_truncation", 803 ":net_win_size_truncation",
778 "//build/config/compiler:wexit_time_destructors", 804 "//build/config/compiler:wexit_time_destructors",
779 ] 805 ]
780 806
781 public_deps = [ 807 public_deps = [
782 ":net", 808 ":net",
809 ":net_mojom",
810 ":resolver_mojom",
811 "//mojo/common",
812 "//mojo/environment:chromium",
813 "//third_party/mojo/src/mojo/public/cpp/bindings",
814 "//third_party/mojo/src/mojo/edk/system",
783 ] 815 ]
784 deps = [ 816 deps = [
785 "//base", 817 "//base",
786 "//gin", 818 "//gin",
787 "//url", 819 "//url",
788 "//v8", 820 "//v8",
789 ] 821 ]
790 } 822 }
791 } 823 }
792 824
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 "quic/quic_server_bin.cc", 1439 "quic/quic_server_bin.cc",
1408 ] 1440 ]
1409 deps = [ 1441 deps = [
1410 ":quic_tools", 1442 ":quic_tools",
1411 ":net", 1443 ":net",
1412 "//base", 1444 "//base",
1413 "//third_party/boringssl", 1445 "//third_party/boringssl",
1414 ] 1446 ]
1415 } 1447 }
1416 } # !is_android && !is_win && !is_mac 1448 } # !is_android && !is_win && !is_mac
OLDNEW
« no previous file with comments | « mojo/public/cpp/environment/mojo_public_environment_export.h ('k') | net/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698