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

Import('env')

env = env.Clone()

env.Library(
    target='cst',
    source=[
        'bson_lexer.cpp',
        'compound_key.cpp',
        'cst_match_translation.cpp',
        'cst_pipeline_translation.cpp',
        'c_node.cpp',
        'c_node_validation.cpp',
        'c_node_disambiguation.cpp',
        'pipeline_parser_gen.cpp',
        'cst_sort_translation.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_match_translation_test.cpp',
        'cst_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/query/query_test_service_context',
        'cst',
    ]
)

env.CppUnitTest(
    target='cst_pipeline_translation_test',
    source=[
        'cst_pipeline_translation_test.cpp',
        'cst_literals_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/query/query_test_service_context',
        'cst',
    ]
)