diff options
Diffstat (limited to 'src/mongo/db/SConscript')
| -rw-r--r-- | src/mongo/db/SConscript | 64 |
1 files changed, 59 insertions, 5 deletions
diff --git a/src/mongo/db/SConscript b/src/mongo/db/SConscript index 2d3a4f65734..04a9febc820 100644 --- a/src/mongo/db/SConscript +++ b/src/mongo/db/SConscript @@ -3,13 +3,67 @@ Import("env") # -# We'd like 'common' to have the abstractions that are shared by several components of the +# The db/'common' lib has the abstractions that are shared by components of the # server. Ideally, many of the object in 'coredb' should be moved here when their dependencies # get resolved. # -env.StaticLibrary('common', ['field_ref.cpp'], - LIBDEPS=['$BUILD_DIR/mongo/bson', - '$BUILD_DIR/mongo/foundation']) +env.Library( + target= 'common', + source= [ + 'field_ref.cpp', + 'field_ref_set.cpp', + 'field_parser.cpp', + 'write_concern_options.cpp' + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/bson', + '$BUILD_DIR/mongo/foundation', + ], +) -env.CppUnitTest('field_ref_test', ['field_ref_test.cpp'], LIBDEPS=['common']) +env.CppUnitTest( + target= 'field_ref_test', + source= 'field_ref_test.cpp', + LIBDEPS=[ + 'common', + ], +) + +env.CppUnitTest( + target= 'field_ref_set_test', + source = 'field_ref_set_test.cpp', + LIBDEPS=[ + 'common', + ], +) + +env.CppUnitTest( + target= 'field_parser_test', + source= 'field_parser_test.cpp', + LIBDEPS=[ + 'common', + ], +) + +env.CppUnitTest( + target= 'hasher_test', + source= [ + 'hasher_test.cpp', + ], + LIBDEPS=[ + 'common', + '$BUILD_DIR/mongo/mongohasher', + ], +) + +env.CppUnitTest( + target="dbmessage_test", + source=[ + "dbmessage_test.cpp" + ], + LIBDEPS=[ + "common", + "$BUILD_DIR/mongo/clientdriver", + ], +)
\ No newline at end of file |
