summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2015-01-17 10:29:31 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2015-01-17 10:29:31 +0000
commit48ed6dd42e273478de69e501d7a151aefecdfdaf (patch)
treeb944450997a6207984cc058adc86aac2608dc19b
parentacc58a246bee0bf5e1f0da754f25a230452e0f7a (diff)
Exchange: using precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@11869 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Exchange/Exchange_10.vcxproj24
-rw-r--r--plugins/Exchange/Exchange_12.vcxproj25
-rw-r--r--plugins/Exchange/Exchange_12.vcxproj.filters3
-rw-r--r--plugins/Exchange/src/StdAfx.cpp8
-rw-r--r--plugins/Exchange/src/StdAfx.h23
-rw-r--r--plugins/Exchange/src/stdafx.cpp18
6 files changed, 40 insertions, 61 deletions
diff --git a/plugins/Exchange/Exchange_10.vcxproj b/plugins/Exchange/Exchange_10.vcxproj
index b5fb7f26df..977d4b4cab 100644
--- a/plugins/Exchange/Exchange_10.vcxproj
+++ b/plugins/Exchange/Exchange_10.vcxproj
@@ -36,7 +36,9 @@
<ClCompile Include="src\hooked_events.cpp" />
<ClCompile Include="src\MirandaExchange.cpp" />
<ClCompile Include="src\services.cpp" />
- <ClCompile Include="src\StdAfx.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="src\utils.cpp" />
</ItemGroup>
<ItemGroup>
@@ -111,9 +113,8 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -140,9 +141,8 @@
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -169,9 +169,8 @@
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<OptimizeReferences>true</OptimizeReferences>
@@ -197,9 +196,8 @@
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Optimization>Disabled</Optimization>
<WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
diff --git a/plugins/Exchange/Exchange_12.vcxproj b/plugins/Exchange/Exchange_12.vcxproj
index bf65b274e3..c13690bae3 100644
--- a/plugins/Exchange/Exchange_12.vcxproj
+++ b/plugins/Exchange/Exchange_12.vcxproj
@@ -26,7 +26,6 @@
<ClInclude Include="src\MirandaExchange.h" />
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\services.h" />
- <ClInclude Include="src\StdAfx.h" />
<ClInclude Include="src\utils.h" />
<ClInclude Include="src\version.h" />
</ItemGroup>
@@ -37,7 +36,9 @@
<ClCompile Include="src\hooked_events.cpp" />
<ClCompile Include="src\MirandaExchange.cpp" />
<ClCompile Include="src\services.cpp" />
- <ClCompile Include="src\StdAfx.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="src\utils.cpp" />
</ItemGroup>
<ItemGroup>
@@ -116,9 +117,8 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -146,9 +146,8 @@
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -174,9 +173,8 @@
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<OptimizeReferences>true</OptimizeReferences>
@@ -201,9 +199,8 @@
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Optimization>Disabled</Optimization>
<WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>
- </PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
diff --git a/plugins/Exchange/Exchange_12.vcxproj.filters b/plugins/Exchange/Exchange_12.vcxproj.filters
index 9dc5648ac0..9275eb59ad 100644
--- a/plugins/Exchange/Exchange_12.vcxproj.filters
+++ b/plugins/Exchange/Exchange_12.vcxproj.filters
@@ -36,9 +36,6 @@
<ClInclude Include="src\services.h">
<Filter>Header files</Filter>
</ClInclude>
- <ClInclude Include="src\StdAfx.h">
- <Filter>Header files</Filter>
- </ClInclude>
<ClInclude Include="src\utils.h">
<Filter>Header files</Filter>
</ClInclude>
diff --git a/plugins/Exchange/src/StdAfx.cpp b/plugins/Exchange/src/StdAfx.cpp
deleted file mode 100644
index acff65a913..0000000000
--- a/plugins/Exchange/src/StdAfx.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-// exchange.pch will be the pre-compiled header
-// stdafx.obj will contain the pre-compiled type information
-
-#include "commonheaders.h"
-
-// TODO: reference any additional headers you need in STDAFX.H
-// and not in this file
diff --git a/plugins/Exchange/src/StdAfx.h b/plugins/Exchange/src/StdAfx.h
deleted file mode 100644
index 8cd858b701..0000000000
--- a/plugins/Exchange/src/StdAfx.h
+++ /dev/null
@@ -1,23 +0,0 @@
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__B170AF8E_BA64_4233_BF83_B4F0D1F3B775__INCLUDED_)
-#define AFX_STDAFX_H__B170AF8E_BA64_4233_BF83_B4F0D1F3B775__INCLUDED_
-
-#pragma once
-
-// Insert your headers here
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
-#define _CRT_SECURE_NO_WARNINGS
-
-#include <windows.h>
-
-#include <stdarg.h>
-
-// TODO: reference additional headers your program requires here
-
-#include "commonheaders.h"
-
-#endif // !defined(AFX_STDAFX_H__B170AF8E_BA64_4233_BF83_B4F0D1F3B775__INCLUDED_)
diff --git a/plugins/Exchange/src/stdafx.cpp b/plugins/Exchange/src/stdafx.cpp
new file mode 100644
index 0000000000..048b14e9d2
--- /dev/null
+++ b/plugins/Exchange/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org)
+
+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 version 2
+of the License.
+
+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, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "commonheaders.h" \ No newline at end of file