Kaydet (Commit) 54ba172d authored tarafından Michael Stahl's avatar Michael Stahl

configure: find the MSVC debug runtime libraries

... and copy them to solver bin in "external"

Change-Id: I6850495d1abb848a3f6b17de6518d05890b13c32
üst 436c7a1f
...@@ -354,6 +354,9 @@ export MSPUB_CFLAGS=$(gb_SPACE)@MSPUB_CFLAGS@ ...@@ -354,6 +354,9 @@ export MSPUB_CFLAGS=$(gb_SPACE)@MSPUB_CFLAGS@
export MSPUB_LIBS=$(gb_SPACE)@MSPUB_LIBS@ export MSPUB_LIBS=$(gb_SPACE)@MSPUB_LIBS@
export MSVC_DLLS=@MSVC_DLLS@ export MSVC_DLLS=@MSVC_DLLS@
export MSVC_DLL_PATH=@MSVC_DLL_PATH@ export MSVC_DLL_PATH=@MSVC_DLL_PATH@
export MSVC_DEBUG_DLLS=@MSVC_DEBUG_DLLS@
export MSVC_DEBUG_DLL_PATH=@MSVC_DEBUG_DLL_PATH@
export MSVC_USE_DEBUG_RUNTIME=@MSVC_USE_DEBUG_RUNTIME@
export MSVC80_DLLS=@MSVC80_DLLS@ export MSVC80_DLLS=@MSVC80_DLLS@
export MSVC80_DLL_PATH=@MSVC80_DLL_PATH@ export MSVC80_DLL_PATH=@MSVC80_DLL_PATH@
export MWAW_CFLAGS=$(gb_SPACE)@MWAW_CFLAGS@ export MWAW_CFLAGS=$(gb_SPACE)@MWAW_CFLAGS@
......
...@@ -3217,6 +3217,9 @@ dnl =================================================================== ...@@ -3217,6 +3217,9 @@ dnl ===================================================================
AC_MSG_CHECKING([whether to build with additional debug utilities]) AC_MSG_CHECKING([whether to build with additional debug utilities])
if test -n "$enable_dbgutil" -a "$enable_dbgutil" != "no"; then if test -n "$enable_dbgutil" -a "$enable_dbgutil" != "no"; then
ENABLE_DBGUTIL="TRUE" ENABLE_DBGUTIL="TRUE"
# this is an extra var so it can have different default on different MSVC
# versions (in case there are version specific problems with it)
MSVC_USE_DEBUG_RUNTIME=""
PROEXT="" PROEXT=""
PRODUCT="" PRODUCT=""
...@@ -3249,12 +3252,14 @@ if test -n "$enable_dbgutil" -a "$enable_dbgutil" != "no"; then ...@@ -3249,12 +3252,14 @@ if test -n "$enable_dbgutil" -a "$enable_dbgutil" != "no"; then
fi fi
else else
ENABLE_DBGUTIL="" ENABLE_DBGUTIL=""
MSVC_USE_DEBUG_RUNTIME=""
# PRODUCT is old concept, still used by build.pl . # PRODUCT is old concept, still used by build.pl .
PRODUCT="full" PRODUCT="full"
PROEXT=".pro" PROEXT=".pro"
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
AC_SUBST(ENABLE_DBGUTIL) AC_SUBST(ENABLE_DBGUTIL)
AC_SUBST(MSVC_USE_DEBUG_RUNTIME)
AC_SUBST(PRODUCT) AC_SUBST(PRODUCT)
AC_SUBST(PROEXT) AC_SUBST(PROEXT)
...@@ -4848,9 +4853,12 @@ find_msvc_dlls() ...@@ -4848,9 +4853,12 @@ find_msvc_dlls()
fi fi
msvcdllpath="$VC_PRODUCT_DIR/redist/$vsarch/Microsoft.VC${VCVER}.CRT" msvcdllpath="$VC_PRODUCT_DIR/redist/$vsarch/Microsoft.VC${VCVER}.CRT"
MSVC_DEBUG_DLL_PATH="$VC_PRODUCT_DIR/redist/Debug_NonRedist/$vsarch/Microsoft.VC${VCVER}.DebugCRT"
msvcdlls="msvcp${VCVER}.dll msvcr${VCVER}.dll" msvcdlls="msvcp${VCVER}.dll msvcr${VCVER}.dll"
MSVC_DEBUG_DLLS="msvcp${VCVER}d.dll msvcr${VCVER}d.dll"
if test "$VCVER" = "90"; then if test "$VCVER" = "90"; then
msvcdlls="$msvcdlls msvcm90.dll Microsoft.VC90.CRT.manifest" msvcdlls="$msvcdlls msvcm90.dll Microsoft.VC90.CRT.manifest"
MSVC_DEBUG_DLLS="$MSVC_DEBUG_DLLS msvcm90d.dll Microsoft.VC90.DebugCRT.manifest"
fi fi
for dll in $msvcdlls; do for dll in $msvcdlls; do
...@@ -4858,6 +4866,14 @@ find_msvc_dlls() ...@@ -4858,6 +4866,14 @@ find_msvc_dlls()
AC_MSG_ERROR([can not find $dll in $msvcdllpath]) AC_MSG_ERROR([can not find $dll in $msvcdllpath])
fi fi
done done
if test -n "$MSVC_USE_DEBUG_RUNTIME"; then
for dll in $MSVC_DEBUG_DLLS; do
if ! test -f "$MSVC_DEBUG_DLL_PATH/$dll"; then
AC_MSG_ERROR([can not find $dll in $MSVC_DEBUG_DLL_PATH])
fi
done
fi
} }
if test "$build_os" = "cygwin"; then if test "$build_os" = "cygwin"; then
...@@ -6031,6 +6047,8 @@ if test $_os = "WINNT" -a "$WITH_MINGW" != yes; then ...@@ -6031,6 +6047,8 @@ if test $_os = "WINNT" -a "$WITH_MINGW" != yes; then
fi fi
AC_SUBST(MSVC_DLL_PATH) AC_SUBST(MSVC_DLL_PATH)
AC_SUBST(MSVC_DLLS) AC_SUBST(MSVC_DLLS)
AC_SUBST(MSVC_DEBUG_DLL_PATH)
AC_SUBST(MSVC_DEBUG_DLLS)
AC_SUBST(MSM_PATH) AC_SUBST(MSM_PATH)
AC_SUBST(MERGE_MODULES) AC_SUBST(MERGE_MODULES)
......
...@@ -28,6 +28,7 @@ $(eval $(call gb_Module_add_targets,external,\ ...@@ -28,6 +28,7 @@ $(eval $(call gb_Module_add_targets,external,\
Package_dbghelp \ Package_dbghelp \
Package_msms \ Package_msms \
Package_msvc_dlls \ Package_msvc_dlls \
$(if $(MSVC_USE_DEBUG_RUNTIME),Package_msvc_dlls_debug) \
Package_msvc80_dlls \ Package_msvc80_dlls \
)) ))
endif endif
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,msvc_dlls,$(MSVC_DEBUG_DLL_PATH)))
$(eval $(call gb_Package_add_files,msvc_dlls,bin,\
$(MSVC_DEBUG_DLLS) \
))
# vim:set shiftwidth=4 tabstop=4 noexpandtab:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment