summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/SConscript
blob: 4d484b0fadb001ab8be9e604846895e480c0aa44 (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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# -*- mode: python; -*-

Import('env')

env = env.Clone()

env.Library(
    target='path',
    source=[
        'path.cpp',
        'path_internal.cpp'
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/db/common',
    ],
)

env.Library(
    target='expressions',
    source=[
        'match_expression_util.cpp',
        'doc_validation_error.cpp',
        'doc_validation_util.cpp',
        'expression.cpp',
        'expression_algo.cpp',
        'expression_array.cpp',
        'expression_expr.cpp',
        'expression_geo.cpp',
        'expression_internal_bucket_geo_within.cpp',
        'expression_leaf.cpp',
        'expression_parameterization.cpp',
        'expression_parser.cpp',
        'expression_text_base.cpp',
        'expression_text_noop.cpp',
        'expression_tree.cpp',
        'expression_where_base.cpp',
        'expression_where_noop.cpp',
        'expression_with_placeholder.cpp',
        'extensions_callback.cpp',
        'extensions_callback_noop.cpp',
        'implicit_validator.cpp',
        'match_details.cpp',
        'matchable.cpp',
        'matcher.cpp',
        'matcher_type_set.cpp',
        'rewrite_expr.cpp',
        'schema/encrypt_schema_types.cpp',
        'schema/expression_internal_schema_all_elem_match_from_index.cpp',
        'schema/expression_internal_schema_allowed_properties.cpp',
        'schema/expression_internal_schema_cond.cpp',
        'schema/expression_internal_schema_eq.cpp',
        'schema/expression_internal_schema_fmod.cpp',
        'schema/expression_internal_schema_match_array_index.cpp',
        'schema/expression_internal_schema_num_array_items.cpp',
        'schema/expression_internal_schema_num_properties.cpp',
        'schema/expression_internal_schema_object_match.cpp',
        'schema/expression_internal_schema_root_doc_eq.cpp',
        'schema/expression_internal_schema_str_length.cpp',
        'schema/expression_internal_schema_unique_items.cpp',
        'schema/expression_internal_schema_xor.cpp',
        'schema/json_pointer.cpp',
        'schema/json_schema_parser.cpp',
        'schema/encrypt_schema.idl',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/bson/util/bson_extract',
        '$BUILD_DIR/mongo/db/common',
        '$BUILD_DIR/mongo/db/fts/fts_query_noop',
        '$BUILD_DIR/mongo/db/geo/geometry',
        '$BUILD_DIR/mongo/db/geo/geoparser',
        '$BUILD_DIR/mongo/db/pipeline/expression_context',
        '$BUILD_DIR/mongo/db/query/collation/collator_interface',
        '$BUILD_DIR/mongo/db/query/query_knobs',
        '$BUILD_DIR/mongo/db/stats/counters',
        '$BUILD_DIR/mongo/idl/idl_parser',
        '$BUILD_DIR/mongo/util/regex_util',
        '$BUILD_DIR/third_party/shim_pcrecpp',
        'path',
    ],
)

env.Library(
    target='expressions_mongod_only',
    source=[
        'extensions_callback_real.cpp',
        'expression_text.cpp',
        'expression_where.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/catalog/collection',
        '$BUILD_DIR/mongo/db/catalog/index_catalog',
        '$BUILD_DIR/mongo/db/catalog_raii',
        '$BUILD_DIR/mongo/db/concurrency/lock_manager',
        '$BUILD_DIR/mongo/db/exec/js_function',
        '$BUILD_DIR/mongo/db/fts/base_fts',
        '$BUILD_DIR/mongo/scripting/scripting_server',
        'expressions',
    ],
)

env.CppUnitTest(
    target='db_matcher_test',
    source=[
        'match_expression_util_test.cpp',
        'doc_validation_error_json_schema_test.cpp',
        'doc_validation_error_test.cpp',
        'expression_algo_test.cpp',
        'expression_always_boolean_test.cpp',
        'expression_array_test.cpp',
        'expression_expr_test.cpp',
        'expression_geo_test.cpp',
        'expression_internal_bucket_geo_within_test.cpp',
        'expression_internal_expr_comparison_test.cpp',
        'expression_internal_expr_eq_test.cpp',
        'expression_leaf_test.cpp',
        'expression_optimize_test.cpp',
        'expression_parameterization_test.cpp',
        'expression_parser_array_test.cpp',
        'expression_parser_geo_test.cpp',
        'expression_parser_leaf_test.cpp',
        'expression_parser_test.cpp',
        'expression_parser_tree_test.cpp',
        'expression_serialization_test.cpp',
        'expression_tree_test.cpp',
        'expression_type_test.cpp',
        'expression_with_placeholder_test.cpp',
        'implicit_validator_test.cpp',
        'matcher_type_set_test.cpp',
        'path_accepting_keyword_test.cpp',
        'path_test.cpp',
        'rewrite_expr_test.cpp',
        'schema/array_keywords_test.cpp',
        'schema/encrypt_keyword_test.cpp',
        'schema/encrypt_schema_types_test.cpp',
        'schema/expression_internal_schema_all_elem_match_from_index_test.cpp',
        'schema/expression_internal_schema_allowed_properties_test.cpp',
        'schema/expression_internal_schema_cond_test.cpp',
        'schema/expression_internal_schema_eq_test.cpp',
        'schema/expression_internal_schema_fmod_test.cpp',
        'schema/expression_internal_schema_match_array_index_test.cpp',
        'schema/expression_internal_schema_max_items_test.cpp',
        'schema/expression_internal_schema_max_length_test.cpp',
        'schema/expression_internal_schema_max_properties_test.cpp',
        'schema/expression_internal_schema_min_items_test.cpp',
        'schema/expression_internal_schema_min_length_test.cpp',
        'schema/expression_internal_schema_min_properties_test.cpp',
        'schema/expression_internal_schema_object_match_test.cpp',
        'schema/expression_internal_schema_root_doc_eq_test.cpp',
        'schema/expression_internal_schema_unique_items_test.cpp',
        'schema/expression_internal_schema_xor_test.cpp',
        'schema/expression_parser_schema_test.cpp',
        'schema/json_pointer_test.cpp',
        'schema/logical_keywords_test.cpp',
        'schema/object_keywords_test.cpp',
        'schema/scalar_keywords_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/crypto/encrypted_field_config',
        '$BUILD_DIR/mongo/db/query/collation/collator_interface_mock',
        '$BUILD_DIR/mongo/db/query/query_planner',
        '$BUILD_DIR/mongo/db/query/query_test_service_context',
        'expressions',
        'path',
    ],
)