summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/kv/SConscript
blob: 058d45096d0da05e1bfb199bf3894b5f48dc5bf2 (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
# -*- mode: python; -*-

Import("env")

env = env.Clone()

env.Library(
    target='kv_prefix',
    source=['kv_prefix.cpp'],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/storage/storage_options',
    ],
)

# Should not be referenced outside this SConscript file.
env.Library(
    target='kv_engine_core',
    source=[
        'kv_catalog.cpp',
        'kv_collection_catalog_entry.cpp',
        ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/bson/util/bson_extract',
        '$BUILD_DIR/mongo/db/concurrency/lock_manager',
        '$BUILD_DIR/mongo/db/index/index_descriptor',
        '$BUILD_DIR/mongo/db/index_names',
        '$BUILD_DIR/mongo/db/namespace_string',
        '$BUILD_DIR/mongo/db/storage/bson_collection_catalog_entry',
        '$BUILD_DIR/mongo/db/catalog/collection_catalog',
        'kv_drop_pending_ident_reaper',
        'kv_prefix',
        ],
    )

# Should not be referenced outside this SConscript file.
env.Library(
    target='kv_drop_pending_ident_reaper',
    source=['kv_drop_pending_ident_reaper.cpp'],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/concurrency/lock_manager',
        '$BUILD_DIR/mongo/db/storage/write_unit_of_work',
        'kv_prefix',
    ],
)

# Should not be referenced outside this SConscript file.
env.Library(
    target='storage_engine',
    source=[
        'storage_engine_impl.cpp',
        'temporary_kv_record_store.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/db/catalog/catalog_control',
        '$BUILD_DIR/mongo/db/server_options_core',
        '$BUILD_DIR/mongo/db/storage/kv/kv_engine_core',
        '$BUILD_DIR/mongo/db/storage/storage_options',
        'kv_drop_pending_ident_reaper',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/logical_clock',
        '$BUILD_DIR/mongo/db/storage/storage_repair_observer',
        '$BUILD_DIR/mongo/db/catalog/collection_catalog_helper',
    ],
)

env.Library(
    target='kv_engine_test_harness',
    source=[
        'kv_catalog_feature_tracker_test.cpp',
        'kv_engine_test_harness.cpp',
        'kv_engine_timestamps_test.cpp',
        ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/catalog/catalog_impl',
        '$BUILD_DIR/mongo/db/service_context',
        '$BUILD_DIR/mongo/db/service_context_test_fixture',
        '$BUILD_DIR/mongo/db/storage/storage_options',
        '$BUILD_DIR/mongo/unittest/unittest',
        '$BUILD_DIR/mongo/util/clock_source_mock',
        'kv_prefix',
        'kv_engine_core',
        ],
    )

env.CppUnitTest(
    target='db_storage_kv_engine_test',
    source=[
        'kv_collection_catalog_entry_test.cpp',
        'kv_drop_pending_ident_reaper_test.cpp',
        'storage_engine_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/auth/authmocks',
        '$BUILD_DIR/mongo/db/catalog/collection_options',
        '$BUILD_DIR/mongo/db/catalog_raii',
        '$BUILD_DIR/mongo/db/namespace_string',
        '$BUILD_DIR/mongo/db/repl/replmocks',
        '$BUILD_DIR/mongo/db/service_context_d_test_fixture',
        '$BUILD_DIR/mongo/db/service_context_test_fixture',
        '$BUILD_DIR/mongo/db/storage/devnull/storage_devnull_core',
        '$BUILD_DIR/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store',
        '$BUILD_DIR/mongo/db/storage/ephemeral_for_test/storage_ephemeral_for_test_core',
        '$BUILD_DIR/mongo/db/storage/storage_repair_observer',
        'kv_drop_pending_ident_reaper',
        'kv_engine_core',
        'storage_engine',
    ],
)