summaryrefslogtreecommitdiff
path: root/src/mongo/bson
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
parent543ca54c22e13056b4f278e36b4c1b6436c2f1cb (diff)
downloadmongo-86c320b783c8939490d6e7af0f518b3db7b24ed7.tar.gz
SERVER-9666 Split up and push bson library into bson directory
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/SConscript92
-rw-r--r--src/mongo/bson/mutable/SConscript48
-rw-r--r--src/mongo/bson/util/SConscript44
3 files changed, 184 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',
+ ],
+)
diff --git a/src/mongo/bson/mutable/SConscript b/src/mongo/bson/mutable/SConscript
new file mode 100644
index 00000000000..9546d260f5f
--- /dev/null
+++ b/src/mongo/bson/mutable/SConscript
@@ -0,0 +1,48 @@
+# -*- mode: python; -*-
+
+Import('env')
+
+env.Library(
+ target='mutable_bson',
+ source=[
+ 'document.cpp',
+ 'element.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/util/safe_num',
+ '$BUILD_DIR/mongo/bson/bson',
+ ],
+)
+
+env.Library(
+ target='mutable_bson_test_utils',
+ source=[
+ 'mutable_bson_test_utils.cpp',
+ ],
+ LIBDEPS=[
+ 'mutable_bson',
+ ],
+)
+
+env.CppUnitTest(
+ target='mutable_bson_test',
+ source=[
+ 'mutable_bson_test.cpp'
+ ],
+ LIBDEPS=[
+ 'mutable_bson',
+ 'mutable_bson_test_utils',
+ ],
+)
+
+env.CppUnitTest(
+ target='mutable_bson_algo_test',
+ source=[
+ 'mutable_bson_algo_test.cpp',
+ ],
+ LIBDEPS=[
+ 'mutable_bson',
+ 'mutable_bson_test_utils',
+ ],
+)
+
diff --git a/src/mongo/bson/util/SConscript b/src/mongo/bson/util/SConscript
new file mode 100644
index 00000000000..8360fb10ed3
--- /dev/null
+++ b/src/mongo/bson/util/SConscript
@@ -0,0 +1,44 @@
+# -*- mode: python; -*-
+
+Import('env')
+
+env.Library(
+ target='bson_extract',
+ source=[
+ 'bson_extract.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/bson/bson',
+ ],
+)
+
+env.CppUnitTest(
+ target='bson_extract_test',
+ source=[
+ 'bson_extract_test.cpp'
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/bson/bson',
+ 'bson_extract',
+ ],
+)
+
+env.CppUnitTest(
+ target='builder_test',
+ source=[
+ 'builder_test.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/bson/bson',
+ ],
+)
+
+env.CppUnitTest(
+ target='bson_check_test',
+ source=[
+ 'bson_check_test.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/bson/bson',
+ ],
+)