Library: Simplify PCH use

This commit is contained in:
Birunthan Mohanathas 2014-01-05 13:00:50 +02:00
parent 82d753891f
commit cc0d6eeb63
9 changed files with 60 additions and 165 deletions

View File

@ -16,6 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "StdAfx.h"
#include "ConfigParser.h" #include "ConfigParser.h"
#include "../Common/UnitTest.h" #include "../Common/UnitTest.h"

View File

@ -19,6 +19,7 @@
<ClCompile> <ClCompile>
<AdditionalIncludeDirectories>lua/include;lua/lua;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>lua/include;lua/lua;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_USRDLL;LIBRARY_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_USRDLL;LIBRARY_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile> </ClCompile>
<Link> <Link>
<AdditionalDependencies>comctl32.lib;Wininet.lib;UxTheme.lib;Winmm.lib;gdiplus.lib;Iphlpapi.lib;shlwapi.lib;d2d1.lib;dwrite.lib;windowscodecs.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>comctl32.lib;Wininet.lib;UxTheme.lib;Winmm.lib;gdiplus.lib;Iphlpapi.lib;shlwapi.lib;d2d1.lib;dwrite.lib;windowscodecs.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies>
@ -27,175 +28,67 @@
</Link> </Link>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="CommandHandler.cpp"> <ClCompile Include="CommandHandler.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="ConfigParser.cpp" />
</ClCompile>
<ClCompile Include="ConfigParser.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="ConfigParser_Test.cpp"> <ClCompile Include="ConfigParser_Test.cpp">
<ExcludedFromBuild>$(ExcludeTests)</ExcludedFromBuild> <ExcludedFromBuild>$(ExcludeTests)</ExcludedFromBuild>
</ClCompile> </ClCompile>
<ClCompile Include="ContextMenu.cpp"> <ClCompile Include="ContextMenu.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="DialogAbout.cpp" />
</ClCompile> <ClCompile Include="DialogManage.cpp" />
<ClCompile Include="DialogAbout.cpp"> <ClCompile Include="Group.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="IfActions.cpp" />
</ClCompile> <ClCompile Include="Litestep.cpp" />
<ClCompile Include="DialogManage.cpp"> <ClCompile Include="Logger.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="Measure.cpp" />
</ClCompile> <ClCompile Include="MeasureCalc.cpp" />
<ClCompile Include="Group.cpp"> <ClCompile Include="MeasureCPU.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeasureDiskSpace.cpp" />
</ClCompile> <ClCompile Include="MeasureMemory.cpp" />
<ClCompile Include="IfActions.cpp"> <ClCompile Include="MeasureNet.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeasureNetIn.cpp" />
</ClCompile> <ClCompile Include="MeasureNetOut.cpp" />
<ClCompile Include="Litestep.cpp"> <ClCompile Include="MeasureNetTotal.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeasurePhysicalMemory.cpp" />
</ClCompile> <ClCompile Include="MeasurePlugin.cpp" />
<ClCompile Include="Logger.cpp"> <ClCompile Include="MeasureRegistry.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeasureScript.cpp" />
</ClCompile>
<ClCompile Include="Measure.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureCalc.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureCPU.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureDiskSpace.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureMemory.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureNet.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureNetIn.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureNetOut.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureNetTotal.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasurePhysicalMemory.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasurePlugin.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureRegistry.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureScript.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeasureString.cpp" /> <ClCompile Include="MeasureString.cpp" />
<ClCompile Include="MeasureTime.cpp"> <ClCompile Include="MeasureTime.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeasureUptime.cpp" />
</ClCompile> <ClCompile Include="MeasureVirtualMemory.cpp" />
<ClCompile Include="MeasureUptime.cpp"> <ClCompile Include="Meter.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeterBar.cpp" />
</ClCompile> <ClCompile Include="MeterBitmap.cpp" />
<ClCompile Include="MeasureVirtualMemory.cpp"> <ClCompile Include="MeterButton.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeterHistogram.cpp" />
</ClCompile> <ClCompile Include="MeterImage.cpp" />
<ClCompile Include="Meter.cpp"> <ClCompile Include="MeterLine.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeterRotator.cpp" />
</ClCompile> <ClCompile Include="MeterRoundLine.cpp" />
<ClCompile Include="MeterBar.cpp"> <ClCompile Include="MeterString.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="MeterWindow.cpp" />
</ClCompile> <ClCompile Include="Mouse.cpp" />
<ClCompile Include="MeterBitmap.cpp"> <ClCompile Include="Rainmeter.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="Export.cpp" />
</ClCompile> <ClCompile Include="Section.cpp" />
<ClCompile Include="MeterButton.cpp"> <ClCompile Include="SkinRegistry.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeterHistogram.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeterImage.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeterLine.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeterRotator.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeterRoundLine.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeterString.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MeterWindow.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="Mouse.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="Rainmeter.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="Export.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="Section.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="SkinRegistry.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="SkinRegistry_Test.cpp"> <ClCompile Include="SkinRegistry_Test.cpp">
<ExcludedFromBuild>$(ExcludeTests)</ExcludedFromBuild> <ExcludedFromBuild>$(ExcludeTests)</ExcludedFromBuild>
</ClCompile> </ClCompile>
<ClCompile Include="StdAfx.cpp"> <ClCompile Include="StdAfx.cpp">
<PrecompiledHeader>Create</PrecompiledHeader> <PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile> </ClCompile>
<ClCompile Include="System.cpp"> <ClCompile Include="System.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="TintedImage.cpp" />
</ClCompile> <ClCompile Include="TrayWindow.cpp" />
<ClCompile Include="TintedImage.cpp"> <ClCompile Include="UpdateCheck.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="lua\LuaManager.cpp" />
</ClCompile> <ClCompile Include="lua\LuaScript.cpp" />
<ClCompile Include="TrayWindow.cpp"> <ClCompile Include="lua\glue\LuaMeasure.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader> <ClCompile Include="lua\glue\LuaMeter.cpp" />
</ClCompile> <ClCompile Include="lua\glue\LuaMeterWindow.cpp" />
<ClCompile Include="UpdateCheck.cpp"> <ClCompile Include="lua\glue\LuaGlobal.cpp" />
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ClCompile Include="lua\LuaManager.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>../StdAfx.h</PrecompiledHeaderFile>
</ClCompile>
<ClCompile Include="lua\LuaScript.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>../StdAfx.h</PrecompiledHeaderFile>
</ClCompile>
<ClCompile Include="lua\glue\LuaMeasure.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>../../StdAfx.h</PrecompiledHeaderFile>
</ClCompile>
<ClCompile Include="lua\glue\LuaMeter.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>../../StdAfx.h</PrecompiledHeaderFile>
</ClCompile>
<ClCompile Include="lua\glue\LuaMeterWindow.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>../../StdAfx.h</PrecompiledHeaderFile>
</ClCompile>
<ClCompile Include="lua\glue\LuaGlobal.cpp">
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>../../StdAfx.h</PrecompiledHeaderFile>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ResourceCompile Include="Library.rc" /> <ResourceCompile Include="Library.rc" />

View File

@ -16,6 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "StdAfx.h"
#include "SkinRegistry.h" #include "SkinRegistry.h"
#include "../Common/UnitTest.h" #include "../Common/UnitTest.h"

View File

@ -16,7 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../StdAfx.h" #include "StdAfx.h"
#include "../../Common/StringUtil.h" #include "../../Common/StringUtil.h"
#include "LuaManager.h" #include "LuaManager.h"
#include "../Logger.h" #include "../Logger.h"

View File

@ -16,7 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../StdAfx.h" #include "StdAfx.h"
#include "../../Common/StringUtil.h" #include "../../Common/StringUtil.h"
#include "LuaScript.h" #include "LuaScript.h"
#include "LuaManager.h" #include "LuaManager.h"

View File

@ -16,7 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../../StdAfx.h" #include "StdAfx.h"
#include "../LuaManager.h" #include "../LuaManager.h"
#include "../../Logger.h" #include "../../Logger.h"
#include "../../../Common/StringUtil.h" #include "../../../Common/StringUtil.h"

View File

@ -16,7 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../../StdAfx.h" #include "StdAfx.h"
#include "../LuaManager.h" #include "../LuaManager.h"
#include "../../Measure.h" #include "../../Measure.h"
#include "../../MeterWindow.h" #include "../../MeterWindow.h"

View File

@ -16,7 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../../StdAfx.h" #include "StdAfx.h"
#include "../LuaManager.h" #include "../LuaManager.h"
#include "../../Meter.h" #include "../../Meter.h"
#include "../../MeterString.h" #include "../../MeterString.h"

View File

@ -16,7 +16,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../../StdAfx.h" #include "StdAfx.h"
#include "../LuaManager.h" #include "../LuaManager.h"
#include "../../Rainmeter.h" #include "../../Rainmeter.h"
#include "../../MeterWindow.h" #include "../../MeterWindow.h"