summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-22 17:55:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-22 17:55:45 +0000
commitddf12139a7acb89ae48bf22c4c2a0944922f0ae9 (patch)
tree9ea5bcaced2d521fb83d65f1aee8fe8677964367 /plugins
parent8f183d6896f9dc26c710d6fc805c3347a8822f83 (diff)
added precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@3694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AutoRun/autorun_11.vcxproj11
-rw-r--r--plugins/AutoRun/autorun_11.vcxproj.filters3
-rw-r--r--plugins/AutoRun/src/autorun.h2
-rw-r--r--plugins/AutoRun/src/main.cpp1
-rw-r--r--plugins/AutoRun/src/stdafx.cpp18
5 files changed, 33 insertions, 2 deletions
diff --git a/plugins/AutoRun/autorun_11.vcxproj b/plugins/AutoRun/autorun_11.vcxproj
index 57f90ab06e..b6c3e37db5 100644
--- a/plugins/AutoRun/autorun_11.vcxproj
+++ b/plugins/AutoRun/autorun_11.vcxproj
@@ -85,6 +85,8 @@
<IntrinsicFunctions>false</IntrinsicFunctions>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeaderFile>autorun.h</PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -115,6 +117,8 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;autorun_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeaderFile>autorun.h</PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -141,6 +145,8 @@
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeaderFile>autorun.h</PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -167,6 +173,8 @@
<PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;autorun_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeaderFile>autorun.h</PrecompiledHeaderFile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -193,6 +201,9 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\main.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/AutoRun/autorun_11.vcxproj.filters b/plugins/AutoRun/autorun_11.vcxproj.filters
index 30ebec2d72..8d0561f6f0 100644
--- a/plugins/AutoRun/autorun_11.vcxproj.filters
+++ b/plugins/AutoRun/autorun_11.vcxproj.filters
@@ -37,5 +37,8 @@
<ClCompile Include="src\main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/plugins/AutoRun/src/autorun.h b/plugins/AutoRun/src/autorun.h
index 31fb3c9065..a1ae3abd01 100644
--- a/plugins/AutoRun/src/autorun.h
+++ b/plugins/AutoRun/src/autorun.h
@@ -13,5 +13,3 @@
#define SUB_KEY _T("Software\\Microsoft\\Windows\\CurrentVersion\\Run")
#define ModuleName LPGEN("Autorun")
-
-HKEY ROOT_KEY = HKEY_CURRENT_USER;
diff --git a/plugins/AutoRun/src/main.cpp b/plugins/AutoRun/src/main.cpp
index f33a164dd0..3053853734 100644
--- a/plugins/AutoRun/src/main.cpp
+++ b/plugins/AutoRun/src/main.cpp
@@ -2,6 +2,7 @@
HINSTANCE hInst;
int hLangpack;
+HKEY ROOT_KEY = HKEY_CURRENT_USER;
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
diff --git a/plugins/AutoRun/src/stdafx.cpp b/plugins/AutoRun/src/stdafx.cpp
new file mode 100644
index 0000000000..d1715833dc
--- /dev/null
+++ b/plugins/AutoRun/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 "autorun.h" \ No newline at end of file