summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/SConscript
blob: 527c28bbed18953d9b994bb21288b526a084e56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- mode: python -*-

Import("env")

env.StaticLibrary('serverauth', ['mongo_authentication_session.cpp'])

env.Command(['action_type.h', 'action_type.cpp'], ['generate_action_types.py', 'action_types.txt'],
            '$PYTHON $SOURCES $TARGETS')

# Just the data structures used
env.StaticLibrary('authcore', ['action_set.cpp',
                               'action_type.cpp',
                               'auth_global_external_state.cpp',
                               'auth_session_external_state.cpp',
                               'authorization_manager.cpp',
                               'role_graph.cpp',
                               'role_name.cpp',
                               'authorization_session.cpp',
                               'principal.cpp',
                               'principal_set.cpp',
                               'privilege.cpp',
                               'privilege_set.cpp',
                               'user.cpp',
                               'user_name.cpp'],
                  LIBDEPS=['$BUILD_DIR/mongo/base/base',
                           '$BUILD_DIR/mongo/bson',
                           '$BUILD_DIR/mongo/stringutils'])

env.StaticLibrary('authservercommon',
                  ['auth_session_external_state_server_common.cpp',
                   'auth_server_parameters.cpp',
                   'authorization_manager_global.cpp',
                   'security_key.cpp'],
                  LIBDEPS=['authcore'])

env.StaticLibrary('authmongod',
                  ['auth_global_external_state_d.cpp',
                   'auth_session_external_state_d.cpp',
                   'auth_index_d.cpp'],
                  LIBDEPS=['authservercommon'])

env.StaticLibrary('authmongos',
                  ['auth_global_external_state_s.cpp',
                   'auth_session_external_state_s.cpp'],
                  LIBDEPS=['authservercommon'])

env.CppUnitTest('action_set_test', 'action_set_test.cpp', LIBDEPS=['authcore'])
env.CppUnitTest('principal_set_test', 'principal_set_test.cpp', LIBDEPS=['authcore'])
env.CppUnitTest('privilege_set_test', 'privilege_set_test.cpp', LIBDEPS=['authcore'])
env.CppUnitTest('role_graph_test', 'role_graph_test.cpp', LIBDEPS=['authcore'])
env.CppUnitTest('authorization_session_test', 'authorization_session_test.cpp',
                LIBDEPS=['authcore'])