From 723bc47ce66152e96a5643ceda69f08dd640134b Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Tue, 20 Mar 2012 03:05:20 +0100 Subject: [PATCH] Bug 735810. (Cv3) Stop trying to package MSVC dlls when WIN32_REDIST_DIR isn't set. r=(khuey, ted.mielczarek). --- browser/installer/Makefile.in | 5 +++++ browser/installer/package-manifest.in | 8 ++++---- browser/installer/removed-files.in | 14 +++++++------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/browser/installer/Makefile.in b/browser/installer/Makefile.in index f16a2084273..e250b55670d 100644 --- a/browser/installer/Makefile.in +++ b/browser/installer/Makefile.in @@ -94,6 +94,11 @@ endif include $(topsrcdir)/ipc/app/defs.mk DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME) +# Set MSVC dlls version to package, if any. +ifdef WIN32_REDIST_DIR +DEFINES += -DMOZ_MSVC_REDIST=$(_MSC_VER) +endif + ifneq (,$(filter aurora beta,$(MOZ_UPDATE_CHANNEL))) DEFINES += -DSHIP_FEEDBACK=1 endif diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in index c4c2da3f00c..b4fde8512f0 100644 --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in @@ -70,20 +70,20 @@ #endif #ifdef XP_WIN32 #ifndef MOZ_DEBUG -#if _MSC_VER == 1400 +#if MOZ_MSVC_REDIST == 1400 @BINPATH@/Microsoft.VC80.CRT.manifest @BINPATH@/msvcm80.dll @BINPATH@/msvcp80.dll @BINPATH@/msvcr80.dll -#elif _MSC_VER == 1500 +#elif MOZ_MSVC_REDIST == 1500 @BINPATH@/Microsoft.VC90.CRT.manifest @BINPATH@/msvcm90.dll @BINPATH@/msvcp90.dll @BINPATH@/msvcr90.dll -#elif _MSC_VER == 1600 +#elif MOZ_MSVC_REDIST == 1600 @BINPATH@/msvcp100.dll @BINPATH@/msvcr100.dll -#elif _MSC_VER == 1700 +#elif MOZ_MSVC_REDIST == 1700 @BINPATH@/msvcp110.dll @BINPATH@/msvcr110.dll #endif diff --git a/browser/installer/removed-files.in b/browser/installer/removed-files.in index 9b81d1ffc37..1924d9bb527 100644 --- a/browser/installer/removed-files.in +++ b/browser/installer/removed-files.in @@ -1352,29 +1352,29 @@ xpicleanup@BIN_SUFFIX@ components/jsd3250.dll components/nsPostUpdateWin.js js3250.dll - plugins/npnul32.dll - #if _MSC_VER != 1400 + mozcpp19.dll + mozcrt19.dll + #if MOZ_MSVC_REDIST != 1400 Microsoft.VC80.CRT.manifest msvcm80.dll msvcp80.dll msvcr80.dll #endif - #if _MSC_VER != 1500 + #if MOZ_MSVC_REDIST != 1500 Microsoft.VC90.CRT.manifest msvcm90.dll msvcp90.dll msvcr90.dll #endif - #if _MSC_VER != 1600 + #if MOZ_MSVC_REDIST != 1600 msvcp100.dll msvcr100.dll #endif - #if _MSC_VER != 1700 + #if MOZ_MSVC_REDIST != 1700 msvcp110.dll msvcr110.dll #endif - mozcrt19.dll - mozcpp19.dll + plugins/npnul32.dll #endif @DLL_PREFIX@xpcom_core@DLL_SUFFIX@ components/@DLL_PREFIX@jar50@DLL_SUFFIX@