diff options
Diffstat (limited to 'src/mongo/SConscript')
-rw-r--r-- | src/mongo/SConscript | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mongo/SConscript b/src/mongo/SConscript index 5c90b40f10e..60d3512f7aa 100644 --- a/src/mongo/SConscript +++ b/src/mongo/SConscript @@ -587,6 +587,26 @@ for full_dir, archive_dir in env["ARCHIVE_ADDITION_DIR_MAP"].items(): for target in env["DIST_BINARIES"]: installBinary(env, "db/modules/" + target) +# Set the download url to the right place +compass_type = 'compass-community' +if 'enterprise' in env['MONGO_MODULES']: + compass_type = 'compass' + +compass_script = "install_compass" +if env.TargetOSIs('windows'): + # On windows the .in needs to be explicitly added to the file. + compass_script = "Install-Compass.ps1.in" + +compass_installer = env.Substfile('#/src/mongo/installer/compass/' + compass_script, + SUBST_DICT=[ + ('@compass_type@', compass_type) + ]) +distBinaries.append(compass_installer) +compass_script_installer = env.Install("$INSTALL_DIR/bin", compass_installer) + +if env.TargetOSIs('posix'): + env.AddPostAction( compass_script_installer, 'chmod 755 $TARGET' ) + # "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"): @@ -604,6 +624,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:])}' ], ), @@ -630,6 +651,7 @@ debug_symbols_dist = env.Command( ), BUILD_DIR=env.Dir('$BUILD_DIR').path ) + env.Alias('dist-debugsymbols', debug_symbols_dist) #final alias |