summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/SConscript
blob: d99b3c999952f7fe6645e16a03db4d58948ffe2d (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
# -*- mode: python -*-

Import("env")

env.Library(
    target='sharding_client',
    source=[
        'dbclient_multi_command.cpp',
        'shard.cpp',
        'shard_connection.cpp',
        'shard_registry.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/client/clientdriver',
        '$BUILD_DIR/mongo/client/fetcher',
        '$BUILD_DIR/mongo/client/remote_command_runner_impl',
        '$BUILD_DIR/mongo/client/remote_command_targeter',
    ]
)

env.Library(
    target='sharding_connection_hook',
    source=[
        'multi_host_query.cpp',
        'scc_fast_query_handler.cpp',
        'sharding_connection_hook.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/client/clientdriver',
    ]
)

env.CppUnitTest(
    target='sharding_client_test',
    source=[
        'multi_host_query_test.cpp',
        'shard_connection_test.cpp',
    ],
    LIBDEPS=[
        'sharding_client',
        'sharding_connection_hook',
        '$BUILD_DIR/mongo/db/coredb',
        '$BUILD_DIR/mongo/s/coreshard',
        '$BUILD_DIR/mongo/db/auth/authorization_manager_mock_init',
        '$BUILD_DIR/mongo/dbtests/mocklib',
        '$BUILD_DIR/mongo/s/mongoscore',
    ]
)