From 29dd41bae794c4b40573e966afce96ed87615f02 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 20 Oct 2012 16:46:49 +0000 Subject: version info standartization git-svn-id: http://svn.miranda-ng.org/main/trunk@1999 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BuddyExpectator/BuddyExpectator10.vcxproj | 2 + .../BuddyExpectator10.vcxproj.filters | 44 ++++++++++++++++++++++ plugins/BuddyExpectator/res/Version.rc | 38 +++++++++++++++++++ plugins/BuddyExpectator/src/BuddyExpectator.cpp | 25 +++++------- plugins/BuddyExpectator/src/Version.h | 20 ++++++++++ plugins/BuddyExpectator/src/common.h | 11 ++++-- 6 files changed, 122 insertions(+), 18 deletions(-) create mode 100644 plugins/BuddyExpectator/BuddyExpectator10.vcxproj.filters create mode 100644 plugins/BuddyExpectator/res/Version.rc create mode 100644 plugins/BuddyExpectator/src/Version.h (limited to 'plugins') diff --git a/plugins/BuddyExpectator/BuddyExpectator10.vcxproj b/plugins/BuddyExpectator/BuddyExpectator10.vcxproj index 73002d213a..db3470a040 100644 --- a/plugins/BuddyExpectator/BuddyExpectator10.vcxproj +++ b/plugins/BuddyExpectator/BuddyExpectator10.vcxproj @@ -170,11 +170,13 @@ + + diff --git a/plugins/BuddyExpectator/BuddyExpectator10.vcxproj.filters b/plugins/BuddyExpectator/BuddyExpectator10.vcxproj.filters new file mode 100644 index 0000000000..88b095e588 --- /dev/null +++ b/plugins/BuddyExpectator/BuddyExpectator10.vcxproj.filters @@ -0,0 +1,44 @@ + + + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + {4780d9ea-3d35-4adb-892d-fb3e363c7b37} + + + {c4fb9db2-6262-4d25-af05-94642f354567} + + + {dd3a63a1-7707-4ca8-983c-8e5f6ce56f17} + + + + + Resource Files + + + Resource Files + + + \ No newline at end of file diff --git a/plugins/BuddyExpectator/res/Version.rc b/plugins/BuddyExpectator/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/BuddyExpectator/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/BuddyExpectator/src/BuddyExpectator.cpp b/plugins/BuddyExpectator/src/BuddyExpectator.cpp index 8a5093564f..1c0646c628 100644 --- a/plugins/BuddyExpectator/src/BuddyExpectator.cpp +++ b/plugins/BuddyExpectator/src/BuddyExpectator.cpp @@ -25,7 +25,6 @@ */ #include "common.h" -#include "options.h" HINSTANCE hInst; int hLangpack; @@ -62,23 +61,19 @@ extern int UserinfoInit(WPARAM wparam, LPARAM lparam); PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), - "Buddy Expectator+", - PLUGIN_MAKE_VERSION(0,1,2,3), - "Reacts to the return of contacts, or the the extended absence of contacts, with notifications and other actions", - "Anar Ibragimoff, sje, Thief", - "thief@miranda.im", - "© 2005 Anar Ibragimoff, © 2006 Scott Ellis, © 2007-2009 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, - {0xddf8aec9, 0x7d37, 0x49af, {0x9d, 0x22, 0xbb, 0xbc, 0x92, 0x0e, 0x6f, 0x05}} //{DDF8AEC9-7D37-49AF-9D22-BBBC920E6F05} + //{DDF8AEC9-7D37-49AF-9D22-BBBC920E6F05} + {0xddf8aec9, 0x7d37, 0x49af, {0x9d, 0x22, 0xbb, 0xbc, 0x92, 0x0e, 0x6f, 0x05}} }; -/* 2D84F403-91F3-4E60-BF02-16C2F1716D86 */ -#define MIID_BUDDYEXPECTATOR {0x2d84f403, 0x91f3, 0x4e60, {0xbf, 0x02, 0x16, 0xc2, 0xf1, 0x71, 0x6d, 0x86}} - -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_BUDDYEXPECTATOR, MIID_LAST}; - -extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { hInst = hinstDLL; return TRUE; diff --git a/plugins/BuddyExpectator/src/Version.h b/plugins/BuddyExpectator/src/Version.h new file mode 100644 index 0000000000..4737d5a014 --- /dev/null +++ b/plugins/BuddyExpectator/src/Version.h @@ -0,0 +1,20 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 1 +#define __RELEASE_NUM 2 +#define __BUILD_NUM 3 + +#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 "Buddy Expectator+" +#define __INTERNAL_NAME "Buddy Expectator+" +#define __FILENAME "BuddyExpectator.dll" +#define __DESCRIPTION "Reacts to the return of contacts, or the the extended absence of contacts, with notifications and other actions." +#define __AUTHOR "Anar Ibragimoff, sje, Thief" +#define __AUTHOREMAIL "thief@miranda.im" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2005 Anar Ibragimoff, 2006 Scott Ellis, 2007-2009 Alexander Turyak" diff --git a/plugins/BuddyExpectator/src/common.h b/plugins/BuddyExpectator/src/common.h index 18d33040eb..c2d4d80303 100644 --- a/plugins/BuddyExpectator/src/common.h +++ b/plugins/BuddyExpectator/src/common.h @@ -35,7 +35,7 @@ #include #include #include -#include "resource.h" + #include #include #include @@ -50,9 +50,14 @@ #include #include #include -#include "m_popup.h" +#include +#include + #include "m_popup2.h" -#include "m_cluiframes.h" + +#include "resource.h" +#include "options.h" +#include "version.h" #define MODULE_NAME "BuddyExpectator" -- cgit v1.2.3