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

Import("env")

# Core geometry shape libraries
env.Library("geometry", [ "hash.cpp",
                          "shapes.cpp",
                          "big_polygon.cpp",
                          "r2_region_coverer.cpp" ],
            LIBDEPS = [ "$BUILD_DIR/mongo/base",
                        "$BUILD_DIR/mongo/db/common",
                        "$BUILD_DIR/third_party/s2/s2" ])

# Geometry / BSON parsing and wrapping
env.Library("geoparser", [ "geoparser.cpp",
                           "geometry_container.cpp" ],
            LIBDEPS = [ "geometry",
                        "$BUILD_DIR/mongo/base",
                        "$BUILD_DIR/mongo/db/bson/dotted_path_support",
                        "$BUILD_DIR/third_party/s2/s2" ])

env.CppUnitTest("hash_test", [ "hash_test.cpp" ],
                LIBDEPS = ["geometry",
                           "$BUILD_DIR/mongo/db/common" ]) # db/common needed for field parsing

env.CppUnitTest("geoparser_test", [ "geoparser_test.cpp" ],
                LIBDEPS = [ "geoparser",
                            "$BUILD_DIR/mongo/db/common" ]) # db/common needed for field parsing

env.CppUnitTest("r2_region_coverer_test", [ "r2_region_coverer_test.cpp" ],
                LIBDEPS = [ "geometry",
                            "geoparser",
                            "$BUILD_DIR/mongo/db/common" ]) # db/common needed for field parsing

env.CppUnitTest("big_polygon_test", [ "big_polygon_test.cpp" ],
                LIBDEPS = [ "geometry",
                            "$BUILD_DIR/mongo/db/common" ]) # db/common needed for field parsing