From 72a9955ffcf458334ec27f5b775c1b447de6a727 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 1 Mar 2013 12:01:19 +0000 Subject: added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3815 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ModernOpt/modernopt_10.vcxproj | 3 ++ plugins/ModernOpt/modernopt_10.vcxproj.filters | 9 +++++ plugins/ModernOpt/modernopt_11.vcxproj | 3 ++ plugins/ModernOpt/modernopt_11.vcxproj.filters | 9 +++++ plugins/ModernOpt/res/Version.rc | 38 +++++++++++++++++++++ plugins/ModernOpt/res/big_network_alt.ico | Bin 4286 -> 0 bytes plugins/ModernOpt/res/resource.rc | 1 - plugins/ModernOpt/src/Version.h | 14 ++++++++ plugins/ModernOpt/src/commonheaders.h | 44 ++++--------------------- plugins/ModernOpt/src/main.cpp | 19 ++++++----- plugins/ModernOpt/src/modernopt.cpp | 2 -- plugins/ModernOpt/src/modernopt.h | 4 --- plugins/ModernOpt/src/mopt_home.cpp | 1 - plugins/ModernOpt/src/mopt_ignore.cpp | 1 - plugins/ModernOpt/src/mopt_selector.cpp | 1 - 15 files changed, 93 insertions(+), 56 deletions(-) create mode 100644 plugins/ModernOpt/res/Version.rc delete mode 100644 plugins/ModernOpt/res/big_network_alt.ico create mode 100644 plugins/ModernOpt/src/Version.h (limited to 'plugins/ModernOpt') diff --git a/plugins/ModernOpt/modernopt_10.vcxproj b/plugins/ModernOpt/modernopt_10.vcxproj index 12ac576832..9addcd2443 100644 --- a/plugins/ModernOpt/modernopt_10.vcxproj +++ b/plugins/ModernOpt/modernopt_10.vcxproj @@ -198,9 +198,12 @@ + + + diff --git a/plugins/ModernOpt/modernopt_10.vcxproj.filters b/plugins/ModernOpt/modernopt_10.vcxproj.filters index 9a9cee9982..c29d81ea1f 100644 --- a/plugins/ModernOpt/modernopt_10.vcxproj.filters +++ b/plugins/ModernOpt/modernopt_10.vcxproj.filters @@ -41,10 +41,19 @@ Header Files + + Header Files + + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/ModernOpt/modernopt_11.vcxproj b/plugins/ModernOpt/modernopt_11.vcxproj index 4187e5f024..0df38aacd2 100644 --- a/plugins/ModernOpt/modernopt_11.vcxproj +++ b/plugins/ModernOpt/modernopt_11.vcxproj @@ -202,9 +202,12 @@ + + + diff --git a/plugins/ModernOpt/modernopt_11.vcxproj.filters b/plugins/ModernOpt/modernopt_11.vcxproj.filters index 9a9cee9982..c29d81ea1f 100644 --- a/plugins/ModernOpt/modernopt_11.vcxproj.filters +++ b/plugins/ModernOpt/modernopt_11.vcxproj.filters @@ -41,10 +41,19 @@ Header Files + + Header Files + + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/ModernOpt/res/Version.rc b/plugins/ModernOpt/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/ModernOpt/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/ModernOpt/res/big_network_alt.ico b/plugins/ModernOpt/res/big_network_alt.ico deleted file mode 100644 index a9ffaba584..0000000000 Binary files a/plugins/ModernOpt/res/big_network_alt.ico and /dev/null differ diff --git a/plugins/ModernOpt/res/resource.rc b/plugins/ModernOpt/res/resource.rc index 9df39faf5b..a37b214477 100644 --- a/plugins/ModernOpt/res/resource.rc +++ b/plugins/ModernOpt/res/resource.rc @@ -7,7 +7,6 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include #include ///////////////////////////////////////////////////////////////////////////// diff --git a/plugins/ModernOpt/src/Version.h b/plugins/ModernOpt/src/Version.h new file mode 100644 index 0000000000..1a9e8788f7 --- /dev/null +++ b/plugins/ModernOpt/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 1 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 0 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "ModernOpt" +#define __FILENAME "ModernOpt.dll" +#define __DESCRIPTION "Support for new options design." +#define __AUTHOR "Victor Pavlychko, George Hazan" +#define __AUTHOREMAIL "ghazan@miranda-ng.org" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2009 Victor Pavlychko, George Hazan" diff --git a/plugins/ModernOpt/src/commonheaders.h b/plugins/ModernOpt/src/commonheaders.h index 2d133a802e..2e01b9f39e 100644 --- a/plugins/ModernOpt/src/commonheaders.h +++ b/plugins/ModernOpt/src/commonheaders.h @@ -21,59 +21,29 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// to enable all 0.8.0 core functions -#define MIRANDA_VER 0x0A00 - #define WINVER 0x0501 #define _WIN32_WINNT 0x0501 #define _WIN32_IE 0x0501 #define _CRT_SECURE_NO_WARNINGS -#define CINTERFACE - -#include "m_stdhdr.h" #include #include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include +#include #include -#include -#include #include -#include -#include #include -#include #include -#include -#include #include -#include -#include #include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include #include "resource.h" +#include "version.h" +#include "modernopt.h" +#include "..\..\..\src\resource.h" diff --git a/plugins/ModernOpt/src/main.cpp b/plugins/ModernOpt/src/main.cpp index 4177a82724..52f71b7709 100644 --- a/plugins/ModernOpt/src/main.cpp +++ b/plugins/ModernOpt/src/main.cpp @@ -6,18 +6,19 @@ int hLangpack; PLUGININFOEX pluginInfoEx = { sizeof(PLUGININFOEX), - "Support for new options design", - PLUGIN_MAKE_VERSION(0,1,0,0), - "Support for new options design.", - "Victor Pavlychko, George Hazan", - "ghazan@miranda-im.org", - "é 2009 Victor Pavlychko, George Hazan", - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, - { 0x621f886b, 0xa7f6, 0x457f, { 0x9d, 0x62, 0x8e, 0xe8, 0x4c, 0x27, 0x59, 0x93 }} // {621f886b-a7f6-457f-9d62-8ee84c275993} + // {621F886B-A7F6-457F-9D62-8EE84C275993} + {0x621f886b, 0xa7f6, 0x457f, {0x9d, 0x62, 0x8e, 0xe8, 0x4c, 0x27, 0x59, 0x93}} }; -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/ModernOpt/src/modernopt.cpp b/plugins/ModernOpt/src/modernopt.cpp index b8a2937a43..3f5a260687 100644 --- a/plugins/ModernOpt/src/modernopt.cpp +++ b/plugins/ModernOpt/src/modernopt.cpp @@ -24,8 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "commonheaders.h" -#include "modernopt.h" -#include "../../../src/resource.h" //#define MOPT_SAMPLE_PAGES diff --git a/plugins/ModernOpt/src/modernopt.h b/plugins/ModernOpt/src/modernopt.h index 728488d810..2d4f8f8791 100644 --- a/plugins/ModernOpt/src/modernopt.h +++ b/plugins/ModernOpt/src/modernopt.h @@ -26,10 +26,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef MODERNOPT_H__ #define MODERNOPT_H__ 1 -#include "m_descbutton.h" -#include "m_iconheader.h" -#include "m_modernopt.h" - struct ModernOptMainPageInfo { int idcButton; diff --git a/plugins/ModernOpt/src/mopt_home.cpp b/plugins/ModernOpt/src/mopt_home.cpp index 0a74e0b4c5..df3c08d022 100644 --- a/plugins/ModernOpt/src/mopt_home.cpp +++ b/plugins/ModernOpt/src/mopt_home.cpp @@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "commonheaders.h" -#include "modernopt.h" extern HMODULE hInst; diff --git a/plugins/ModernOpt/src/mopt_ignore.cpp b/plugins/ModernOpt/src/mopt_ignore.cpp index 9c0e429cae..97805ff4db 100644 --- a/plugins/ModernOpt/src/mopt_ignore.cpp +++ b/plugins/ModernOpt/src/mopt_ignore.cpp @@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "commonheaders.h" -#include "modernopt.h" static HWND g_hwndModernOptIgnore = NULL; diff --git a/plugins/ModernOpt/src/mopt_selector.cpp b/plugins/ModernOpt/src/mopt_selector.cpp index 563a6779ef..f29e662a98 100644 --- a/plugins/ModernOpt/src/mopt_selector.cpp +++ b/plugins/ModernOpt/src/mopt_selector.cpp @@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "commonheaders.h" -#include "modernopt.h" static void sttApplySkin(MODERNOPTOBJECT *obj, TCHAR *fn) { -- cgit v1.2.3