summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDan Crosta <dcrosta@10gen.com>2012-07-05 11:54:01 -0400
committerDan Crosta <dcrosta@10gen.com>2012-07-06 16:08:39 -0400
commit09c5aff0fe4bfb0c9c3752df720e1cc3c10a23e4 (patch)
treeca683da21964a8574ea97e12af65c1e48cc37f60 /SConstruct
parentb4c6a9a7c259e704093e275f2a5bb512835cb81b (diff)
downloadmongo-09c5aff0fe4bfb0c9c3752df720e1cc3c10a23e4.tar.gz
discover and configure modules in db/modules/
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index a2231faa2c5..ea92db6bae6 100644
--- a/SConstruct
+++ b/SConstruct
@@ -26,6 +26,7 @@ import types
import urllib
import urllib2
from buildscripts import utils
+from buildscripts import moduleconfig
import libdeps
@@ -835,6 +836,14 @@ def doConfigure(myenv):
myenv.Append( CPPDEFINES=[ "HEAP_CHECKING" ] )
myenv.Append( CCFLAGS=["-fno-omit-frame-pointer"] )
+ # discover modules (subdirectories of db/modules/), and
+ # load the (python) module for each module's build.py
+ modules = moduleconfig.discover_modules('.')
+
+ # ask each module to configure itself, and return a
+ # dictionary of name => list_of_sources for each module.
+ env["MONGO_MODULES"] = moduleconfig.configure_modules(modules, conf, env)
+
return conf.Finish()
env = doConfigure( env )