summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-01-04 11:30:29 -0800
committerAndy Schwerin <schwerin@10gen.com>2012-01-17 14:58:51 -0800
commit30668e1c79cf6e8dac45a61b64694c045e1a59f5 (patch)
treeda617cbf9d6c85c62564e48e2639d516e746a836 /src/SConscript
parent8a002c30c6d6749f87c618b61d3f58d54696bb7a (diff)
downloadmongo-30668e1c79cf6e8dac45a61b64694c045e1a59f5.tar.gz
SCons updates to support variant directories.
This patch is a reorganization of our build files, which brings them slightly closer in line with standard SCons organization. In particular, the SConstruct file sets up the various "build environment" objects, by examining the local system and command line parameters. Then, it delegates to some SConscript files, which describe build rules, like how to compile "mongod" from source. Typically, you would create several SConscript files for a project this large, after breaking the project into logical sub projects, such as "platform abstraction", "data manager", "query optimizer", etc. That will be future work. For now, we only separate out the special rules for executing smoke tests into SConscript.smoke. Pretty much all other build rules are in src/mongo/SConscript. "tools" are placed in site_scons/site_tools. This patch also includes better support for building and tracking dependencies among static libraries ("libdeps" and "MergeLibrary"), and some incumbent, minor restructuring. This patch introduces a "warning" message from SCons about framework.o having two rules that generate it. It is harmless, for now, and will be removed in future work. Future work also includes eliminating use of the SCons "Glob" utility, and restructuring the source code into sensible components.
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
new file mode 100644
index 00000000000..c4e96a5fddc
--- /dev/null
+++ b/src/SConscript
@@ -0,0 +1,7 @@
+# -*- mode: python; -*-
+#
+# This is the principle SConscript file, invoked by the SConstruct. Its job is
+# to delegate to any and all per-module SConscript files.
+
+SConscript( [ 'mongo/SConscript',
+ 'third_party/SConscript' ] )