forked from amazingfate/loongoffice
adapt all externals to build against MSVC debug runtime
Add patches and/or tweaks to the following modules: curl, cppunit, icu, lcms2, libxml2, libxslt, libxmlsec, lpsolve, nss, openssl, python3 lcms2 has an inconsistency where the .lib and the .dll don't agree on the .dll name. openssl gets a honorable mention because apparently it's undocumented custom build system can build with /MDd if one picks the right configuration but i couldn't figure out how to do that in an hour of trying, and just patched the release config instead. Change-Id: I7854a0fc85247e398d561b4f513d09fe2d1ebb3c
This commit is contained in:
@ -29,19 +29,26 @@ ifeq ($(OS)$(COM),WNTMSC)
|
||||
$(call gb_ExternalProject_get_state_target,python3,build) :
|
||||
ifeq ($(VCVER),110)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
MAKEFLAGS= MSBuild.exe pcbuild.sln /t:Build /p:Configuration=Release /p:Platform=$(if $(filter INTEL,$(CPUNAME)),Win32,x64) /p:PlatformToolset=v110 /p:VisualStudioVersion=11.0 \
|
||||
MAKEFLAGS= MSBuild.exe pcbuild.sln /t:Build \
|
||||
/p:Configuration=$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) \
|
||||
/p:Platform=$(if $(filter INTEL,$(CPUNAME)),Win32,x64) \
|
||||
/p:PlatformToolset=v110 /p:VisualStudioVersion=11.0 \
|
||||
&& cd $(EXTERNAL_WORKDIR) \
|
||||
&& ln -s PCbuild LO_lib \
|
||||
,PCBuild)
|
||||
else ifeq ($(VCVER),100)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
MAKEFLAGS= MSBuild.exe pcbuild.sln /t:Build /p:Configuration=Release /p:Platform=$(if $(filter INTEL,$(CPUNAME)),Win32,x64) /ToolsVersion:4.0 \
|
||||
MAKEFLAGS= MSBuild.exe pcbuild.sln /t:Build \
|
||||
/p:Configuration=$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) \
|
||||
/p:Platform=$(if $(filter INTEL,$(CPUNAME)),Win32,x64) \
|
||||
/ToolsVersion:4.0 \
|
||||
&& cd $(EXTERNAL_WORKDIR) \
|
||||
&& ln -s PCbuild LO_lib \
|
||||
,PCBuild)
|
||||
else ifeq ($(VCVER),90)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
MAKEFLAGS= $(COMPATH)/vcpackages/vcbuild.exe pcbuild.sln "Release|$(if $(filter INTEL,$(CPUNAME)),Win32,x64)" \
|
||||
MAKEFLAGS= $(COMPATH)/vcpackages/vcbuild.exe pcbuild.sln \
|
||||
"$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)|$(if $(filter INTEL,$(CPUNAME)),Win32,x64)" \
|
||||
&& cd $(EXTERNAL_WORKDIR) \
|
||||
&& ln -s PC/VS9.0 LO_lib \
|
||||
,PC/VS9.0)
|
||||
|
||||
Reference in New Issue
Block a user