summaryrefslogtreecommitdiff
path: root/plugins/CyrTranslit
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-23 14:20:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-23 14:20:45 +0000
commit21ddd792e4029f9fa9bbe555f2aa4ff32e2b15e1 (patch)
tree5dc3fabdd8a34cb191d473d0cb29f3b59af4f08a /plugins/CyrTranslit
parentf33e8fab62c9ee9a73617fafde7b33715420f4c9 (diff)
added precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@3725 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CyrTranslit')
-rw-r--r--plugins/CyrTranslit/CyrTranslit_10.vcxproj31
-rw-r--r--plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters9
-rw-r--r--plugins/CyrTranslit/CyrTranslit_11.vcxproj31
-rw-r--r--plugins/CyrTranslit/CyrTranslit_11.vcxproj.filters9
-rw-r--r--plugins/CyrTranslit/src/MirandaContact.cpp2
-rw-r--r--plugins/CyrTranslit/src/TransliterationMap.cpp1
-rw-r--r--plugins/CyrTranslit/src/TransliterationProtocol.cpp3
-rw-r--r--plugins/CyrTranslit/src/main.cpp1
-rw-r--r--plugins/CyrTranslit/src/plugin.h30
-rw-r--r--plugins/CyrTranslit/src/stdafx.cpp18
-rw-r--r--plugins/CyrTranslit/src/version.h18
11 files changed, 84 insertions, 69 deletions
diff --git a/plugins/CyrTranslit/CyrTranslit_10.vcxproj b/plugins/CyrTranslit/CyrTranslit_10.vcxproj
index eee53bc0df..6076b217d5 100644
--- a/plugins/CyrTranslit/CyrTranslit_10.vcxproj
+++ b/plugins/CyrTranslit/CyrTranslit_10.vcxproj
@@ -72,13 +72,15 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -95,11 +97,13 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -116,10 +120,12 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -139,10 +145,12 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
- <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -162,6 +170,9 @@
<ItemGroup>
<ClCompile Include="src\main.cpp" />
<ClCompile Include="src\MirandaContact.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="src\TransliterationMap.cpp" />
<ClCompile Include="src\TransliterationProtocol.cpp" />
</ItemGroup>
@@ -171,9 +182,7 @@
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\TransliterationMap.h" />
<ClInclude Include="src\TransliterationProtocol.h" />
- </ItemGroup>
- <ItemGroup>
- <None Include="docs\gpl.txt" />
+ <ClInclude Include="src\version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\version.rc" />
diff --git a/plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters b/plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters
index cb35ab642d..00812bb0dd 100644
--- a/plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters
+++ b/plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters
@@ -27,6 +27,9 @@
<ClCompile Include="src\TransliterationProtocol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\MirandaContact.h">
@@ -44,9 +47,9 @@
<ClInclude Include="src\TransliterationProtocol.h">
<Filter>Header Files</Filter>
</ClInclude>
- </ItemGroup>
- <ItemGroup>
- <None Include="docs\gpl.txt" />
+ <ClInclude Include="src\version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\version.rc">
diff --git a/plugins/CyrTranslit/CyrTranslit_11.vcxproj b/plugins/CyrTranslit/CyrTranslit_11.vcxproj
index 9f98dd9858..032b8d611e 100644
--- a/plugins/CyrTranslit/CyrTranslit_11.vcxproj
+++ b/plugins/CyrTranslit/CyrTranslit_11.vcxproj
@@ -76,13 +76,15 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -99,11 +101,13 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -120,10 +124,12 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Full</Optimization>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -143,10 +149,12 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
- <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;CYRTRANSLIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>plugin.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
@@ -166,6 +174,9 @@
<ItemGroup>
<ClCompile Include="src\main.cpp" />
<ClCompile Include="src\MirandaContact.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="src\TransliterationMap.cpp" />
<ClCompile Include="src\TransliterationProtocol.cpp" />
</ItemGroup>
@@ -175,9 +186,7 @@
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\TransliterationMap.h" />
<ClInclude Include="src\TransliterationProtocol.h" />
- </ItemGroup>
- <ItemGroup>
- <None Include="docs\gpl.txt" />
+ <ClInclude Include="src\version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\version.rc" />
diff --git a/plugins/CyrTranslit/CyrTranslit_11.vcxproj.filters b/plugins/CyrTranslit/CyrTranslit_11.vcxproj.filters
index cb35ab642d..00812bb0dd 100644
--- a/plugins/CyrTranslit/CyrTranslit_11.vcxproj.filters
+++ b/plugins/CyrTranslit/CyrTranslit_11.vcxproj.filters
@@ -27,6 +27,9 @@
<ClCompile Include="src\TransliterationProtocol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\MirandaContact.h">
@@ -44,9 +47,9 @@
<ClInclude Include="src\TransliterationProtocol.h">
<Filter>Header Files</Filter>
</ClInclude>
- </ItemGroup>
- <ItemGroup>
- <None Include="docs\gpl.txt" />
+ <ClInclude Include="src\version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\version.rc">
diff --git a/plugins/CyrTranslit/src/MirandaContact.cpp b/plugins/CyrTranslit/src/MirandaContact.cpp
index 045199f45d..3240e1fe35 100644
--- a/plugins/CyrTranslit/src/MirandaContact.cpp
+++ b/plugins/CyrTranslit/src/MirandaContact.cpp
@@ -18,8 +18,6 @@
*/
#include "plugin.h"
-#include "MirandaContact.h"
-#include "TransliterationProtocol.h"
namespace CyrTranslit
{
diff --git a/plugins/CyrTranslit/src/TransliterationMap.cpp b/plugins/CyrTranslit/src/TransliterationMap.cpp
index 0e763fa854..99919a5960 100644
--- a/plugins/CyrTranslit/src/TransliterationMap.cpp
+++ b/plugins/CyrTranslit/src/TransliterationMap.cpp
@@ -18,7 +18,6 @@
*/
#include "plugin.h"
-#include "TransliterationMap.h"
namespace CyrTranslit
{
diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp
index e261458934..ecb650571f 100644
--- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp
+++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp
@@ -18,9 +18,6 @@
*/
#include "plugin.h"
-#include "MirandaContact.h"
-#include "TransliterationProtocol.h"
-#include "TransliterationMap.h"
namespace CyrTranslit
{
diff --git a/plugins/CyrTranslit/src/main.cpp b/plugins/CyrTranslit/src/main.cpp
index 8266dd748d..589d406e0f 100644
--- a/plugins/CyrTranslit/src/main.cpp
+++ b/plugins/CyrTranslit/src/main.cpp
@@ -18,7 +18,6 @@
*/
#include "plugin.h"
-#include "MirandaContact.h"
HINSTANCE hInst;
int hLangpack = 0;
diff --git a/plugins/CyrTranslit/src/plugin.h b/plugins/CyrTranslit/src/plugin.h
index f136504e2f..f6503b8140 100644
--- a/plugins/CyrTranslit/src/plugin.h
+++ b/plugins/CyrTranslit/src/plugin.h
@@ -16,31 +16,19 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#pragma once
-
-/****** SYSTEM OPTIONS *******************************************************/
-
-// set compatibility lever for Miranda 0.4.x
-#define MIRANDA_VER 0x0400
-
-// for windows:
#define _CRT_SECURE_NO_WARNINGS
-#pragma warning (disable : 4312) /*C4312: 'type cast' : conversion from 'int' to 'char *' of greater size */
-
-
-
-/****** INCLUDES *************************************************************/
#include <windows.h>
#include <map>
-#include <string>
-#include "newpluginapi.h"
-#include "m_database.h"
-#include "m_protomod.h"
-#include "m_protosvc.h"
-#include "m_system.h"
-#include "m_clist.h"
-#include "m_langpack.h"
+
+#include <newpluginapi.h>
+#include <m_database.h>
+#include <m_protomod.h>
+#include <m_clist.h>
+#include <m_langpack.h>
#include "version.h"
+#include "MirandaContact.h"
+#include "TransliterationMap.h"
+#include "TransliterationProtocol.h"
diff --git a/plugins/CyrTranslit/src/stdafx.cpp b/plugins/CyrTranslit/src/stdafx.cpp
new file mode 100644
index 0000000000..96747e025f
--- /dev/null
+++ b/plugins/CyrTranslit/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-13 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 "plugin.h" \ No newline at end of file
diff --git a/plugins/CyrTranslit/src/version.h b/plugins/CyrTranslit/src/version.h
index 2e0ac428da..9f6cab9081 100644
--- a/plugins/CyrTranslit/src/version.h
+++ b/plugins/CyrTranslit/src/version.h
@@ -23,19 +23,11 @@
#define __BUILD_NUM 0
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
-#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
-#define __STRINGIFY_IMPL(x) #x
-#define __STRINGIFY(x) __STRINGIFY_IMPL(x)
-#define __VERSION_STRING __STRINGIFY(__FILEVERSION_DOTS)
-
-#define __PLUGIN_NAME "CyrTranslit"
-#define __INTERNAL_NAME "CyrTranslit"
+#define __PLUGIN_NAME "CyrTranslit"
#define __FILENAME "CyrTranslit.dll"
-#define __DESCRIPTION "Replaces (for the selected contacts only) the Cyrillic letters in the "\
- "outgoing messages with the phonetically equivalent Latin letter "\
- "combinations."
+#define __DESCRIPTION "Replaces (for the selected contacts only) the Cyrillic letters in the outgoing messages with the phonetically equivalent Latin letter combinations."
#define __AUTHOR "ValeraVi, Ivan Krechetov"
-#define __AUTHOREMAIL "valeravi@vi-soft.com.ua"
-#define __AUTHORWEB "http://miranda-ng.org/"
-#define __COPYRIGHT "© 2005-2009 ValeraVi, Ivan Krechetov"
+#define __AUTHOREMAIL "valeravi@vi-soft.com.ua"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2005-2009 ValeraVi, Ivan Krechetov"