summaryrefslogtreecommitdiff
path: root/src/mongo/util/net
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-04-24 10:55:38 -0400
committerAndrew Morrow <acm@mongodb.com>2015-04-24 15:31:07 -0400
commit71d811f204f17c43d93b7f929f6c25ce097c2952 (patch)
tree239d29cd5dc7c9977e29f2b91fdd398b78e54259 /src/mongo/util/net
parentb60991764cd707811a1796043711466198fa1473 (diff)
downloadmongo-71d811f204f17c43d93b7f929f6c25ce097c2952.tar.gz
SERVER-9666 Push network and hostandport into util/net
Diffstat (limited to 'src/mongo/util/net')
-rw-r--r--src/mongo/util/net/SConscript47
1 files changed, 46 insertions, 1 deletions
diff --git a/src/mongo/util/net/SConscript b/src/mongo/util/net/SConscript
index 1d222a7b498..d8900b74963 100644
--- a/src/mongo/util/net/SConscript
+++ b/src/mongo/util/net/SConscript
@@ -2,13 +2,58 @@
Import('env')
+env.Library(
+ target='hostandport',
+ source=[
+ 'hostandport.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/util/foundation',
+ '$BUILD_DIR/mongo/server_options_core',
+ ],
+)
+
+env.CppUnitTest(
+ target='hostandport_test',
+ source=[
+ 'hostandport_test.cpp'
+ ],
+ LIBDEPS=[
+ 'hostandport',
+ ],
+)
+
+env.Library(
+ target='network',
+ source=[
+ "httpclient.cpp",
+ "listen.cpp",
+ "message.cpp",
+ "message_port.cpp",
+ "sock.cpp",
+ "socket_poll.cpp",
+ "ssl_expiration.cpp",
+ "ssl_manager.cpp",
+ "ssl_options.cpp",
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/background_job',
+ '$BUILD_DIR/mongo/fail_point',
+ '$BUILD_DIR/mongo/server_options_core',
+ '$BUILD_DIR/mongo/util/concurrency/ticketholder',
+ '$BUILD_DIR/mongo/util/foundation',
+ '$BUILD_DIR/mongo/util/options_parser/options_parser',
+ 'hostandport',
+ ],
+)
+
env.CppUnitTest(
target='sock_test',
source=[
'sock_test.cpp',
],
LIBDEPS=[
- '$BUILD_DIR/mongo/network',
'$BUILD_DIR/mongo/util/concurrency/synchronization',
+ 'network',
],
)