summaryrefslogtreecommitdiff
path: root/src/mongo/transport/SConscript
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2016-12-07 15:00:49 -0800
committerJonathan Reams <jbreams@mongodb.com>2017-06-01 10:48:21 -0400
commit85d4a3a085c67f2258b60b07259db73e2f29ea50 (patch)
tree702eb21467bb8f847f23f0c3e7f17cc29b8d6e54 /src/mongo/transport/SConscript
parentdbfe5d9d6cec92995b8879e818b75526fbf6b9b2 (diff)
downloadmongo-85d4a3a085c67f2258b60b07259db73e2f29ea50.tar.gz
SERVER-27310 Add support for zlib wire protocol compression
Closes #1152 Signed-off-by: Jonathan Reams <jbreams@mongodb.com>
Diffstat (limited to 'src/mongo/transport/SConscript')
-rw-r--r--src/mongo/transport/SConscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/transport/SConscript b/src/mongo/transport/SConscript
index b365613660d..4d66ab981e1 100644
--- a/src/mongo/transport/SConscript
+++ b/src/mongo/transport/SConscript
@@ -103,19 +103,24 @@ env.CppUnitTest(
],
)
-env.Library(
+
+zlibEnv = env.Clone()
+zlibEnv.InjectThirdPartyIncludePaths(libraries=['zlib'])
+zlibEnv.Library(
target='message_compressor',
source=[
'message_compressor_manager.cpp',
'message_compressor_metrics.cpp',
'message_compressor_registry.cpp',
'message_compressor_snappy.cpp',
+ 'message_compressor_zlib.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/util/decorable',
'$BUILD_DIR/mongo/util/options_parser/options_parser',
'$BUILD_DIR/third_party/shim_snappy',
+ '$BUILD_DIR/third_party/shim_zlib',
]
)