diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 13:32:22 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 13:32:22 +0000 |
commit | ef36c74c2e00d7559fd30eda9b7264e2777bb5fe (patch) | |
tree | 3b72bcd66671ffd030e013db852d5162e531eb34 /net/net.gyp | |
parent | 03066d1ea3e15d710f2ee87b18b790567498cdd7 (diff) | |
download | chromium_src-ef36c74c2e00d7559fd30eda9b7264e2777bb5fe.zip chromium_src-ef36c74c2e00d7559fd30eda9b7264e2777bb5fe.tar.gz chromium_src-ef36c74c2e00d7559fd30eda9b7264e2777bb5fe.tar.bz2 |
net_resources unfork
- bring the rules for grit all in align for common style/dir names.
- make the mac build net:net_resource (was win/linux only)
- ripple the mac dep upstream
- merge net_resource into the chrome repack
more work is needed on the mac side, we aren't really using the new resources
yet, but this is a clean landing point.
Review URL: http://codereview.chromium.org/45001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/net.gyp')
-rw-r--r-- | net/net.gyp | 64 |
1 files changed, 27 insertions, 37 deletions
diff --git a/net/net.gyp b/net/net.gyp index 019555c..dd02f9d 100644 --- a/net/net.gyp +++ b/net/net.gyp @@ -23,6 +23,7 @@ '../third_party/icu38/icu38.gyp:icuuc', '../third_party/modp_b64/modp_b64.gyp:modp_b64', '../third_party/zlib/zlib.gyp:zlib', + 'net_resources', ], 'msvs_guid': '326E9795-E760-410A-B69A-3F79DB3F5243', 'sources': [ @@ -304,7 +305,6 @@ 'base/tcp_client_socket_libevent.cc', ], 'dependencies': [ - 'net_resources', 'tld_cleanup', ], 'configurations': { @@ -327,9 +327,6 @@ ], [ 'OS == "linux"', { 'sources/': [ ['exclude', '_(mac|win)\\.cc$'] ], - 'dependencies': [ - 'net_resources', - ], }, { # else: OS != "linux" 'sources!': [ @@ -534,44 +531,37 @@ 'disk_cache/disk_cache_test_util.h', ], }, - ], - 'conditions': [ - ['OS!="mac"', { - 'targets': [ + { + 'target_name': 'net_resources', + 'type': 'none', + 'msvs_guid': '8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942', + 'rules': [ { - 'target_name': 'net_resources', - 'type': 'none', - 'msvs_guid': '8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942', - 'sources': [ - 'base/net_resources.grd', + 'rule_name': 'grit', + 'extension': 'grd', + 'inputs': [ + '<(DEPTH)/tools/grit/grit.py', ], - #'msvs_tool_files': ['../tools/grit/build/grit_resources.rules'], - # This was orignally in grit_resources.rules - # NOTE: this version doesn't mimic the Properties specified there. - 'rules': [ - { - 'rule_name': 'grit', - 'extension': 'grd', - 'inputs': [ - '<(DEPTH)/tools/grit/grit.py', - ], - 'outputs': [ - '<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources/grit/<(RULE_INPUT_ROOT).h', - '<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources/<(RULE_INPUT_ROOT).rc', - '<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources/<(RULE_INPUT_ROOT).pak', - ], - 'action': - ['python', '<(DEPTH)/tools/grit/grit.py', '-i', '<(RULE_INPUT_PATH)', 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources'], - }, + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/net/grit/<(RULE_INPUT_ROOT).h', + '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_ROOT).rc', + '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_ROOT).pak', ], - 'direct_dependent_settings': { - 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources', - ], - }, + 'action': + ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/net'], }, ], - }], + 'sources': [ + 'base/net_resources.grd', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)/net', + ], + }, + }, + ], + 'conditions': [ ['OS=="win"', { 'targets': [ { |