diff options
Diffstat (limited to 'src/mongo/db/geo/SConscript')
-rw-r--r-- | src/mongo/db/geo/SConscript | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/src/mongo/db/geo/SConscript b/src/mongo/db/geo/SConscript index fb13309cbfb..1a32eefac8a 100644 --- a/src/mongo/db/geo/SConscript +++ b/src/mongo/db/geo/SConscript @@ -5,22 +5,36 @@ Import("env") env = env.Clone() # 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/mongo/db/storage/key_string', - "$BUILD_DIR/third_party/s2/s2" ]) +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("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.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", @@ -31,8 +45,8 @@ env.CppUnitTest( "r2_region_coverer_test.cpp", ], LIBDEPS=[ + "$BUILD_DIR/mongo/db/common", "geometry", "geoparser", - "$BUILD_DIR/mongo/db/common" ] ) |