From 9adcaf894fe2d64208799fab35765283d1f9f197 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 8 Mar 2013 15:02:15 +0000 Subject: added precompiled header added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3922 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Restart/src/Common.h | 13 +++++++++++++ plugins/Restart/src/Version.h | 14 ++++++++++++++ plugins/Restart/src/restart.cpp | 28 +++++++++------------------- plugins/Restart/src/stdafx.cpp | 18 ++++++++++++++++++ 4 files changed, 54 insertions(+), 19 deletions(-) create mode 100644 plugins/Restart/src/Common.h create mode 100644 plugins/Restart/src/Version.h create mode 100644 plugins/Restart/src/stdafx.cpp (limited to 'plugins/Restart/src') diff --git a/plugins/Restart/src/Common.h b/plugins/Restart/src/Common.h new file mode 100644 index 0000000000..9a508effa5 --- /dev/null +++ b/plugins/Restart/src/Common.h @@ -0,0 +1,13 @@ +#define _CRT_SECURE_NO_WARNINGS +#define WIN32_LEAN_AND_MEAN + +#include + +#include +#include +#include +#include +#include + +#include "resource.h" +#include "Version.h" diff --git a/plugins/Restart/src/Version.h b/plugins/Restart/src/Version.h new file mode 100644 index 0000000000..4f0aac51ef --- /dev/null +++ b/plugins/Restart/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 0 +#define __RELEASE_NUM 6 +#define __BUILD_NUM 0 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Restart" +#define __FILENAME "Restart.dll" +#define __DESCRIPTION "Adds Restart menu item." +#define __AUTHOR "eugene.nv" +#define __AUTHOREMAIL "ep@eugn.me" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2008 - 2013 eugene.nv" diff --git a/plugins/Restart/src/restart.cpp b/plugins/Restart/src/restart.cpp index a99d9ba27a..50dfa35e4c 100644 --- a/plugins/Restart/src/restart.cpp +++ b/plugins/Restart/src/restart.cpp @@ -1,14 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" +#include "Common.h" HINSTANCE hInst; int hLangpack; @@ -16,15 +6,15 @@ HANDLE hRestartMe; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), - "Restart plugin", - PLUGIN_MAKE_VERSION(0,0,6,0), - "Adds Restart menu item.", - "eugene.nv", - "ep@eugn.me", - "© 2008 - 2013 eugene.nv", - "http://miranda-ng.org", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, - // {61BEDF3A-0CC2-41a3-B980-BB9393368935} + // {61BEDF3A-0CC2-41A3-B980-BB9393368935} {0x61bedf3a, 0xcc2, 0x41a3, {0xb9, 0x80, 0xbb, 0x93, 0x93, 0x36, 0x89, 0x35}} }; diff --git a/plugins/Restart/src/stdafx.cpp b/plugins/Restart/src/stdafx.cpp new file mode 100644 index 0000000000..1976d867da --- /dev/null +++ b/plugins/Restart/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 "common.h" \ No newline at end of file -- cgit v1.2.3