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
|
# -*- mode: python -*-
Import("env")
env.Library(
target='query_planner',
source=[
"canonical_query.cpp",
"index_tag.cpp",
"parsed_projection.cpp",
"plan_enumerator.cpp",
"planner_access.cpp",
"planner_analysis.cpp",
"planner_ixselect.cpp",
"query_planner.cpp",
"query_solution.cpp",
],
LIBDEPS=[
"index_bounds",
"lite_parsed_query",
"$BUILD_DIR/mongo/bson",
"$BUILD_DIR/mongo/expressions",
],
)
env.Library(
target='query',
source=[
"cached_plan_runner.cpp",
"eof_runner.cpp",
"explain_plan.cpp",
"idhack_runner.cpp",
"internal_runner.cpp",
"multi_plan_runner.cpp",
"new_find.cpp",
"plan_executor.cpp",
"plan_ranker.cpp",
"single_solution_runner.cpp",
"stage_builder.cpp",
"type_explain.cpp",
],
LIBDEPS=[
"query_planner",
"$BUILD_DIR/mongo/db/exec/exec"
],
)
env.Library(
target="index_bounds",
source=[
"index_bounds.cpp",
"index_bounds_builder.cpp",
"interval.cpp",
],
LIBDEPS=[
"query_logger",
"$BUILD_DIR/mongo/bson",
"$BUILD_DIR/mongo/expressions_geo",
"$BUILD_DIR/mongo/mongohasher",
],
)
env.Library(
target="lite_parsed_query",
source=[
"lite_parsed_query.cpp"
],
LIBDEPS=[
"$BUILD_DIR/mongo/bson",
],
)
env.StaticLibrary(
target="query_logger",
source=[
"qlog.cpp"
],
LIBDEPS=[
"$BUILD_DIR/mongo/server_parameters",
],
)
env.CppUnitTest(
target="index_bounds_test",
source=[
"index_bounds_test.cpp"
],
LIBDEPS=[
"index_bounds",
],
)
env.CppUnitTest(
target="index_bounds_builder_test",
source=[
"index_bounds_builder_test.cpp"
],
LIBDEPS=[
"index_bounds",
],
)
env.CppUnitTest(
target="interval_test",
source=[
"interval_test.cpp"
],
LIBDEPS=[
"index_bounds",
],
)
env.CppUnitTest(
target="parsed_projection_test",
source=[
"parsed_projection_test.cpp"
],
LIBDEPS=[
"query_planner",
],
)
env.CppUnitTest(
target="query_planner_test",
source=[
"query_planner_test.cpp"
],
LIBDEPS=[
"query_planner",
],
)
|