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

Import('env')

env = env.Clone()

env.Library(
    target='cst',
    source=[
        'bson_lexer.cpp',
        'c_node.cpp',
        'c_node_disambiguation.cpp',
        'c_node_validation.cpp',
        'compound_key.cpp',
        'cst_match_translation.cpp',
        'cst_pipeline_translation.cpp',
        'cst_sort_translation.cpp',
        'parser_gen.cpp',
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/base",
        '$BUILD_DIR/mongo/db/pipeline/pipeline',
        '$BUILD_DIR/mongo/db/pipeline/variable_validation',
        '$BUILD_DIR/mongo/db/query/datetime/date_time_support',
    ],
)

env.CppUnitTest(
    target='cst_test',
    source=[
        'bson_lexer_test.cpp',
        'cst_error_test.cpp',
        'cst_expression_test.cpp',
        'cst_find_project_test.cpp',
        'cst_match_test.cpp',
        'cst_match_translation_test.cpp',
        'cst_sort_translation_test.cpp',
        'cst_test.cpp',
    ],
    LIBDEPS=[
        # $text depends on FTSAccessMethod.
        '$BUILD_DIR/mongo/db/index/index_access_methods',
        '$BUILD_DIR/mongo/db/matcher/expressions_mongod_only',
        '$BUILD_DIR/mongo/db/query/query_test_service_context',
        'cst',
    ],
)

env.CppUnitTest(
    target='cst_pipeline_translation_test',
    source=[
        'cst_literals_test.cpp',
        'cst_pipeline_translation_test.cpp',
        'cst_set_operator_translation_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/query/query_test_service_context',
        'cst',
    ],
)
# Disabled under SERVER-64949.
# env.Benchmark(
#     target='cst_bm',
#     source=[
#         'cst_bm.cpp',
#     ],
#     LIBDEPS=[
#         '$BUILD_DIR/mongo/db/pipeline/pipeline',
#         '$BUILD_DIR/mongo/db/query/query_test_service_context',
#         '$BUILD_DIR/mongo/unittest/unittest',
#         '$BUILD_DIR/mongo/util/processinfo',
#         'cst',
#     ],
# )