Expand WIN32 redist file capabilities

This commit is contained in:
NTD
2016-10-05 10:51:21 -04:00
committed by roytam1
parent ca4f5277b0
commit 31a0b36253
4 changed files with 19 additions and 3 deletions
+3
View File
@@ -73,6 +73,9 @@ ifdef MOZ_NO_DEBUG_RTL
DEFINES += -DMOZ_PACKAGE_MSVC_DLLS=1
DEFINES += -DMSVC_C_RUNTIME_DLL=$(MSVC_C_RUNTIME_DLL)
DEFINES += -DMSVC_CXX_RUNTIME_DLL=$(MSVC_CXX_RUNTIME_DLL)
ifdef MSVC_OPENMP_DLL
DEFINES += -DMSVC_OPENMP_DLL=$(MSVC_OPENMP_DLL)
endif
ifdef MSVC_APPCRT_DLL
DEFINES += -DMSVC_APPCRT_DLL=$(MSVC_APPCRT_DLL)
endif
+3 -1
View File
@@ -100,7 +100,9 @@
#ifdef MOZ_PACKAGE_MSVC_DLLS
@BINPATH@/@MSVC_C_RUNTIME_DLL@
@BINPATH@/@MSVC_CXX_RUNTIME_DLL@
@BINPATH@/vcomp120.dll
#ifdef MSVC_OPENMP_DLL
@BINPATH@/@MSVC_OPENMP_DLL@
#endif
#ifdef MSVC_APPCRT_DLL
@BINPATH@/@MSVC_APPCRT_DLL@
#endif
+3 -2
View File
@@ -7,8 +7,9 @@ include $(topsrcdir)/config/rules.mk
ifdef WIN32_REDIST_DIR
REDIST_FILES = \
$(MSVC_C_RUNTIME_DLL) \
$(MSVC_CXX_RUNTIME_DLL) \
$(MSVC_REDIST_CRT_DIR)/$(MSVC_C_RUNTIME_DLL) \
$(MSVC_REDIST_CRT_DIR)/$(MSVC_CXX_RUNTIME_DLL) \
$(MSVC_REDIST_OPENMP_DIR)/$(MSVC_OPENMP_DLL) \
$(MSVC_APPCRT_DLL) \
$(MSVC_DESKTOPCRT_DLL) \
$(NULL)
+10
View File
@@ -501,8 +501,11 @@ case "$target" in
if test "$_CC_MAJOR_VERSION" = "18" -a "$_CC_BUILD_VERSION" -ge "30723"; then
_CC_SUITE=12
MSVS_VERSION=2013
MSVC_REDIST_CRT_DIR=Microsoft.VC120.CRT
MSVC_C_RUNTIME_DLL=msvcr120.dll
MSVC_CXX_RUNTIME_DLL=msvcp120.dll
MSVC_REDIST_OPENMP_DIR=Microsoft.VC120.OPENMP
MSVC_OPENMP_DLL=vcomp120.dll
elif test "$_CC_MAJOR_VERSION" = "19"; then
_CC_SUITE=14
MSVS_VERSION=2015
@@ -527,8 +530,11 @@ You must install Visual C++ 2013 Update 3 or newer in order to build.
See https://developer.mozilla.org/en/Windows_Build_Prerequisites.])
fi
AC_SUBST(MSVS_VERSION)
AC_SUBST(MSVC_REDIST_CRT_DIR)
AC_SUBST(MSVC_C_RUNTIME_DLL)
AC_SUBST(MSVC_CXX_RUNTIME_DLL)
AC_SUBST(MSVC_REDIST_OPENMP_DIR)
AC_SUBST(MSVC_OPENMP_DLL)
AC_SUBST(MSVC_APPCRT_DLL)
AC_SUBST(MSVC_DESKTOPCRT_DLL)
@@ -545,6 +551,10 @@ See https://developer.mozilla.org/en/Windows_Build_Prerequisites.])
if test ! -d "$WIN32_REDIST_DIR"; then
AC_MSG_ERROR([Invalid Win32 Redist directory: ${WIN32_REDIST_DIR}])
fi
if test -f "$WIN32_REDIST_DIR/$MSVC_C_RUNTIME_DLL"; then
AC_MSG_ERROR([The Win32 Redist directory must be set to the directory above Microsoft.VCXX0.CRT])
fi
WIN32_REDIST_DIR=`cd "$WIN32_REDIST_DIR" && pwd`
fi