summaryrefslogtreecommitdiff
path: root/src/mongo/db/timeseries/SConscript
blob: c2f1959a441d61597ed3db249374883cb8456674 (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
# -*- mode: python -*-

Import("env")

env = env.Clone()

env.Library(
    target='timeseries_idl',
    source=[
        'timeseries.idl',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/idl/idl_parser',
        '$BUILD_DIR/mongo/idl/server_parameter',
    ],
)

env.Library(
    target='bucket_catalog',
    source=[
        'bucket_catalog.cpp',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/catalog/database_holder',
        '$BUILD_DIR/mongo/db/commands/server_status',
        '$BUILD_DIR/mongo/db/views/views',
        'timeseries_idl',
    ],
)

env.Library(
    target='timeseries_index_schema_conversion_functions',
    source=[
        'timeseries_index_schema_conversion_functions.cpp',
    ],
    LIBDEPS_PRIVATE=[
        'timeseries_idl',
    ],
)

env.Library(
    target='timeseries_lookup',
    source=[
        'timeseries_lookup.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        'timeseries_idl',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/catalog/collection_catalog',
    ],
)

env.CppUnitTest(
    target='db_timeseries_test',
    source=[
        'bucket_catalog_test.cpp',
        'timeseries_index_schema_conversion_functions_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/catalog/catalog_test_fixture',
        'bucket_catalog',
        'timeseries_index_schema_conversion_functions',
    ],
)