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
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
# Core geometry shape libraries
env.Library(
target="geometry",
source=["hash.cpp", "shapes.cpp", "big_polygon.cpp", "r2_region_coverer.cpp"],
LIBDEPS=[
"$BUILD_DIR/mongo/base", "$BUILD_DIR/mongo/db/common",
"$BUILD_DIR/mongo/db/storage/key_string", "$BUILD_DIR/third_party/s2/s2"
],
)
# Geometry / BSON parsing and wrapping
env.Library(
target="geoparser",
source=["geoparser.cpp", "geometry_container.cpp"],
LIBDEPS=[
"$BUILD_DIR/mongo/base",
"$BUILD_DIR/mongo/db/bson/dotted_path_support",
"$BUILD_DIR/third_party/s2/s2",
"geometry",
],
)
env.CppUnitTest(
target="db_geo_test",
source=[
"hash_test.cpp",
"big_polygon_test.cpp",
"geoparser_test.cpp",
"r2_region_coverer_test.cpp",
],
LIBDEPS=[
"$BUILD_DIR/mongo/db/common",
"geometry",
"geoparser",
],
)
env.Benchmark(
target='hash_bm',
source=[
'hash_bm.cpp',
],
LIBDEPS=['geometry'],
)
|