summaryrefslogtreecommitdiff
path: root/src/mongo/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/SConscript')
-rw-r--r--src/mongo/SConscript48
1 files changed, 18 insertions, 30 deletions
diff --git a/src/mongo/SConscript b/src/mongo/SConscript
index 938568b9fa7..8dff7dd8bc4 100644
--- a/src/mongo/SConscript
+++ b/src/mongo/SConscript
@@ -293,12 +293,26 @@ env.Library(
]
)
-env.Library(
- target="mongodmain",
+if env.TargetOSIs('windows'):
+ generatedDbManifest = env.Substfile(
+ 'db/db.manifest.in',
+ SUBST_DICT=[
+ ('@mongo_version_major@', version_parts[0]),
+ ('@mongo_version_minor@', version_parts[1]),
+ ('@mongo_version_patch@', version_parts[2]),
+ ('@mongo_version_extra@', version_parts[3]),
+ ('@mongo_version_extra_str@', version_extra),
+ ])
+
+ env.Alias('generated-sources', generatedDbManifest)
+ env.Depends("db/db.res", generatedDbManifest)
+
+mongod = env.Program(
+ target="mongod",
source=[
"db/db.cpp",
- ],
- LIBDEPS_PRIVATE=[
+ ] + env.WindowsResourceFile("db/db.rc"),
+ LIBDEPS=[
'$BUILD_DIR/third_party/shim_snappy',
'base',
'db/auth/authmongod',
@@ -403,32 +417,6 @@ env.Library(
'util/periodic_runner_factory',
'util/version_impl',
],
-)
-
-
-if env.TargetOSIs('windows'):
- generatedDbManifest = env.Substfile(
- 'db/db.manifest.in',
- SUBST_DICT=[
- ('@mongo_version_major@', version_parts[0]),
- ('@mongo_version_minor@', version_parts[1]),
- ('@mongo_version_patch@', version_parts[2]),
- ('@mongo_version_extra@', version_parts[3]),
- ('@mongo_version_extra_str@', version_extra),
- ])
-
- env.Alias('generated-sources', generatedDbManifest)
- env.Depends("db/db.res", generatedDbManifest)
-
-mongod = env.Program(
- target="mongod",
- source=[
- "db/dbmain.cpp",
- ] + env.WindowsResourceFile("db/db.rc"),
- LIBDEPS=[
- 'base',
- 'mongodmain',
- ],
INSTALL_ALIAS=[
'core',
'default',