From cb89c3026687e2f48093b3243fdab1f1204135b2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Apr 2015 16:20:50 +0000 Subject: common Visual Studio properties & filters git-svn-id: http://svn.miranda-ng.org/main/trunk@13089 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- build/vc.common/common.filters | 32 ++++++ build/vc.common/common.props | 130 +++++++++++++++++++++++++ plugins/AuthState/authstate.vcxproj | 28 ++++++ plugins/AuthState/authstate.vcxproj.filters | 4 + plugins/AuthState/authstate_10.vcxproj | 12 +-- plugins/AuthState/authstate_12.vcxproj | 19 ++-- plugins/AuthState/authstate_12.vcxproj.filters | 8 +- plugins/AuthState/src/commonheaders.h | 48 --------- plugins/AuthState/src/main.cpp | 2 +- plugins/AuthState/src/options.cpp | 2 +- plugins/AuthState/src/stdafx.cpp | 18 ---- plugins/AuthState/src/stdafx.cxx | 18 ++++ plugins/AuthState/src/stdafx.h | 48 +++++++++ 13 files changed, 283 insertions(+), 86 deletions(-) create mode 100644 build/vc.common/common.filters create mode 100644 build/vc.common/common.props create mode 100644 plugins/AuthState/authstate.vcxproj create mode 100644 plugins/AuthState/authstate.vcxproj.filters delete mode 100644 plugins/AuthState/src/commonheaders.h delete mode 100644 plugins/AuthState/src/stdafx.cpp create mode 100644 plugins/AuthState/src/stdafx.cxx create mode 100644 plugins/AuthState/src/stdafx.h diff --git a/build/vc.common/common.filters b/build/vc.common/common.filters new file mode 100644 index 0000000000..1af5b5334c --- /dev/null +++ b/build/vc.common/common.filters @@ -0,0 +1,32 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + + Source Files + + + Header Files + + + Resource Files + + + Source Files + + + \ No newline at end of file diff --git a/build/vc.common/common.props b/build/vc.common/common.props new file mode 100644 index 0000000000..5fb7ac40b2 --- /dev/null +++ b/build/vc.common/common.props @@ -0,0 +1,130 @@ + + + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + + + $(ProjectName) + Win32Proj + Unicode + v100 + v110_xp + v120_xp + v140 + $(SolutionDir)Bin\$(Configuration)\Plugins\$(ProjectName)\ + $(SolutionDir)Bin\Obj\$(Configuration)\$(ProjectName)\ + $(SolutionDir)Bin\$(Configuration)64\Plugins\$(ProjectName)\ + $(SolutionDir)Bin\Obj\$(Configuration)64\$(ProjectName)\ + DynamicLibrary + false + false + true + false + + + + + + + ..\..\include;..\..\include\msapi + _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_WIN32_WINNT=0x0601;%(PreprocessorDefinitions) + 4996;%(DisableSpecificWarnings) + OnlyExplicitInline + false + Level4 + Use + stdafx.h + false + + + comctl32.lib;UxTheme.lib;%(AdditionalDependencies) + $(ProfileDir)..\..\bin12\lib + true + false + Windows + $(IntDir)$(TargetName).lib + false + + + ..\..\include;..\..\include\msapi + + + + + + Disabled + false + DEBUG;%(PreprocessorDefinitions) + true + MultiThreadedDebugDLL + + + + + + + + + + Full + Size + true + true + NDEBUG;%(PreprocessorDefinitions) + false + MultiThreadedDLL + true + + + true + true + UseLinkTimeCodeGeneration + + + + + + + + + + + + + + + + + + + Create + + + + + + + + + + + diff --git a/plugins/AuthState/authstate.vcxproj b/plugins/AuthState/authstate.vcxproj new file mode 100644 index 0000000000..c1f32382f0 --- /dev/null +++ b/plugins/AuthState/authstate.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + AuthState + {DB315D7D-00BB-43B2-93A6-0430CA2B9F28} + + + + + \ No newline at end of file diff --git a/plugins/AuthState/authstate.vcxproj.filters b/plugins/AuthState/authstate.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/AuthState/authstate.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/AuthState/authstate_10.vcxproj b/plugins/AuthState/authstate_10.vcxproj index 92d4dd5680..ab7e4a456c 100644 --- a/plugins/AuthState/authstate_10.vcxproj +++ b/plugins/AuthState/authstate_10.vcxproj @@ -76,7 +76,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) MultiThreadedDebugDLL Use - Commonheaders.h + stdafx.h Level3 EditAndContinue 4996;%(DisableSpecificWarnings) @@ -103,7 +103,7 @@ ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Use - Commonheaders.h + stdafx.h Level3 4996;%(DisableSpecificWarnings) false @@ -131,7 +131,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) MultiThreadedDebugDLL Use - Commonheaders.h + stdafx.h Level3 4996;%(DisableSpecificWarnings) false @@ -157,7 +157,7 @@ ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Use - Commonheaders.h + stdafx.h Level3 4996;%(DisableSpecificWarnings) false @@ -179,14 +179,14 @@ - + Create - + diff --git a/plugins/AuthState/authstate_12.vcxproj b/plugins/AuthState/authstate_12.vcxproj index 848d066f60..0919ce0fb3 100644 --- a/plugins/AuthState/authstate_12.vcxproj +++ b/plugins/AuthState/authstate_12.vcxproj @@ -80,7 +80,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) MultiThreadedDebugDLL Use - Commonheaders.h + stdafx.h Level4 EditAndContinue 4996;%(DisableSpecificWarnings) @@ -108,7 +108,7 @@ ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Use - Commonheaders.h + stdafx.h Level4 4996;%(DisableSpecificWarnings) false @@ -135,7 +135,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) MultiThreadedDebugDLL Use - Commonheaders.h + stdafx.h Level4 4996;%(DisableSpecificWarnings) false @@ -161,7 +161,7 @@ ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Use - Commonheaders.h + stdafx.h Level4 4996;%(DisableSpecificWarnings) false @@ -182,15 +182,18 @@ - - Create - + + Create + Create + Create + Create + - + diff --git a/plugins/AuthState/authstate_12.vcxproj.filters b/plugins/AuthState/authstate_12.vcxproj.filters index 5ce6616c08..9fe8b9ec6e 100644 --- a/plugins/AuthState/authstate_12.vcxproj.filters +++ b/plugins/AuthState/authstate_12.vcxproj.filters @@ -21,20 +21,20 @@ Source Files - + Source Files - - Header Files - Header Files Header Files + + Header Files + diff --git a/plugins/AuthState/src/commonheaders.h b/plugins/AuthState/src/commonheaders.h deleted file mode 100644 index 213e900423..0000000000 --- a/plugins/AuthState/src/commonheaders.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - Authorization State plugin for Miranda NG (www.miranda-ng.org) - (c) 2006-2010 by Thief - - 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; either version 2 of the License, or - (at your option) any later version. - - 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - -#ifndef COMMHEADERS_H -#define COMMHEADERS_H - -#include - -// Miranda API headers -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "resource.h" -#include "Version.h" - -#define MODULENAME "AuthState" - -int onOptInitialise(WPARAM wParam, LPARAM lParam); -int onExtraImageApplying(WPARAM wParam, LPARAM lParam); - -extern HINSTANCE g_hInst; -extern byte bUseAuthIcon, bUseGrantIcon, bContactMenuItem, bIconsForRecentContacts; -extern HANDLE hExtraIcon; - -#endif //COMMHEADERS_H diff --git a/plugins/AuthState/src/main.cpp b/plugins/AuthState/src/main.cpp index 6b815bb339..db41184c24 100644 --- a/plugins/AuthState/src/main.cpp +++ b/plugins/AuthState/src/main.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "commonheaders.h" +#include "stdafx.h" HINSTANCE g_hInst; static HANDLE hOptInitialise; diff --git a/plugins/AuthState/src/options.cpp b/plugins/AuthState/src/options.cpp index bf1abe47e1..00f452830b 100644 --- a/plugins/AuthState/src/options.cpp +++ b/plugins/AuthState/src/options.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "commonheaders.h" +#include "stdafx.h" INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { diff --git a/plugins/AuthState/src/stdafx.cpp b/plugins/AuthState/src/stdafx.cpp deleted file mode 100644 index 61fee5df67..0000000000 --- a/plugins/AuthState/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 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 "Commonheaders.h" \ No newline at end of file diff --git a/plugins/AuthState/src/stdafx.cxx b/plugins/AuthState/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/AuthState/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 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 "stdafx.h" \ No newline at end of file diff --git a/plugins/AuthState/src/stdafx.h b/plugins/AuthState/src/stdafx.h new file mode 100644 index 0000000000..213e900423 --- /dev/null +++ b/plugins/AuthState/src/stdafx.h @@ -0,0 +1,48 @@ +/* + Authorization State plugin for Miranda NG (www.miranda-ng.org) + (c) 2006-2010 by Thief + + 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; either version 2 of the License, or + (at your option) any later version. + + 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, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef COMMHEADERS_H +#define COMMHEADERS_H + +#include + +// Miranda API headers +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "resource.h" +#include "Version.h" + +#define MODULENAME "AuthState" + +int onOptInitialise(WPARAM wParam, LPARAM lParam); +int onExtraImageApplying(WPARAM wParam, LPARAM lParam); + +extern HINSTANCE g_hInst; +extern byte bUseAuthIcon, bUseGrantIcon, bContactMenuItem, bIconsForRecentContacts; +extern HANDLE hExtraIcon; + +#endif //COMMHEADERS_H -- cgit v1.2.3