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

Unified Diff: net/net.gyp

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 side-by-side diff with in-line comments
Download patch
Index: net/net.gyp
diff --git a/net/net.gyp b/net/net.gyp
index b7bd047f05720734e136ee4e20858a08b470bb7d..552293e282f1cabef29ed579a76d6b60f9039195 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -45,6 +45,42 @@
],
'targets': [
{
+ 'target_name': 'net_derived_sources',
+ 'type': 'none',
+ 'sources': [
+ 'base/registry_controlled_domains/effective_tld_names.gperf',
+ 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf',
+ 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf',
+ 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf',
+ 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf',
+ 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf',
+ 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'dafsa',
+ 'extension': 'gperf',
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
+ ],
+ 'inputs': [
+ 'tools/tld_cleanup/make_dafsa.py',
+ ],
+ 'action': [
+ 'python',
+ 'tools/tld_cleanup/make_dafsa.py',
+ '<(RULE_INPUT_PATH)',
+ '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
+ ],
+ },
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)'
+ ],
+ },
+ },
+ {
'target_name': 'net',
'type': '<(component)',
'variables': { 'enable_wexit_time_destructors': 1, },
@@ -58,6 +94,7 @@
'../third_party/icu/icu.gyp:icuuc',
'../third_party/zlib/zlib.gyp:zlib',
'../url/url.gyp:url_lib',
+ 'net_derived_sources',
'net_resources',
],
'sources': [
@@ -489,7 +526,8 @@
'../url/url.gyp:url_lib',
'http_server',
'net',
- 'net_test_support'
+ 'net_derived_sources',
+ 'net_test_support',
],
'sources': [
'<@(net_test_sources)',

Powered by Google App Engine
This is Rietveld 408576698