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
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
env.Library(
target='index_descriptor',
source=[
'index_descriptor.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/catalog/collection',
'$BUILD_DIR/mongo/db/catalog/index_catalog',
],
)
env.Library(
target='key_generator',
source=[
'btree_key_generator.cpp',
'expression_keys_private.cpp',
'sort_key_generator.cpp',
'wildcard_key_generator.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/bson/dotted_path_support',
'$BUILD_DIR/mongo/db/fts/base_fts',
'$BUILD_DIR/mongo/db/geo/geoparser',
'$BUILD_DIR/mongo/db/index_names',
'$BUILD_DIR/mongo/db/mongohasher',
'$BUILD_DIR/mongo/db/projection_exec_agg',
'$BUILD_DIR/mongo/db/query/collation/collator_interface',
'$BUILD_DIR/third_party/s2/s2',
'expression_params',
'index_descriptor',
],
)
env.Library(
target='expression_params',
source=[
'expression_params.cpp',
's2_common.cpp'
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/bson/util/bson_extract',
'$BUILD_DIR/mongo/db/geo/geometry',
'$BUILD_DIR/mongo/db/geo/geoparser',
'$BUILD_DIR/mongo/db/mongohasher',
'$BUILD_DIR/mongo/db/query/collation/collator_interface',
'$BUILD_DIR/third_party/s2/s2',
]
)
env.CppUnitTest(
target='key_generator_test',
source=[
'2d_key_generator_test.cpp',
'btree_key_generator_test.cpp',
'hash_key_generator_test.cpp',
's2_key_generator_test.cpp',
'sort_key_generator_test.cpp',
'wildcard_key_generator_test.cpp',
],
LIBDEPS=[
'key_generator',
"$BUILD_DIR/mongo/db/matcher/expressions",
'$BUILD_DIR/mongo/db/mongohasher',
'$BUILD_DIR/mongo/db/query/collation/collator_interface_mock',
],
)
serveronlyEnv = env.Clone()
serveronlyEnv.InjectThirdPartyIncludePaths(libraries=['snappy'])
serveronlyEnv.Library(
target="index_access_method",
source=[
"index_access_method.cpp",
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/catalog/index_catalog_entry',
'$BUILD_DIR/mongo/db/curop',
'$BUILD_DIR/mongo/db/concurrency/write_conflict_exception',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
'$BUILD_DIR/mongo/db/storage/encryption_hooks',
'$BUILD_DIR/mongo/db/storage/storage_options',
'$BUILD_DIR/third_party/shim_snappy',
'index_descriptor',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/logical_clock',
],
)
env.Library(
target="index_access_methods",
source=[
"2d_access_method.cpp",
"btree_access_method.cpp",
"fts_access_method.cpp",
"hash_access_method.cpp",
"haystack_access_method.cpp",
"s2_access_method.cpp",
"wildcard_access_method.cpp",
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/query_exec',
'index_access_method',
'key_generator',
],
)
|