From 1749350c4ae58f48b034aa373941dcf0edf8c969 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 8 Mar 2013 10:59:29 +0000 Subject: added precompiled header added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Rate/rate_10.vcxproj | 21 ++++++++++++++++---- plugins/Rate/rate_10.vcxproj.filters | 9 +++++++++ plugins/Rate/rate_11.vcxproj | 24 +++++++++++++++++++---- plugins/Rate/rate_11.vcxproj.filters | 9 +++++++++ plugins/Rate/res/Version.rc | 38 ++++++++++++++++++++++++++++++++++++ plugins/Rate/res/rate.rc | 13 +----------- plugins/Rate/src/Version.h | 14 +++++++++++++ plugins/Rate/src/commonheaders.h | 23 ++++------------------ plugins/Rate/src/main.cpp | 18 ++++++++--------- plugins/Rate/src/stdafx.cpp | 18 +++++++++++++++++ 10 files changed, 139 insertions(+), 48 deletions(-) create mode 100644 plugins/Rate/res/Version.rc create mode 100644 plugins/Rate/src/Version.h create mode 100644 plugins/Rate/src/stdafx.cpp (limited to 'plugins/Rate') diff --git a/plugins/Rate/rate_10.vcxproj b/plugins/Rate/rate_10.vcxproj index 2a850ebb5d..62dfe541f1 100644 --- a/plugins/Rate/rate_10.vcxproj +++ b/plugins/Rate/rate_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 + commonheaders.h true @@ -97,12 +99,14 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Level3 false + Use + commonheaders.h true @@ -120,11 +124,13 @@ Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Level3 Size false + Use + commonheaders.h true @@ -145,11 +151,13 @@ Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Level3 Size false + Use + commonheaders.h true @@ -169,13 +177,18 @@ + + Create + + + diff --git a/plugins/Rate/rate_10.vcxproj.filters b/plugins/Rate/rate_10.vcxproj.filters index 041ce0edcc..74c3d425ce 100644 --- a/plugins/Rate/rate_10.vcxproj.filters +++ b/plugins/Rate/rate_10.vcxproj.filters @@ -18,6 +18,9 @@ Source Files + + Source Files + @@ -26,10 +29,16 @@ Header Files + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/Rate/rate_11.vcxproj b/plugins/Rate/rate_11.vcxproj index dfeeaf5368..95a59a5796 100644 --- a/plugins/Rate/rate_11.vcxproj +++ b/plugins/Rate/rate_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 + commonheaders.h true @@ -101,12 +103,14 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Level3 false + Use + commonheaders.h true @@ -124,11 +128,13 @@ Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Level3 Size false + Use + commonheaders.h true @@ -149,11 +155,13 @@ Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Level3 Size false + Use + commonheaders.h true @@ -173,13 +181,21 @@ + + Create + Create + Create + Create + + + diff --git a/plugins/Rate/rate_11.vcxproj.filters b/plugins/Rate/rate_11.vcxproj.filters index 041ce0edcc..74c3d425ce 100644 --- a/plugins/Rate/rate_11.vcxproj.filters +++ b/plugins/Rate/rate_11.vcxproj.filters @@ -18,6 +18,9 @@ Source Files + + Source Files + @@ -26,10 +29,16 @@ Header Files + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/Rate/res/Version.rc b/plugins/Rate/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/Rate/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/Rate/res/rate.rc b/plugins/Rate/res/rate.rc index 8682473b93..834df998b7 100644 --- a/plugins/Rate/res/rate.rc +++ b/plugins/Rate/res/rate.rc @@ -31,18 +31,7 @@ LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT IDI_RATEHI ICON "rate_high.ico" IDI_RATELO ICON "rate_low.ico" IDI_RATEME ICON "rate_med.ico" -#endif // Ukrainian resources -///////////////////////////////////////////////////////////////////////////// - - -///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -#pragma code_page(1252) -#endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// @@ -70,7 +59,7 @@ END #endif // APSTUDIO_INVOKED -#endif // English (U.S.) resources +#endif // Ukrainian resources ///////////////////////////////////////////////////////////////////////////// diff --git a/plugins/Rate/src/Version.h b/plugins/Rate/src/Version.h new file mode 100644 index 0000000000..90fe5313dd --- /dev/null +++ b/plugins/Rate/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 0 +#define __RELEASE_NUM 2 +#define __BUILD_NUM 1 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Contact`s rate" +#define __FILENAME "Rate.dll" +#define __DESCRIPTION "Shows rating of contact in contact list (if presents)." +#define __AUTHOR "Kildor, Thief" +#define __AUTHOREMAIL "kostia@ngs.ru" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT " 2006-2009 Kostia Romanov, based on AuthState by Alexander Turyak" diff --git a/plugins/Rate/src/commonheaders.h b/plugins/Rate/src/commonheaders.h index bdced5d33b..8fe6e4011b 100644 --- a/plugins/Rate/src/commonheaders.h +++ b/plugins/Rate/src/commonheaders.h @@ -16,12 +16,6 @@ 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - File name : $URL: http://svn.mirandaim.ru/mainrepo/authstate/trunk/commonheaders.h $ - Revision : $Rev: 222 $ - Last change on : $Date: 2006-09-26 05:54:03 +0700 (Вт, 26 сен 2006) $ - Last change by : $Author: Thief $ - */ #ifndef COMMHEADERS_H @@ -29,26 +23,17 @@ #define _CRT_SECURE_NO_WARNINGS -//Miranda API headers #include + #include #include #include -#include -//#include -#include -#include -#include #include -#include -#include "resource.h" - -//external SDK headers #include -#define MODULENAME "Rate" +#include "resource.h" +#include "Version.h" -/* 0e2866a8-6f4c-4132-98ae-6afdb8766c48 */ -#define MIID_CONTACTSRATE {0x0e2866a8, 0x6f4c, 0x4132, {0x98, 0xae, 0x6a, 0xfd, 0xb8, 0x76, 0x6c, 0x48}} +#define MODULENAME "Rate" #endif //COMMHEADERS_H diff --git a/plugins/Rate/src/main.cpp b/plugins/Rate/src/main.cpp index 0d00e56a9b..364a10214f 100644 --- a/plugins/Rate/src/main.cpp +++ b/plugins/Rate/src/main.cpp @@ -43,19 +43,19 @@ int hLangpack; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), - "Contact`s Rate", - PLUGIN_MAKE_VERSION(0,0,2,1), - "Shows rating of contact in contact list (if presents).", - "Kildor, Thief", - "kostia@ngs.ru", - " 2006-2009 Kostia Romanov, based on AuthState by Alexander Turyak", - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, - // 45230488-977b-405b-856d-ea276d7083b7 + // {45230488-977B-405B-856D-EA276D7083B7} {0x45230488, 0x977b, 0x405b, {0x85, 0x6d, 0xea, 0x27, 0x6d, 0x70, 0x83, 0xb7}} }; -extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { g_hInst = hinstDLL; return TRUE; diff --git a/plugins/Rate/src/stdafx.cpp b/plugins/Rate/src/stdafx.cpp new file mode 100644 index 0000000000..e7e41dae3c --- /dev/null +++ b/plugins/Rate/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 "commonheaders.h" \ No newline at end of file -- cgit v1.2.3