From f0f9d66487adef5eefcf7483c4e4b47fd06b6048 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 11 Oct 2012 09:56:50 +0000 Subject: AutoRun added version.rc git-svn-id: http://svn.miranda-ng.org/main/trunk@1870 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoRun/autorun.vcxproj | 2 ++ plugins/AutoRun/autorun.vcxproj.filters | 6 +++++ plugins/AutoRun/res/Version.rc | 42 +++++++++++++++++++++++++++++++++ plugins/AutoRun/res/autorun.rc | 6 ++--- plugins/AutoRun/src/Version.h | 20 ++++++++++++++++ plugins/AutoRun/src/autorun.h | 1 + plugins/AutoRun/src/main.cpp | 14 +++++------ 7 files changed, 81 insertions(+), 10 deletions(-) create mode 100644 plugins/AutoRun/res/Version.rc create mode 100644 plugins/AutoRun/src/Version.h (limited to 'plugins') diff --git a/plugins/AutoRun/autorun.vcxproj b/plugins/AutoRun/autorun.vcxproj index a4a08d5961..615781c29a 100644 --- a/plugins/AutoRun/autorun.vcxproj +++ b/plugins/AutoRun/autorun.vcxproj @@ -177,9 +177,11 @@ + + diff --git a/plugins/AutoRun/autorun.vcxproj.filters b/plugins/AutoRun/autorun.vcxproj.filters index e0a1e8b887..30ebec2d72 100644 --- a/plugins/AutoRun/autorun.vcxproj.filters +++ b/plugins/AutoRun/autorun.vcxproj.filters @@ -21,11 +21,17 @@ Header Files + + Header Files + Resource Files + + Resource Files + diff --git a/plugins/AutoRun/res/Version.rc b/plugins/AutoRun/res/Version.rc new file mode 100644 index 0000000000..d741488c4f --- /dev/null +++ b/plugins/AutoRun/res/Version.rc @@ -0,0 +1,42 @@ +// 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" + +#ifdef _WIN32 +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +#endif //_WIN32 + +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/AutoRun/res/autorun.rc b/plugins/AutoRun/res/autorun.rc index be67468295..889686ed3d 100644 --- a/plugins/AutoRun/res/autorun.rc +++ b/plugins/AutoRun/res/autorun.rc @@ -45,18 +45,18 @@ END // TEXTINCLUDE // -1 TEXTINCLUDE DISCARDABLE +1 TEXTINCLUDE BEGIN "..\\src\\resource.h\0" END -2 TEXTINCLUDE DISCARDABLE +2 TEXTINCLUDE BEGIN "#include ""afxres.h""\r\n" "\0" END -3 TEXTINCLUDE DISCARDABLE +3 TEXTINCLUDE BEGIN "\r\n" "\0" diff --git a/plugins/AutoRun/src/Version.h b/plugins/AutoRun/src/Version.h new file mode 100644 index 0000000000..cfb9a5c0a6 --- /dev/null +++ b/plugins/AutoRun/src/Version.h @@ -0,0 +1,20 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 1 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 1 + +#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 "AutoRun" +#define __INTERNAL_NAME "AutoRun" +#define __FILENAME "AutoRun.dll" +#define __DESCRIPTION "his plugin is a simple way to enable/disable to launch Miranda NG with system startup." +#define __AUTHOR "Sergey V. Gershovich a.k.a. Jazzy$ (fixed by Wolfram3D)" +#define __AUTHOREMAIL "" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "2002-2007 Sergey V. Gershovich a.k.a. Jazzy$" diff --git a/plugins/AutoRun/src/autorun.h b/plugins/AutoRun/src/autorun.h index 4d0900fcf0..36d951cff0 100644 --- a/plugins/AutoRun/src/autorun.h +++ b/plugins/AutoRun/src/autorun.h @@ -10,6 +10,7 @@ #include #include "resource.h" +#include "Version.h" #define SUB_KEY _T("Software\\Microsoft\\Windows\\CurrentVersion\\Run") #define ModuleName "Autorun" diff --git a/plugins/AutoRun/src/main.cpp b/plugins/AutoRun/src/main.cpp index fb9272ac56..da5b605fc1 100644 --- a/plugins/AutoRun/src/main.cpp +++ b/plugins/AutoRun/src/main.cpp @@ -6,13 +6,13 @@ int hLangpack; PLUGININFOEX pluginInfoEx= { // about plugin sizeof(PLUGININFOEX), - "Autorun", - PLUGIN_MAKE_VERSION(0,1,0,1), - "This plugin is a simple way to enable/disable to launch Miranda NG with system startup.", - "Sergey V. Gershovich a.k.a. Jazzy$ (fixed by Wolfram3D)", - "", - "Copyright © 2002-2007 Sergey V. Gershovich a.k.a. Jazzy$", - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, MIID_AUTORUN }; -- cgit v1.2.3