summaryrefslogtreecommitdiff
path: root/src/SConscript
blob: f12d13a6e411041e2b1b56e4e92b9d03729dd0d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- 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.

Import('env')
Import('module_sconscripts')

# NOTE: We must do third_party first as it adds methods to the environment
# that we need in the mongo sconscript
env = env.Clone()
env.SConscript('third_party/SConscript', exports=['env'])

# Inject boost and pcre from third_party globally for all core mongo code
# and modules. Ideally, pcre wouldn't be here, but enough things require it
# now that it seems hopeless to remove it now.
env = env.Clone()
env.InjectThirdPartyIncludePaths(libraries=[
    'boost',
    'pcre',
])

# Run the core mongodb SConscript.
env.SConscript('mongo/SConscript', exports=['env'])

# Run SConscripts for any modules in play
env.SConscript(module_sconscripts, exports=['env'])