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

Import("env")

env = env.Clone()

env.Library(
    target='batch_write_types',
    source=[
        'batched_command_request.cpp',
        'batched_command_response.cpp',
        'batched_delete_request.cpp',
        'batched_delete_document.cpp',
        'batched_insert_request.cpp',
        'batched_update_request.cpp',
        'batched_update_document.cpp',
        'batched_upsert_detail.cpp',
        'write_error_detail.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/db/common',
        '$BUILD_DIR/mongo/db/repl/optime',
        '$BUILD_DIR/mongo/s/common',
    ],
)

env.Library(
    target='cluster_write_op',
    source=[
        'write_op.cpp',
        'batch_write_op.cpp',
        'batch_write_exec.cpp',
    ],
    LIBDEPS=[
        'batch_write_types',
        '$BUILD_DIR/mongo/client/connection_string',
        '$BUILD_DIR/mongo/s/async_requests_sender',
        '$BUILD_DIR/mongo/s/client/sharding_client',
        '$BUILD_DIR/mongo/s/coreshard',
    ],
)

env.Library(
    target='cluster_write_op_conversion',
    source=[
        'batch_upconvert.cpp',
        'batch_downconvert.cpp',
    ],
    LIBDEPS=[
        'cluster_write_op',
        '$BUILD_DIR/mongo/db/dbmessage',
        '$BUILD_DIR/mongo/db/lasterror',
    ],
)

env.CppUnitTest(
    target='batch_write_types_test',
    source=[
        'batched_command_request_test.cpp',
        'batched_command_response_test.cpp',
        'batched_delete_request_test.cpp',
        'batched_insert_request_test.cpp',
        'batched_update_request_test.cpp',
    ],
    LIBDEPS=[
        'batch_write_types',
    ]
)

env.CppUnitTest(
    target='cluster_write_op_test',
    source=[
        'write_op_test.cpp',
        'batch_write_op_test.cpp',
        'batch_write_exec_test.cpp',
    ],
    LIBDEPS=[
        'cluster_write_op',
        '$BUILD_DIR/mongo/db/range_arithmetic',
        '$BUILD_DIR/mongo/db/service_context',
        '$BUILD_DIR/mongo/s/sharding_test_fixture',
    ]
)

env.CppUnitTest(
    target='cluster_write_op_conversion_test',
    source=[
        'batch_upconvert_test.cpp',
        'batch_downconvert_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/auth/authorization_manager_mock_init',
        '$BUILD_DIR/mongo/db/service_context_noop_init',
        'cluster_write_op',
        'cluster_write_op_conversion',
    ]
)