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

Import("env")

env = env.Clone()

env.SConscript(
    dirs=[
        "document_value",
        "sbe",
    ],
    exports=[
        "env",
    ],
)

# WorkingSet target and associated test
env.Library(
    target = "working_set",
    source = [
        "working_set.cpp",
    ],
    LIBDEPS = [
        "$BUILD_DIR/mongo/base",
        "$BUILD_DIR/mongo/db/bson/dotted_path_support",
        "$BUILD_DIR/mongo/db/service_context",
        "document_value/document_value",
    ],
)

env.Library(
    target = "scoped_timer",
    source = [
        "scoped_timer.cpp",
    ],
    LIBDEPS = [
        '$BUILD_DIR/mongo/util/net/network',
    ],
)

env.Library(
    target = "js_function",
    source = [
        "js_function.cpp",
    ],
    LIBDEPS = [
        '$BUILD_DIR/mongo/db/auth/auth',
        '$BUILD_DIR/mongo/db/query/query_knobs',
        '$BUILD_DIR/mongo/db/service_context',
        '$BUILD_DIR/mongo/scripting/scripting_server',
    ],
)

env.Library(
    target = "bucket_unpacker",
    source = [
        "bucket_unpacker.cpp",
    ],
    LIBDEPS = [
        "$BUILD_DIR/mongo/db/matcher/expressions",
        "document_value/document_value",
    ],
    LIBDEPS_PRIVATE = [
        "$BUILD_DIR/mongo/bson/util/bson_column",
        "$BUILD_DIR/mongo/db/timeseries/timeseries_options",
    ],
)

sortExecutorEnv = env.Clone()
sortExecutorEnv.InjectThirdParty(libraries=['snappy'])
sortExecutorEnv.Library(
    target="sort_executor",
    source=[
        "sort_executor.cpp",
        "sort_key_comparator.cpp",
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/query/sort_pattern',
        '$BUILD_DIR/mongo/db/storage/encryption_hooks',
        '$BUILD_DIR/mongo/db/storage/storage_options',
        '$BUILD_DIR/mongo/s/is_mongos',
        '$BUILD_DIR/third_party/shim_snappy',
        'working_set',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/sorter/sorter_idl',
        '$BUILD_DIR/mongo/db/sorter/sorter_stats',
    ],
)

env.Library(
    target='projection_executor',
    source=[
        'add_fields_projection_executor.cpp',
        'exclusion_projection_executor.cpp',
        'inclusion_projection_executor.cpp',
        'projection_executor_builder.cpp',
        'projection_executor_utils.cpp',
        'projection_node.cpp'
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/matcher/expressions'
    ],
)

env.Library(
    target='stagedebug_cmd',
    source=[
        'stagedebug_cmd.cpp'
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/db/index/index_access_method",
        "$BUILD_DIR/mongo/db/query_exec",
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/commands/test_commands_enabled',
    ],
)

env.CppUnitTest(
    target='db_exec_test',
    source=[
        "document_value/document_comparator_test.cpp",
        "document_value/document_metadata_fields_test.cpp",
        "document_value/document_value_test.cpp",
        "document_value/document_value_test_util_self_test.cpp",
        "document_value/value_comparator_test.cpp",
        "add_fields_projection_executor_test.cpp",
        "exclusion_projection_executor_test.cpp",
        "find_projection_executor_test.cpp",
        "inclusion_projection_executor_test.cpp",
        "projection_executor_builder_test.cpp",
        "projection_executor_test.cpp",
        "projection_executor_utils_test.cpp",
        "projection_executor_wildcard_access_test.cpp",
        "queued_data_stage_test.cpp",
        "sort_test.cpp",
        "working_set_test.cpp",
        "bucket_unpacker_test.cpp",
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/base",
        "$BUILD_DIR/mongo/bson/util/bson_column", 
        "$BUILD_DIR/mongo/db/auth/authmocks",
        "$BUILD_DIR/mongo/db/query/collation/collator_factory_mock",
        "$BUILD_DIR/mongo/db/query/collation/collator_interface_mock",
        "$BUILD_DIR/mongo/db/query/query_test_service_context",
        "$BUILD_DIR/mongo/db/query_exec",
        "$BUILD_DIR/mongo/db/record_id_helpers",
        "$BUILD_DIR/mongo/db/service_context_d_test_fixture",
        "$BUILD_DIR/mongo/db/timeseries/bucket_compression",
        "$BUILD_DIR/mongo/dbtests/mocklib",
        "$BUILD_DIR/mongo/util/clock_source_mock",
        "document_value/document_value",
        "document_value/document_value_test_util",
        "projection_executor",
        "working_set",
    ],
)