cppunit: always compile with debugging symbols on windows.
Also cleanup some makefile pieces and give better error warnings. Change-Id: I9f20d60f26d5828f60664941946c266c7d166f32
This commit is contained in:
parent
f2a01771ea
commit
02638a0865
8
external/cppunit/ExternalProject_cppunit.mk
vendored
8
external/cppunit/ExternalProject_cppunit.mk
vendored
@ -13,15 +13,13 @@ $(eval $(call gb_ExternalProject_register_targets,cppunit,\
|
||||
build \
|
||||
))
|
||||
|
||||
|
||||
ifeq ($(OS)$(COM),WNTMSC)
|
||||
$(call gb_ExternalProject_get_state_target,cppunit,build) :
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
msbuild.exe cppunit_dll.vcxproj /p:Configuration=$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) \
|
||||
$(if $(filter 110,$(VCVER)),/p:PlatformToolset=v110_xp /p:VisualStudioVersion=11.0) \
|
||||
PROFILEFLAGS="$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) $(if $(filter 110,$(VCVER)),/p:PlatformToolset=v110_xp /p:VisualStudioVersion=11.0)" \
|
||||
&& msbuild.exe cppunit_dll.vcxproj /p:Configuration=$${PROFILEFLAGS} \
|
||||
&& cd ../DllPlugInTester \
|
||||
&& msbuild.exe DllPlugInTester.vcxproj /p:Configuration=$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) \
|
||||
$(if $(filter 110,$(VCVER)),/p:PlatformToolset=v110_xp /p:VisualStudioVersion=11.0) \
|
||||
&& msbuild.exe DllPlugInTester.vcxproj /p:Configuration=$${PROFILEFLAGS} \
|
||||
,src/cppunit)
|
||||
else
|
||||
|
||||
|
1
external/cppunit/UnpackedTarball_cppunit.mk
vendored
1
external/cppunit/UnpackedTarball_cppunit.mk
vendored
@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,cppunit,\
|
||||
external/cppunit/unix.patch \
|
||||
external/cppunit/wundef.patch \
|
||||
external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0 \
|
||||
external/cppunit/enable-win32-debug.patch \
|
||||
))
|
||||
ifeq ($(DISABLE_DYNLOADING),TRUE)
|
||||
$(eval $(call gb_UnpackedTarball_add_patches,cppunit,\
|
||||
|
18
external/cppunit/enable-win32-debug.patch
vendored
Normal file
18
external/cppunit/enable-win32-debug.patch
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
--- misc/cppunit-1.13.1/src/cppunit/cppunit_dll.vcxproj
|
||||
+++ misc/build/cppunit-1.13.1/src/cppunit/cppunit_dll.vcxproj
|
||||
@@ -107,7 +107,6 @@
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
- <DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPUNIT_BUILD_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AssemblerListingLocation>.\ReleaseDll\</AssemblerListingLocation>
|
||||
@@ -138,6 +137,7 @@
|
||||
<Link>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<LinkDLL>true</LinkDLL>
|
||||
+ <GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OutputFile>.\ReleaseDll\cppunit_dll.dll</OutputFile>
|
||||
<ImportLibrary>.\ReleaseDll\cppunit_dll.lib</ImportLibrary>
|
@ -214,6 +214,7 @@ public:
|
||||
std::cerr << "please check your PATH variable and re-autogen.\n";
|
||||
}
|
||||
#endif
|
||||
std::cerr << "Path is '" << getenv("PATH") << "'\n";
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user