From 8a086ffdcb31d95a90bf67f2cf23ece6b8812142 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 13 Jun 2013 21:13:57 +0300 Subject: [PATCH] Make unit tests available in Release builds --- Build/Build.bat | 2 +- Common/Common_Test.vcxproj | 6 +++--- Library/Library.vcxproj | 6 +++--- Rainmeter.props | 16 ++++++++++++---- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/Build/Build.bat b/Build/Build.bat index 3b36973f..81ba54a5 100644 --- a/Build/Build.bat +++ b/Build/Build.bat @@ -20,7 +20,7 @@ echo. if not exist "%VCVARSALL%" echo ERROR: vcvarsall.bat not found & goto END call "%VCVARSALL%" x86 > nul -set MSBUILD="msbuild.exe" /p:PlatformToolset=v110_xp;VisualStudioVersion=11.0 +set MSBUILD="msbuild.exe" /p:PlatformToolset=v110_xp;VisualStudioVersion=11.0;ExcludeTests=false if exist "Certificate.bat" call "Certificate.bat" > nul set SIGNTOOL="signtool.exe" sign /t http://time.certum.pl /f "%CERTFILE%" /p "%CERTKEY%" diff --git a/Common/Common_Test.vcxproj b/Common/Common_Test.vcxproj index 995f6ac8..12e5df30 100644 --- a/Common/Common_Test.vcxproj +++ b/Common/Common_Test.vcxproj @@ -13,13 +13,13 @@ - $(ExcludeTestFile) + $(ExcludeTests) - $(ExcludeTestFile) + $(ExcludeTests) - $(ExcludeTestFile) + $(ExcludeTests) diff --git a/Library/Library.vcxproj b/Library/Library.vcxproj index cefbfb09..e8a14a52 100644 --- a/Library/Library.vcxproj +++ b/Library/Library.vcxproj @@ -48,7 +48,7 @@ comctl32.lib;Wininet.lib;UxTheme.lib;Winmm.lib;gdiplus.lib;Iphlpapi.lib;shlwapi.lib;d2d1.lib;dwrite.lib;windowscodecs.lib;Version.lib;%(AdditionalDependencies) - Winmm.dll;Version.dll;d2d1.dll;dwrite.dll + Winmm.dll;Version.dll;d2d1.dll;dwrite.dll;$(DelayLoadTestDLL) Exports.def @@ -61,7 +61,7 @@ comctl32.lib;Wininet.lib;UxTheme.lib;Winmm.lib;gdiplus.lib;Iphlpapi.lib;shlwapi.lib;d2d1.lib;dwrite.lib;windowscodecs.lib;Version.lib;%(AdditionalDependencies) - Winmm.dll;Version.dll;d2d1.dll;dwrite.dll + Winmm.dll;Version.dll;d2d1.dll;dwrite.dll;$(DelayLoadTestDLL) Exports.def @@ -88,7 +88,7 @@ Use - $(ExcludeTestFile) + $(ExcludeTests) Use diff --git a/Rainmeter.props b/Rainmeter.props index 4c3301f0..d2a6cc89 100644 --- a/Rainmeter.props +++ b/Rainmeter.props @@ -32,14 +32,24 @@ - true - false + + false Microsoft.VisualStudio.TestTools.CppUnitTestFramework.dll + + + + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + + + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + @@ -58,13 +68,11 @@ - $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) Disabled _DEBUG;%(PreprocessorDefinitions) EnableFastChecks - $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) true