summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/SConscript
blob: 097de97c5fa90ff924eb73cffd80aa7ba6506e49 (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
122
123
124
125
126
Import("env")

env.Library(
    target = 'storage_mmapv1',
    source = [ "catalog/hashtab.cpp",
               "catalog/index_details.cpp",
               "catalog/namespace.cpp",
               "catalog/namespace_details.cpp",
               "catalog/namespace_details_collection_entry.cpp",
               "catalog/namespace_details_rsv1_metadata.cpp",
               "catalog/namespace_index.cpp",
               "data_file.cpp",
               "durable_mapped_file.cpp",
               "dur.cpp",
               "durop.cpp",
               "dur_writetodatafiles.cpp",
               "dur_preplogbuffer.cpp",
               "dur_commitjob.cpp",
               "dur_recover.cpp",
               "dur_journal.cpp",
               "dur_recovery_unit.cpp",
               "mmap_v1_database_catalog_entry.cpp",
               "mmap_v1_engine.cpp",
               "mmap_v1_extent_manager.cpp",
               "repair_database.cpp",
             ],
    LIBDEPS = [
        'record_store_v1',
        'btree']
    )

env.Library(
    target= 'extent',
    source= [
        'extent.cpp',
        'extent_manager.cpp',
        ],
    LIBDEPS= [
        '$BUILD_DIR/mongo/bson',
        '$BUILD_DIR/mongo/foundation',
        ]
    )

env.Library(
    target= 'record_store_v1',
    source= [
        'record_store_v1_base.cpp',
        'record_store_v1_capped.cpp',
        'record_store_v1_capped_iterator.cpp',
        'record_store_v1_repair_iterator.cpp',
        'record_store_v1_simple.cpp',
        'record_store_v1_simple_iterator.cpp',
        ],
    LIBDEPS= [
        'extent',
        '$BUILD_DIR/mongo/mongocommon',  # for ProgressMeter
        '$BUILD_DIR/mongo/db/commands/server_status_core',
        ]
    )

env.Library(
    target='record_store_v1_test_help',
    source=['record_store_v1_test_help.cpp',
            ],
    LIBDEPS=[
        'record_store_v1'
        ]
    )

env.CppUnitTest(target = 'namespace_test',
                source = ['catalog/namespace_test.cpp'],
                LIBDEPS = ['$BUILD_DIR/mongo/foundation'])

env.CppUnitTest(
    target='record_store_v1_simple_test',
    source=['record_store_v1_simple_test.cpp',
            ],
    LIBDEPS=[
        'record_store_v1_test_help'
        ]
    )

env.CppUnitTest(
    target='record_store_v1_capped_test',
    source=['record_store_v1_capped_test.cpp',
            ],
    LIBDEPS=[
        'record_store_v1_test_help'
        ]
    )

env.Library(
    target= 'btree',
    source= [
        'btree/btree_logic.cpp',
        'btree/btree_interface.cpp',
        'btree/btree_ondisk.cpp',
        'btree/key.cpp'
        ],
    LIBDEPS= [
        '$BUILD_DIR/mongo/bson'
        ]
    )

env.Library(
    target= 'btree_test_help',
    source= [
        'btree/btree_test_help.cpp',
        'heap_record_store_btree.cpp'
        ],
    LIBDEPS= [
        'btree',
        '$BUILD_DIR/mongo/mongocommon',  # for ProgressMeter
        '$BUILD_DIR/mongo/db/storage/mmap_v1/record_store_v1_test_help',
        ]
    )

env.CppUnitTest(
    target='btree_logic_test',
    source=['btree/btree_logic_test.cpp'
            ],
    LIBDEPS=[
        'btree_test_help'
        ]
    )