summaryrefslogtreecommitdiff
path: root/src/mongo/bson/SConscript
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-04-30 14:01:24 -0400
committerAndrew Morrow <acm@mongodb.com>2015-05-06 15:47:21 -0400
commit86c320b783c8939490d6e7af0f518b3db7b24ed7 (patch)
treecb52e296575937f95d55cc5920babc68e5e06625 /src/mongo/bson/SConscript
parent543ca54c22e13056b4f278e36b4c1b6436c2f1cb (diff)
downloadmongo-86c320b783c8939490d6e7af0f518b3db7b24ed7.tar.gz
SERVER-9666 Split up and push bson library into bson directory
Diffstat (limited to 'src/mongo/bson/SConscript')
-rw-r--r--src/mongo/bson/SConscript92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/mongo/bson/SConscript b/src/mongo/bson/SConscript
new file mode 100644
index 00000000000..26586b5d3b1
--- /dev/null
+++ b/src/mongo/bson/SConscript
@@ -0,0 +1,92 @@
+# -*- mode: python; -*-
+
+Import('env')
+
+env.SConscript(
+ dirs=[
+ 'mutable',
+ 'util',
+ ],
+)
+
+env.Library(
+ target='bson',
+ source=[
+ 'bson_startuptest.cpp',
+ 'bson_validate.cpp',
+ 'bsonelement.cpp',
+ 'bsonmisc.cpp',
+ 'bsonobj.cpp',
+ 'bsonobjbuilder.cpp',
+ 'bsontypes.cpp',
+ 'json.cpp',
+ 'oid.cpp',
+ 'timestamp.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/base/base',
+ '$BUILD_DIR/mongo/platform/platform',
+ '$BUILD_DIR/mongo/util/md5',
+ '$BUILD_DIR/mongo/util/stringutils',
+ ],
+)
+
+env.CppUnitTest(
+ target='bson_field_test',
+ source=[
+ 'bson_field_test.cpp',
+ ],
+ LIBDEPS=[
+ 'bson',
+ ],
+)
+
+env.CppUnitTest(
+ target='bson_obj_test',
+ source=[
+ 'bson_obj_test.cpp',
+ ],
+ LIBDEPS=[
+ 'bson',
+ ],
+)
+
+env.CppUnitTest(
+ target='bson_obj_data_type_test',
+ source=[
+ 'bson_obj_data_type_test.cpp',
+ ],
+ LIBDEPS=[
+ 'bson',
+ ]
+)
+
+env.CppUnitTest(
+ target='bson_validate_test',
+ source=[
+ 'bson_validate_test.cpp',
+ ],
+ LIBDEPS=[
+ 'bson',
+ ],
+)
+
+env.CppUnitTest(
+ target='bsonobjbuilder_test',
+ source=[
+ 'bsonobjbuilder_test.cpp',
+ ],
+ LIBDEPS=[
+ 'bson',
+ ],
+)
+
+env.CppUnitTest(
+ target='oid_test',
+ source=[
+ 'oid_test.cpp',
+ ],
+ LIBDEPS=[
+ 'bson',
+ ],
+)