|
2 | 2 |
|
3 | 3 | Import("env") |
4 | 4 |
|
5 | | -env.StaticLibrary('serverauth', ['mongo_authentication_session.cpp']) |
| 5 | +env.Library('serverauth', ['mongo_authentication_session.cpp']) |
6 | 6 |
|
7 | 7 | env.Command(['action_type.h', 'action_type.cpp'], ['generate_action_types.py', 'action_types.txt'], |
8 | 8 | '$PYTHON $SOURCES $TARGETS') |
9 | 9 |
|
10 | 10 | # Just the data structures used |
11 | | -env.StaticLibrary('authcore', ['action_set.cpp', |
12 | | - 'action_type.cpp', |
13 | | - 'authorization_manager.cpp', |
14 | | - 'authorization_session.cpp', |
15 | | - 'authz_documents_update_guard.cpp', |
16 | | - 'authz_manager_external_state.cpp', |
17 | | - 'authz_manager_external_state_local.cpp', |
18 | | - 'authz_session_external_state.cpp', |
19 | | - 'privilege.cpp', |
20 | | - 'privilege_parser.cpp', |
21 | | - 'resource_pattern.cpp', |
22 | | - 'role_graph.cpp', |
23 | | - 'role_graph_update.cpp', |
24 | | - 'role_name.cpp', |
25 | | - 'role_graph_builtin_roles.cpp', |
26 | | - 'user.cpp', |
27 | | - 'user_document_parser.cpp', |
28 | | - 'user_management_commands_parser.cpp', |
29 | | - 'user_name.cpp', |
30 | | - 'user_set.cpp'], |
31 | | - LIBDEPS=['$BUILD_DIR/mongo/auth_helpers', |
32 | | - '$BUILD_DIR/mongo/base/base', |
33 | | - '$BUILD_DIR/mongo/bson', |
34 | | - '$BUILD_DIR/mongo/db/common', |
35 | | - '$BUILD_DIR/mongo/db/ops/update_driver', |
36 | | - '$BUILD_DIR/mongo/stringutils']) |
| 11 | +env.Library('authcore', ['action_set.cpp', |
| 12 | + 'action_type.cpp', |
| 13 | + 'authorization_manager.cpp', |
| 14 | + 'authorization_session.cpp', |
| 15 | + 'authz_documents_update_guard.cpp', |
| 16 | + 'authz_manager_external_state.cpp', |
| 17 | + 'authz_manager_external_state_local.cpp', |
| 18 | + 'authz_session_external_state.cpp', |
| 19 | + 'privilege.cpp', |
| 20 | + 'privilege_parser.cpp', |
| 21 | + 'resource_pattern.cpp', |
| 22 | + 'role_graph.cpp', |
| 23 | + 'role_graph_update.cpp', |
| 24 | + 'role_name.cpp', |
| 25 | + 'role_graph_builtin_roles.cpp', |
| 26 | + 'user.cpp', |
| 27 | + 'user_document_parser.cpp', |
| 28 | + 'user_management_commands_parser.cpp', |
| 29 | + 'user_name.cpp', |
| 30 | + 'user_set.cpp'], |
| 31 | + LIBDEPS=['$BUILD_DIR/mongo/auth_helpers', |
| 32 | + '$BUILD_DIR/mongo/base/base', |
| 33 | + '$BUILD_DIR/mongo/bson', |
| 34 | + '$BUILD_DIR/mongo/db/common', |
| 35 | + '$BUILD_DIR/mongo/db/ops/update_driver', |
| 36 | + '$BUILD_DIR/mongo/stringutils']) |
37 | 37 |
|
38 | | -env.StaticLibrary('authservercommon', |
39 | | - ['auth_server_parameters.cpp', |
40 | | - 'authorization_manager_global.cpp', |
41 | | - 'authz_session_external_state_server_common.cpp', |
42 | | - 'security_key.cpp'], |
43 | | - LIBDEPS=['authcore']) |
| 38 | +env.Library('authservercommon', |
| 39 | + ['auth_server_parameters.cpp', |
| 40 | + 'authorization_manager_global.cpp', |
| 41 | + 'authz_session_external_state_server_common.cpp', |
| 42 | + 'security_key.cpp'], |
| 43 | + LIBDEPS=['authcore']) |
44 | 44 |
|
45 | | -env.StaticLibrary('authmongod', |
46 | | - ['authz_manager_external_state_d.cpp', |
47 | | - 'authz_session_external_state_d.cpp', |
48 | | - 'auth_index_d.cpp'], |
49 | | - LIBDEPS=['authservercommon', '$BUILD_DIR/mongo/server_parameters']) |
| 45 | +env.Library('authmongod', |
| 46 | + ['authz_manager_external_state_d.cpp', |
| 47 | + 'authz_session_external_state_d.cpp', |
| 48 | + 'auth_index_d.cpp'], |
| 49 | + LIBDEPS=['authservercommon', '$BUILD_DIR/mongo/server_parameters']) |
50 | 50 |
|
51 | | -env.StaticLibrary('authmongos', |
52 | | - ['authz_manager_external_state_s.cpp', |
53 | | - 'authz_session_external_state_s.cpp', |
54 | | - 'user_cache_invalidator_job.cpp'], |
55 | | - LIBDEPS=['authservercommon']) |
| 51 | +env.Library('authmongos', |
| 52 | + ['authz_manager_external_state_s.cpp', |
| 53 | + 'authz_session_external_state_s.cpp', |
| 54 | + 'user_cache_invalidator_job.cpp'], |
| 55 | + LIBDEPS=['authservercommon']) |
56 | 56 |
|
57 | | -env.StaticLibrary('authmocks', |
58 | | - ['authz_manager_external_state_mock.cpp'], |
59 | | - LIBDEPS=['$BUILD_DIR/mongo/db/ops/update_driver', |
60 | | - '$BUILD_DIR/mongo/expressions']) |
| 57 | +env.Library('authmocks', |
| 58 | + ['authz_manager_external_state_mock.cpp'], |
| 59 | + LIBDEPS=['$BUILD_DIR/mongo/db/ops/update_driver', |
| 60 | + '$BUILD_DIR/mongo/expressions']) |
61 | 61 |
|
62 | 62 | env.CppUnitTest('action_set_test', 'action_set_test.cpp', LIBDEPS=['authcore']) |
63 | 63 | env.CppUnitTest('privilege_parser_test', 'privilege_parser_test.cpp', LIBDEPS=['authcore']) |
|
0 commit comments