diff options
-rw-r--r-- | plugins/AvatarHistory/AvatarHistory.vcxproj | 2 | ||||
-rw-r--r-- | plugins/AvatarHistory/AvatarHistory.vcxproj.filters | 6 | ||||
-rw-r--r-- | plugins/AvatarHistory/res/Version.rc | 42 | ||||
-rw-r--r-- | plugins/AvatarHistory/src/AvatarHistory.cpp | 14 | ||||
-rw-r--r-- | plugins/AvatarHistory/src/AvatarHistory.h | 1 | ||||
-rw-r--r-- | plugins/AvatarHistory/src/Version.h | 20 |
6 files changed, 78 insertions, 7 deletions
diff --git a/plugins/AvatarHistory/AvatarHistory.vcxproj b/plugins/AvatarHistory/AvatarHistory.vcxproj index 9682e3abe2..06fd3a4715 100644 --- a/plugins/AvatarHistory/AvatarHistory.vcxproj +++ b/plugins/AvatarHistory/AvatarHistory.vcxproj @@ -202,9 +202,11 @@ <ClInclude Include="..\utils\mir_options.h" />
<ClInclude Include="src\popup.h" />
<ClInclude Include="src\resource.h" />
+ <ClInclude Include="src\Version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\AvatarHistory.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="docs\avatarhist_changelog.txt" />
diff --git a/plugins/AvatarHistory/AvatarHistory.vcxproj.filters b/plugins/AvatarHistory/AvatarHistory.vcxproj.filters index 30820db29f..9203e75da6 100644 --- a/plugins/AvatarHistory/AvatarHistory.vcxproj.filters +++ b/plugins/AvatarHistory/AvatarHistory.vcxproj.filters @@ -56,11 +56,17 @@ <ClInclude Include="src\resource.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\AvatarHistory.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="docs\avatarhist_changelog.txt">
diff --git a/plugins/AvatarHistory/res/Version.rc b/plugins/AvatarHistory/res/Version.rc new file mode 100644 index 0000000000..d741488c4f --- /dev/null +++ b/plugins/AvatarHistory/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/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index d6e41d02d7..a49fa28786 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -60,13 +60,13 @@ BOOL CreateShortcut(TCHAR *file, TCHAR *shortcut); PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), - "Avatar History", - PLUGIN_MAKE_VERSION(0,0,3,3), - "This plugin keeps backups of all your contacts' avatar changes and/or shows popups.", - "Matthew Wild (MattJ), Ricardo Pescuma Domenecci", - "mwild1@gmail.com", - "© 2006-2012 Matthew Wild, Ricardo Pescuma Domenecci", - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, { 0xdbe8c990, 0x7aa0, 0x458d, { 0xba, 0xb7, 0x33, 0xeb, 0x7, 0x23, 0x8e, 0x71 } } // {DBE8C990-7AA0-458d-BAB7-33EB07238E71} }; diff --git a/plugins/AvatarHistory/src/AvatarHistory.h b/plugins/AvatarHistory/src/AvatarHistory.h index 5ac36d55f7..d58525e618 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.h +++ b/plugins/AvatarHistory/src/AvatarHistory.h @@ -32,6 +32,7 @@ #include "m_historyevents.h"
#include "resource.h"
+#include "Version.h"
#include "../utils/mir_buffer.h"
// Globals
diff --git a/plugins/AvatarHistory/src/Version.h b/plugins/AvatarHistory/src/Version.h new file mode 100644 index 0000000000..12a4806ad1 --- /dev/null +++ b/plugins/AvatarHistory/src/Version.h @@ -0,0 +1,20 @@ +#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 3
+#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 "Avatar History"
+#define __INTERNAL_NAME "AvatarHistory"
+#define __FILENAME "AvatarHistory.dll"
+#define __DESCRIPTION "This plugin keeps backups of all your contacts' avatar changes and/or shows popups."
+#define __AUTHOR "Matthew Wild (MattJ), Ricardo Pescuma Domenecci"
+#define __AUTHOREMAIL "mwild1@gmail.com"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2006-2012 Matthew Wild, Ricardo Pescuma Domenecci"
|