Compile fetch_server on POSIX.
More tidy cross-platformness (typedefs instead of #defines) and other simple related cleanups.
TEST=none
http://crbug.com/14191
Review URL: http://codereview.chromium.org/126218
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18607 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/net.gyp b/net/net.gyp
index eee05cf..9296919e 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -634,6 +634,26 @@
'tools/fetch/fetch_client.cc',
],
},
+ {
+ 'target_name': 'fetch_server',
+ 'type': 'executable',
+ 'dependencies': [
+ 'net',
+ '../base/base.gyp:base',
+ '../base/base.gyp:test_support_base',
+ '../testing/gtest.gyp:gtest',
+ ],
+ 'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B124',
+ 'sources': [
+ 'tools/fetch/fetch_server.cc',
+ 'tools/fetch/http_listen_socket.cc',
+ 'tools/fetch/http_listen_socket.h',
+ 'tools/fetch/http_server.cc',
+ 'tools/fetch/http_server.h',
+ 'tools/fetch/http_session.cc',
+ 'tools/fetch/http_session.h',
+ ],
+ },
],
'conditions': [
['OS=="win"', {
@@ -652,27 +672,6 @@
'tools/dump_cache/upgrade.cc',
],
},
- {
- # TODO(port): fetch_server uses Windows-specific SOCKET.
- 'target_name': 'fetch_server',
- 'type': 'executable',
- 'dependencies': [
- 'net',
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../testing/gtest.gyp:gtest',
- ],
- 'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B124',
- 'sources': [
- 'tools/fetch/fetch_server.cc',
- 'tools/fetch/http_listen_socket.cc',
- 'tools/fetch/http_listen_socket.h',
- 'tools/fetch/http_server.cc',
- 'tools/fetch/http_server.h',
- 'tools/fetch/http_session.cc',
- 'tools/fetch/http_session.h',
- ],
- },
],
}],
],