diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-06-26 08:40:12 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-06-29 19:02:10 -0400 |
commit | 96a9efeeee87df94c9c5fa7bdf1f1d2d93f234d4 (patch) | |
tree | e1b2928fbcaeff5a39571453b0bb1ac955e1ab6e /src/mongo/SConscript | |
parent | dcc38a627d3e4f92d9df0eaeb97739dfa0280907 (diff) | |
download | mongo-96a9efeeee87df94c9c5fa7bdf1f1d2d93f234d4.tar.gz |
SERVER-19099 Add a target to build all generated sources
Diffstat (limited to 'src/mongo/SConscript')
-rw-r--r-- | src/mongo/SConscript | 6 |
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', [ |