diff options
Diffstat (limited to 'src/mongo/SConscript')
-rw-r--r-- | src/mongo/SConscript | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mongo/SConscript b/src/mongo/SConscript index 96c41128916..75d5cf90fac 100644 --- a/src/mongo/SConscript +++ b/src/mongo/SConscript @@ -463,6 +463,11 @@ distBinaries = [] distDebugSymbols = [] def add_exe( v ): + # The compass installer is written in powershell. On windows when calling + # installExternalBinary it tries to add .exe, in this case we do not want + # this so ignore the ${PROGSUFFIX} for powershell scripts. + if v.endswith('.ps1'): + return "${PROGPREFIX}%s" % v return "${PROGPREFIX}%s${PROGSUFFIX}" % v def failMissingObjCopy(env, target, source): @@ -581,6 +586,13 @@ for full_dir, archive_dir in env["ARCHIVE_ADDITION_DIR_MAP"].items(): for target in env["DIST_BINARIES"]: installBinary(env, "db/modules/" + target) + +if env.TargetOSIs('windows'): + installExternalBinary(env, "src/mongo/installer/compass/InstallCompass.ps1") +else: + installExternalBinary(env, "src/mongo/installer/compass/install_compass") + + # "dist" target is valid only when --use-new-tools is specified # Attempts to build release artifacts without tools must fail if has_option("use-new-tools"): @@ -598,6 +610,7 @@ if has_option("use-new-tools"): '--transform $BUILD_DIR/mongo=$SERVER_DIST_BASENAME/bin', '--transform $BUILD_DIR/mongo/stripped/src/mongo-tools=$SERVER_DIST_BASENAME/bin', '--transform src/mongo-tools=$SERVER_DIST_BASENAME/bin', + '--transform src/mongo/installer/compass=$SERVER_DIST_BASENAME/bin', '${TEMPFILE(SOURCES[1:])}' ], ), @@ -624,6 +637,7 @@ debug_symbols_dist = env.Command( ), BUILD_DIR=env.Dir('$BUILD_DIR').path ) + env.Alias('dist-debugsymbols', debug_symbols_dist) #final alias |