summaryrefslogtreecommitdiff
path: root/src/mongo/installer/msi/SConscript
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2014-09-05 18:27:10 -0400
committerJonathan Reams <jbreams@mongodb.com>2014-09-05 18:27:10 -0400
commit5e97d1e186374cc0d9fc9de605eec39796d885cf (patch)
treef0e9bd42fec57b8df8f3d2b4a40491788c253d53 /src/mongo/installer/msi/SConscript
parent4e8a57ccaba7e2635e0b553a8d96566f5d0f18a6 (diff)
downloadmongo-5e97d1e186374cc0d9fc9de605eec39796d885cf.tar.gz
SERVER-14440 Bundle openssl with SSL targeted Windows MSI
Diffstat (limited to 'src/mongo/installer/msi/SConscript')
-rw-r--r--src/mongo/installer/msi/SConscript17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/mongo/installer/msi/SConscript b/src/mongo/installer/msi/SConscript
index b8ac5ef712a..227aa87dc11 100644
--- a/src/mongo/installer/msi/SConscript
+++ b/src/mongo/installer/msi/SConscript
@@ -40,8 +40,6 @@ enterprisebase = 'src\mongo\db\modules\enterprise'
# msi_flavor - "2008R2Plus" or ""
#
-
-
# Enterprise
if 'enterprise' in env['MONGO_MODULES']:
msi_edition = 'Enterprise'
@@ -50,7 +48,10 @@ if 'enterprise' in env['MONGO_MODULES']:
upgrade_code = 'F395569E-9DD4-49E6-AE8B-16B22BBFE915'
# Community
else:
- msi_edition = 'Standard'
+ if 'MONGO_SSL' in env['CPPDEFINES']:
+ msi_edition = 'SSL'
+ else:
+ msi_edition = 'Standard'
if env['PROCESSOR_ARCHITECTURE'] == 'i386':
msi_platform = 'x86'
msi_flavor = ''
@@ -59,11 +60,19 @@ else:
msi_platform = 'x64'
if env.get('WIN_VERSION_MIN') == 'ws08r2' or env.get('WIN_VERSION_MIN') == 'win7':
msi_flavor = '2008R2Plus'
- upgrade_code = 'B5D765D3-7A55-4BD3-9990-A0F85F5DBE2F'
+ if msi_edition == 'SSL':
+ upgrade_code = '3AEC188B-D63E-4344-88BA-23B8539C68D5'
+ else:
+ upgrade_code = 'B5D765D3-7A55-4BD3-9990-A0F85F5DBE2F'
else:
msi_flavor = 'Legacy'
upgrade_code = '6A44D061-6FA9-438B-8D25-4AF1BBAC61D7'
+if 'msi' in BUILD_TARGETS and msi_edition == 'SSL' and msi_flavor != '2008R2Plus':
+ print "Building the MongoDB SSL MSI is only supported on Windows 2008 R2+ or Windows 7+ platforms."
+ print "You must add --win-version-min=ws08r2 to your scons flags"
+ exit(1)
+
if msi_platform == 'x64':
sources.append("wxs/Installer_64.wxs")
objects.append("$BUILD_DIR/msi/Installer_64.wixobj")