summaryrefslogtreecommitdiff
path: root/src/mongo/db/serverless/SConscript
blob: 82143897663a1fc33154ab4cd24e1bf4e052df14 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# -*- mode: python -*-

Import("env")
env = env.Clone()

env.Library(
    target='serverless_types_idl',
    source=[
        'serverless_types.idl',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/server_base',
    ],
)

env.Library(
    target='shard_split_state_machine',
    source=[
        'shard_split_state_machine.idl',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/client/connection_string',
        '$BUILD_DIR/mongo/db/repl/tenant_migration_utils',
        '$BUILD_DIR/mongo/db/server_base',
    ],
)

env.Library(
    target='shard_split_commands',
    source=[
        'shard_split_commands.idl',
        'shard_split_commands.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/client/connection_string',
        '$BUILD_DIR/mongo/client/replica_set_monitor_server_parameters',
        '$BUILD_DIR/mongo/db/auth/auth',
        '$BUILD_DIR/mongo/db/global_settings',
        '$BUILD_DIR/mongo/db/repl/tenant_migration_utils',
        '$BUILD_DIR/mongo/db/server_base',
        'shard_split_donor_service',
    ],
)

env.Library(
    target='shard_split_utils',
    source=[
        'shard_split_utils.cpp',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/concurrency/exception_util',
        '$BUILD_DIR/mongo/db/dbhelpers',
        '$BUILD_DIR/mongo/db/ops/write_ops',
        '$BUILD_DIR/mongo/db/repl/replica_set_messages',
        'shard_split_state_machine',
    ],
)

env.Library(
    target='serverless_lock',
    source=[
        'serverless_operation_lock_registry.cpp',
        'serverless_server_status.cpp',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/dbdirectclient',
        '$BUILD_DIR/mongo/db/repl/tenant_migration_state_machine_idl',
        '$BUILD_DIR/mongo/db/repl/tenant_migration_utils',
        '$BUILD_DIR/mongo/db/server_base',
        'shard_split_state_machine',
    ],
)

env.Library(
    target='shard_split_donor_service',
    source=[
        'shard_split_donor_service.cpp',
        'shard_split_donor_op_observer.cpp',
        'shard_split_statistics.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/repl/primary_only_service',
        'shard_split_state_machine',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/catalog/local_oplog_info',
        '$BUILD_DIR/mongo/db/concurrency/exception_util',
        '$BUILD_DIR/mongo/db/dbhelpers',
        '$BUILD_DIR/mongo/db/index_builds_coordinator_interface',
        '$BUILD_DIR/mongo/db/repl/oplog',
        '$BUILD_DIR/mongo/db/repl/replica_set_messages',
        '$BUILD_DIR/mongo/db/repl/tenant_migration_access_blocker',
        '$BUILD_DIR/mongo/db/server_base',
        '$BUILD_DIR/mongo/db/shard_role',
        'serverless_lock',
        'shard_split_utils',
    ],
)

env.CppUnitTest(
    target='db_serverless_test',
    source=[
        'serverless_operation_lock_registry_test.cpp',
        'shard_split_donor_op_observer_test.cpp',
        'shard_split_donor_service_test.cpp',
        'shard_split_utils_test.cpp',
        'shard_split_test_utils.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/auth/authmocks',
        '$BUILD_DIR/mongo/db/catalog/catalog_helpers',
        '$BUILD_DIR/mongo/db/commands/create_command',
        '$BUILD_DIR/mongo/db/repl/primary_only_service_test_fixture',
        '$BUILD_DIR/mongo/db/repl/replmocks',
        '$BUILD_DIR/mongo/db/repl/tenant_migration_access_blocker',
        '$BUILD_DIR/mongo/dbtests/mocklib',
        'serverless_lock',
        'shard_split_donor_service',
        'shard_split_utils',
    ],
)