summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/net/SConscript')
-rw-r--r--src/mongo/util/net/SConscript21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/mongo/util/net/SConscript b/src/mongo/util/net/SConscript
index 45deefd544c..b8c397f1e93 100644
--- a/src/mongo/util/net/SConscript
+++ b/src/mongo/util/net/SConscript
@@ -177,9 +177,20 @@ else:
],
)
+env.Library(
+ target='http_client',
+ source=[
+ 'http_client.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/base',
+ ],
+)
+
+
if http_client == "off":
env.Library(
- target='http_client',
+ target='http_client_impl',
source=[
'http_client_none.cpp',
],
@@ -189,12 +200,18 @@ if http_client == "off":
)
else:
env.Library(
- target='http_client',
+ target='http_client_impl',
source=[
'http_client_winhttp.cpp' if env.TargetOSIs('windows') else 'http_client_curl.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
+ 'http_client',
+ ],
+ LIBDEPS_PRIVATE=[
+ '$BUILD_DIR/mongo/executor/connection_pool_executor',
+ '$BUILD_DIR/mongo/util/alarm',
+ 'network',
],
SYSLIBDEPS=[
'winhttp' if env.TargetOSIs('windows') else 'curl',