mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Common: Use PCH
This commit is contained in:
parent
cc0d6eeb63
commit
76b2ce47bc
@ -17,6 +17,7 @@
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<Lib>
|
||||
<LinkTimeCodeGeneration Condition="'$(Configuration)'=='Release'">true</LinkTimeCodeGeneration>
|
||||
@ -44,6 +45,9 @@
|
||||
<ClCompile Include="MenuTemplate.cpp" />
|
||||
<ClCompile Include="PathUtil.cpp" />
|
||||
<ClCompile Include="Platform.cpp" />
|
||||
<ClCompile Include="StdAfx.cpp">
|
||||
<PrecompiledHeader>Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="StringUtil.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@ -69,6 +73,7 @@
|
||||
<ClInclude Include="PathUtil.h" />
|
||||
<ClInclude Include="Platform.h" />
|
||||
<ClInclude Include="RawString.h" />
|
||||
<ClInclude Include="StdAfx.h" />
|
||||
<ClInclude Include="StringUtil.h" />
|
||||
<ClInclude Include="Timer.h" />
|
||||
<ClInclude Include="UnitTest.h" />
|
||||
|
@ -53,6 +53,7 @@
|
||||
<ClCompile Include="Gfx\Util\WICBitmapLockGDIP.cpp">
|
||||
<Filter>Gfx\Util</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="StdAfx.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Dialog.h" />
|
||||
@ -110,6 +111,7 @@
|
||||
<ClInclude Include="Gfx\Util\WICBitmapLockGDIP.h">
|
||||
<Filter>Gfx\Util</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="StdAfx.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="Gfx">
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "ControlTemplate.h"
|
||||
|
||||
namespace ControlTemplate
|
||||
|
@ -16,9 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "Dialog.h"
|
||||
#include <Commctrl.h>
|
||||
#include <Uxtheme.h>
|
||||
|
||||
HWND Dialog::c_ActiveDialogWindow = nullptr;
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "Canvas.h"
|
||||
#include "CanvasD2D.h"
|
||||
#include "CanvasGDIP.h"
|
||||
|
@ -21,9 +21,6 @@
|
||||
|
||||
#include "FontCollection.h"
|
||||
#include "TextFormat.h"
|
||||
#include <Windows.h>
|
||||
#include <ole2.h> // For Gdiplus.h.
|
||||
#include <GdiPlus.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "../Platform.h"
|
||||
#include "CanvasD2D.h"
|
||||
#include "TextFormatD2D.h"
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "CanvasGDIP.h"
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "FontCollection.h"
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "FontCollectionD2D.h"
|
||||
#include "CanvasD2D.h"
|
||||
#include "Util/DWriteFontCollectionLoader.h"
|
||||
|
@ -16,9 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "FontCollectionGDIP.h"
|
||||
#include <ole2.h> // For Gdiplus.h.
|
||||
#include <GdiPlus.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "TextFormat.h"
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "TextFormatD2D.h"
|
||||
#include "CanvasD2D.h"
|
||||
#include "Util/DWriteHelpers.h"
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "TextFormatGDIP.h"
|
||||
#include "FontCollectionGDIP.h"
|
||||
|
||||
|
@ -16,9 +16,9 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "DWriteFontCollectionLoader.h"
|
||||
#include "DWriteFontFileEnumerator.h"
|
||||
#include <vector>
|
||||
|
||||
namespace Gfx {
|
||||
namespace Util {
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "DWriteFontFileEnumerator.h"
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -16,9 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "DWriteHelpers.h"
|
||||
#include <wrl/client.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace Gfx {
|
||||
namespace Util {
|
||||
|
@ -16,9 +16,9 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "WICBitmapDIB.h"
|
||||
#include "WICBitmapLockDIB.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace Gfx {
|
||||
namespace Util {
|
||||
|
@ -16,8 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "WICBitmapLockDIB.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace Gfx {
|
||||
namespace Util {
|
||||
|
@ -16,8 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "WICBitmapLockGDIP.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace Gfx {
|
||||
namespace Util {
|
||||
|
@ -18,8 +18,7 @@
|
||||
|
||||
// Heavily based on ccalc 0.5.1 by Walery Studennikov <hqsoftware@mail.ru>
|
||||
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
#include "StdAfx.h"
|
||||
#include "MathParser.h"
|
||||
|
||||
namespace MathParser {
|
||||
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "MenuTemplate.h"
|
||||
|
||||
HMENU MenuTemplate::CreateMenu(const MenuTemplate* items, UINT itemCount, GetStringFunc getString)
|
||||
|
@ -16,8 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "PathUtil.h"
|
||||
#include <Shlobj.h>
|
||||
|
||||
namespace PathUtil {
|
||||
|
||||
|
@ -16,8 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "Platform.h"
|
||||
#include <Windows.h>
|
||||
|
||||
namespace Platform {
|
||||
|
||||
|
20
Common/StdAfx.cpp
Normal file
20
Common/StdAfx.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
Copyright (C) 2014 Rainmeter Team
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "StdAfx.h"
|
44
Common/StdAfx.h
Normal file
44
Common/StdAfx.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
Copyright (C) 2014 Rainmeter Team
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef __STDAFX_H__
|
||||
#define __STDAFX_H__
|
||||
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <crtdbg.h>
|
||||
|
||||
#include <Windows.h>
|
||||
#include <Commctrl.h>
|
||||
#include <d2d1_1.h>
|
||||
#include <d2d1helper.h>
|
||||
#include <dwrite_1.h>
|
||||
#include <ole2.h> // For Gdiplus.h.
|
||||
#include <GdiPlus.h>
|
||||
#include <Shlobj.h>
|
||||
#include <Uxtheme.h>
|
||||
#include <wincodec.h>
|
||||
#include <wrl/client.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#endif
|
@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "StringUtil.h"
|
||||
|
||||
namespace StringUtil {
|
||||
|
Loading…
Reference in New Issue
Block a user