From 5d3ed8e22eb8a78a84b26bf13eca8f9dc9a9d182 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 3 Mar 2013 16:16:55 +0000 Subject: added precompiled header added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3876 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ProfileManager/pmanagerEx_10.vcxproj | 22 ++++++++++--- .../ProfileManager/pmanagerEx_10.vcxproj.filters | 12 +++++++ plugins/ProfileManager/pmanagerEx_11.vcxproj | 22 ++++++++++--- .../ProfileManager/pmanagerEx_11.vcxproj.filters | 12 +++++++ plugins/ProfileManager/res/Version.rc | 38 ++++++++++++++++++++++ plugins/ProfileManager/src/Common.h | 12 +++++++ plugins/ProfileManager/src/Version.h | 14 ++++++++ plugins/ProfileManager/src/pmanagerEx.cpp | 32 ++++++------------ plugins/ProfileManager/src/stdafx.cpp | 18 ++++++++++ 9 files changed, 152 insertions(+), 30 deletions(-) create mode 100644 plugins/ProfileManager/res/Version.rc create mode 100644 plugins/ProfileManager/src/Common.h create mode 100644 plugins/ProfileManager/src/Version.h create mode 100644 plugins/ProfileManager/src/stdafx.cpp (limited to 'plugins/ProfileManager') diff --git a/plugins/ProfileManager/pmanagerEx_10.vcxproj b/plugins/ProfileManager/pmanagerEx_10.vcxproj index 6f5f5a3b4c..a4872f0d18 100644 --- a/plugins/ProfileManager/pmanagerEx_10.vcxproj +++ b/plugins/ProfileManager/pmanagerEx_10.vcxproj @@ -72,7 +72,7 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true EnableFastChecks @@ -80,6 +80,8 @@ Level3 EditAndContinue false + Use + Common.h _DEBUG;%(PreprocessorDefinitions) @@ -96,12 +98,14 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Level3 false + Use + Common.h _DEBUG;%(PreprocessorDefinitions) @@ -120,12 +124,14 @@ Full AnySuitable Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true Level3 false + Use + Common.h NDEBUG;%(PreprocessorDefinitions) @@ -147,12 +153,14 @@ Full AnySuitable Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true Level3 false + Use + Common.h NDEBUG;%(PreprocessorDefinitions) @@ -171,12 +179,18 @@ + + Create + + + + diff --git a/plugins/ProfileManager/pmanagerEx_10.vcxproj.filters b/plugins/ProfileManager/pmanagerEx_10.vcxproj.filters index 223e2d2d66..404d6e2aba 100644 --- a/plugins/ProfileManager/pmanagerEx_10.vcxproj.filters +++ b/plugins/ProfileManager/pmanagerEx_10.vcxproj.filters @@ -18,15 +18,27 @@ Source Files + + Source Files + Header Files + + Header Files + + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/ProfileManager/pmanagerEx_11.vcxproj b/plugins/ProfileManager/pmanagerEx_11.vcxproj index 4cc3998520..3c58010dcc 100644 --- a/plugins/ProfileManager/pmanagerEx_11.vcxproj +++ b/plugins/ProfileManager/pmanagerEx_11.vcxproj @@ -76,7 +76,7 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true EnableFastChecks @@ -84,6 +84,8 @@ Level3 EditAndContinue false + Use + Common.h _DEBUG;%(PreprocessorDefinitions) @@ -100,12 +102,14 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Level3 false + Use + Common.h _DEBUG;%(PreprocessorDefinitions) @@ -124,12 +128,14 @@ Full AnySuitable Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true Level3 false + Use + Common.h NDEBUG;%(PreprocessorDefinitions) @@ -151,12 +157,14 @@ Full AnySuitable Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true Level3 false + Use + Common.h NDEBUG;%(PreprocessorDefinitions) @@ -175,12 +183,18 @@ + + Create + + + + diff --git a/plugins/ProfileManager/pmanagerEx_11.vcxproj.filters b/plugins/ProfileManager/pmanagerEx_11.vcxproj.filters index 223e2d2d66..404d6e2aba 100644 --- a/plugins/ProfileManager/pmanagerEx_11.vcxproj.filters +++ b/plugins/ProfileManager/pmanagerEx_11.vcxproj.filters @@ -18,15 +18,27 @@ Source Files + + Source Files + Header Files + + Header Files + + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/ProfileManager/res/Version.rc b/plugins/ProfileManager/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/ProfileManager/res/Version.rc @@ -0,0 +1,38 @@ +// Microsoft Visual C++ generated resource script. +// +#ifdef APSTUDIO_INVOKED +#error this file is not editable by Microsoft Visual C++ +#endif //APSTUDIO_INVOKED + +#include "afxres.h" +#include "..\src\version.h" + +VS_VERSION_INFO VERSIONINFO + FILEVERSION __FILEVERSION_STRING + PRODUCTVERSION __FILEVERSION_STRING + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "FileDescription", __DESCRIPTION + VALUE "InternalName", __PLUGIN_NAME + VALUE "LegalCopyright", __COPYRIGHT + VALUE "OriginalFilename", __FILENAME + VALUE "ProductName", __PLUGIN_NAME + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END +END diff --git a/plugins/ProfileManager/src/Common.h b/plugins/ProfileManager/src/Common.h new file mode 100644 index 0000000000..1d8c64d6bc --- /dev/null +++ b/plugins/ProfileManager/src/Common.h @@ -0,0 +1,12 @@ +#define _CRT_SECURE_NO_WARNINGS + +#include + +#include +#include +#include +#include +#include + +#include "resource.h" +#include "Version.h" diff --git a/plugins/ProfileManager/src/Version.h b/plugins/ProfileManager/src/Version.h new file mode 100644 index 0000000000..4b36c32242 --- /dev/null +++ b/plugins/ProfileManager/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 0 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 5 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Miranda NG profile changer" +#define __FILENAME "PManagerEx.dll" +#define __DESCRIPTION "Adds a menu item to change or load a different profile of Miranda NG, restart or run a dbchecker." +#define __AUTHOR "Roman Gemini" +#define __AUTHOREMAIL "woobind@ukr.net" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2008 - 2010 Roman Gemini" diff --git a/plugins/ProfileManager/src/pmanagerEx.cpp b/plugins/ProfileManager/src/pmanagerEx.cpp index b4e9a20329..0c186ba40e 100644 --- a/plugins/ProfileManager/src/pmanagerEx.cpp +++ b/plugins/ProfileManager/src/pmanagerEx.cpp @@ -6,21 +6,8 @@ This file is placed in the public domain. Anybody is free to use or modify it as they wish with no restriction. There is no warranty. */ -#define MIRANDA_VER 0x0A00 -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "resource.h" +#include "Common.h" HINSTANCE hInst; @@ -31,15 +18,16 @@ int hLangpack; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), - "Miranda NG Profile Changer", - PLUGIN_MAKE_VERSION(0,0,0,5), - "Adds a menu item to change or load a different profile of Miranda NG, restart or run a dbchecker.", - "Roman Gemini", - "woobind@ukr.net", - "© 2008 - 2010 Roman Gemini", - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, - {0x7eeeb55e, 0x9d83, 0x4e1a, { 0xa1, 0x2f, 0x8f, 0x13, 0xf1, 0xa1, 0x24, 0xfb } } + // {7EEEB55E-9D83-4E1A-A12F-8F13F1A124FbB} + {0x7eeeb55e, 0x9d83, 0x4e1a, {0xa1, 0x2f, 0x8f, 0x13, 0xf1, 0xa1, 0x24, 0xfb}} }; extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) diff --git a/plugins/ProfileManager/src/stdafx.cpp b/plugins/ProfileManager/src/stdafx.cpp new file mode 100644 index 0000000000..1976d867da --- /dev/null +++ b/plugins/ProfileManager/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 . +*/ + +#include "common.h" \ No newline at end of file -- cgit v1.2.3