summaryrefslogtreecommitdiff
path: root/src/mongo/SConscript
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-26 08:40:12 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-29 19:02:10 -0400
commit96a9efeeee87df94c9c5fa7bdf1f1d2d93f234d4 (patch)
treee1b2928fbcaeff5a39571453b0bb1ac955e1ab6e /src/mongo/SConscript
parentdcc38a627d3e4f92d9df0eaeb97739dfa0280907 (diff)
downloadmongo-96a9efeeee87df94c9c5fa7bdf1f1d2d93f234d4.tar.gz
SERVER-19099 Add a target to build all generated sources
Diffstat (limited to 'src/mongo/SConscript')
-rw-r--r--src/mongo/SConscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/SConscript b/src/mongo/SConscript
index bacfe5d9ec1..e983797bc69 100644
--- a/src/mongo/SConscript
+++ b/src/mongo/SConscript
@@ -116,7 +116,7 @@ else:
version_parts[3] = 0
version_parts = [ int(x) for x in version_parts[:4]]
-versionInfo = env.Substfile(
+generatedVersionFile = env.Substfile(
'util/version.cpp.in',
SUBST_DICT=[
('@mongo_version@', env['MONGO_VERSION']),
@@ -139,6 +139,7 @@ versionInfo = env.Substfile(
('@buildinfo_cc_version@', get_toolchain_ver('CC')),
('@buildinfo_cxx_version@', get_toolchain_ver('CXX')),
])
+env.Alias('generated-sources', generatedVersionFile)
config_header_substs = (
('@mongo_config_byte_order@', 'MONGO_CONFIG_BYTE_ORDER'),
@@ -164,10 +165,11 @@ def makeConfigHeaderDefine(self, key):
return val
env.AddMethod(makeConfigHeaderDefine)
-configHeaderFile = env.Substfile(
+generateConfigHeaderFile = env.Substfile(
'config.h.in',
SUBST_DICT=[(k, env.makeConfigHeaderDefine(v)) for (k, v) in config_header_substs]
)
+env.Alias('generated-sources', generateConfigHeaderFile)
env.Library('version',
[