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

Side by Side Diff: net/BUILD.gn

Issue 270363003: Reduce footprint of registry controlled domain table (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 6 years, 7 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 | « no previous file | net/base/registry_controlled_domains/effective_tld_names_unittest1.cc » ('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("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 # Disables Windows warning about size to int truncations. 57 # Disables Windows warning about size to int truncations.
58 # TODO(jschuh): crbug.com/167187 fix this and delete this config. 58 # TODO(jschuh): crbug.com/167187 fix this and delete this config.
59 config("net_win_size_truncation") { 59 config("net_win_size_truncation") {
60 if (is_win) { 60 if (is_win) {
61 cflags = [ "/wd4267" ] 61 cflags = [ "/wd4267" ]
62 } 62 }
63 } 63 }
64 64
65 action_foreach("net_derived_sources") {
66 script = "tools/tld_cleanup/make_dafsa.py"
67 sources = [
68 "base/registry_controlled_domains/effective_tld_names.gperf",
69 "base/registry_controlled_domains/effective_tld_names_unittest1.gperf",
70 "base/registry_controlled_domains/effective_tld_names_unittest2.gperf",
71 "base/registry_controlled_domains/effective_tld_names_unittest3.gperf",
72 "base/registry_controlled_domains/effective_tld_names_unittest4.gperf",
73 "base/registry_controlled_domains/effective_tld_names_unittest5.gperf",
74 "base/registry_controlled_domains/effective_tld_names_unittest6.gperf",
75 ]
76 outputs = [
77 "${root_gen_dir}/net/base/registry_controlled_domains/{{source_name_part}}-i nc.cc"
Ryan Sleevi 2014/05/07 22:54:25 It'd be great to be able to do something like "${r
brettw 2014/05/07 23:53:59 Ah, here's what you do: Move this action to a new
78 ]
79 args = [
80 "{{source}}",
81 rebase_path("${root_gen_dir}/net/base/registry_controlled_domains/{{source_n ame_part}}-inc.cc", root_build_dir)
82 ]
83 }
84
65 component("net") { 85 component("net") {
66 sources = 86 sources =
67 gypi_values.net_nacl_common_sources + 87 gypi_values.net_nacl_common_sources +
68 gypi_values.net_non_nacl_sources 88 gypi_values.net_non_nacl_sources
69 89
70 cflags = [] 90 cflags = []
71 defines = [ 91 defines = [
72 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to 92 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to
73 # 0) which implies that we run pkg_config on kerberos and link to that 93 # 0) which implies that we run pkg_config on kerberos and link to that
74 # rather than setting this define which will dynamically open it. That 94 # rather than setting this define which will dynamically open it. That
75 # doesn't seem to be set in the regular builds, so we're skipping this 95 # doesn't seem to be set in the regular builds, so we're skipping this
76 # capability here. 96 # capability here.
77 "DLOPEN_KERBEROS", 97 "DLOPEN_KERBEROS",
78 "NET_IMPLEMENTATION" 98 "NET_IMPLEMENTATION"
79 ] 99 ]
80 configs += [ ":net_win_size_truncation" ] 100 configs += [ ":net_win_size_truncation" ]
81 direct_dependent_configs = [ ":net_config" ] 101 direct_dependent_configs = [ ":net_config" ]
82 include_dirs = [] 102 include_dirs = []
83 103
84 deps = [ 104 deps = [
105 ":net_derived_sources",
85 ":net_resources", 106 ":net_resources",
86 "//base", 107 "//base",
87 "//base:i18n", 108 "//base:i18n",
88 "//base/third_party/dynamic_annotations", 109 "//base/third_party/dynamic_annotations",
89 "//crypto", 110 "//crypto",
90 "//crypto:platform", 111 "//crypto:platform",
91 "//sdch", 112 "//sdch",
92 "//third_party/icu", 113 "//third_party/icu",
93 "//third_party/zlib", 114 "//third_party/zlib",
94 "//url", 115 "//url",
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 964
944 if (is_android || is_linux) { 965 if (is_android || is_linux) {
945 executable("disk_cache_memory_test") { 966 executable("disk_cache_memory_test") {
946 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] 967 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ]
947 deps = [ 968 deps = [
948 ":net", 969 ":net",
949 "//base", 970 "//base",
950 ] 971 ]
951 } 972 }
952 } 973 }
OLDNEW
« no previous file with comments | « no previous file | net/base/registry_controlled_domains/effective_tld_names_unittest1.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698