diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2017-09-01 18:01:34 -0400 |
---|---|---|
committer | Mathew Robinson <mathew.robinson@10gen.com> | 2017-09-13 14:07:46 -0400 |
commit | 5e0d37c421c9c044365c264b602227a6de4ee64d (patch) | |
tree | 0c5253810fd01800d8420e9a7e6d2b34b0adede1 /src/mongo/SConscript | |
parent | fa2f40a44ea649b801bfa3ba2bbeb0d36020629c (diff) | |
download | mongo-compass-installer.tar.gz |
SERVER-30995 Add Compass Installer to MongoDB packagingcompass-installer
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 |