summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/SConscript
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2018-03-15 16:50:29 -0400
committerHenrik Edin <henrik.edin@mongodb.com>2018-03-23 11:47:39 -0400
commit49138e688e51b8397bc32d8c875ea10ef968af4c (patch)
tree6226316e9ceb4ebada810e832ea4acbdbd8277c3 /src/mongo/db/auth/SConscript
parente06bf692e42a84eae9f74001d7f5677b91c26cad (diff)
downloadmongo-49138e688e51b8397bc32d8c875ea10ef968af4c.tar.gz
SERVER-33889 Split dcommands and core into libraries for embedded vs standalone process applications. Refactored commands libraries throughout the codebase and made their uses be LIBDEPS_PRIVATE when possible as most commands don't export any symbols and don't even have headerfiles.
Diffstat (limited to 'src/mongo/db/auth/SConscript')
-rw-r--r--src/mongo/db/auth/SConscript64
1 files changed, 36 insertions, 28 deletions
diff --git a/src/mongo/db/auth/SConscript b/src/mongo/db/auth/SConscript
index a13216efbb2..e3afcfc79d9 100644
--- a/src/mongo/db/auth/SConscript
+++ b/src/mongo/db/auth/SConscript
@@ -136,20 +136,27 @@ env.Library(
],
)
-env.Library('authservercommon',
- [
- 'authz_session_external_state_server_common.cpp',
- 'sasl_commands.cpp',
- 'security_key.cpp',
- ],
- LIBDEPS=[
- '$BUILD_DIR/mongo/db/commands/core',
- 'authcommon',
- 'authcore',
- 'authorization_manager_global',
- 'saslauth',
- 'security_file',
- ])
+env.Library(
+ target='authservercommon',
+ source=[
+ 'authz_session_external_state_server_common.cpp',
+ 'sasl_commands.cpp',
+ 'security_key.cpp',
+ ],
+ LIBDEPS=[
+ 'authcommon',
+ 'authcore',
+ 'authorization_manager_global',
+ 'saslauth',
+ 'security_file',
+ ],
+ LIBDEPS_PRIVATE=[
+ '$BUILD_DIR/mongo/client/sasl_client',
+ '$BUILD_DIR/mongo/db/commands',
+ '$BUILD_DIR/mongo/db/commands/servers',
+ '$BUILD_DIR/mongo/db/commands/test_commands_enabled',
+ ]
+)
env.Library('security_file',
['security_file.cpp'],
@@ -167,20 +174,21 @@ env.Library('sasl_options',
],
)
-env.Library('saslauth',
- [
- 'sasl_mechanism_registry.cpp',
- 'sasl_plain_server_conversation.cpp',
- 'sasl_scram_server_conversation.cpp',
- ],
- LIBDEPS=[
- 'authcore',
- 'sasl_options',
- '$BUILD_DIR/mongo/base/secure_allocator',
- '$BUILD_DIR/mongo/db/commands/test_commands_enabled',
- '$BUILD_DIR/mongo/util/icu',
- '$BUILD_DIR/mongo/util/net/network',
- ],
+env.Library(
+ target='saslauth',
+ source=[
+ 'sasl_mechanism_registry.cpp',
+ 'sasl_plain_server_conversation.cpp',
+ 'sasl_scram_server_conversation.cpp',
+ ],
+ LIBDEPS=[
+ 'authcore',
+ 'sasl_options',
+ '$BUILD_DIR/mongo/base/secure_allocator',
+ '$BUILD_DIR/mongo/db/commands/test_commands_enabled',
+ '$BUILD_DIR/mongo/util/icu',
+ '$BUILD_DIR/mongo/util/net/network',
+ ],
)
env.CppUnitTest(target='sasl_mechanism_registry_test',