From f4e8cd5b91c126f94e8aedfd686807db1ffa3876 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 Nov 2013 18:02:04 +0000 Subject: compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@6758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../MirandaG15/LCDFramework/LCDFramework_10.vcxproj | 20 ++++++++------------ .../MirandaG15/LCDFramework/LCDFramework_11.vcxproj | 16 ++++++++-------- plugins/MirandaG15/LCDFramework/hid/x64/hid.lib | Bin 0 -> 11336 bytes plugins/MirandaG15/MirandaG15_11.vcxproj | 3 +++ plugins/MirandaG15/src/Miranda.cpp | 12 ++++++++++-- 5 files changed, 29 insertions(+), 22 deletions(-) create mode 100644 plugins/MirandaG15/LCDFramework/hid/x64/hid.lib diff --git a/plugins/MirandaG15/LCDFramework/LCDFramework_10.vcxproj b/plugins/MirandaG15/LCDFramework/LCDFramework_10.vcxproj index fe10315a4c..b22f3076fd 100644 --- a/plugins/MirandaG15/LCDFramework/LCDFramework_10.vcxproj +++ b/plugins/MirandaG15/LCDFramework/LCDFramework_10.vcxproj @@ -61,12 +61,12 @@ <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)\lib\ - $(SolutionDir)\lib\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)\lib\ - $(SolutionDir)\lib\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ @@ -84,8 +84,7 @@ EditAndContinue - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) - $(ProjectDir)\g15sdk\Lib\x86;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) + setupapi.lib;%(AdditionalDependencies) @@ -101,8 +100,7 @@ ProgramDatabase - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) - $(ProjectDir)\g15sdk\Lib\x64;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) + setupapi.lib;%(AdditionalDependencies) @@ -115,8 +113,7 @@ ProgramDatabase - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) - $(ProjectDir)\g15sdk\Lib\x86;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) + setupapi.lib;%(AdditionalDependencies) @@ -129,8 +126,7 @@ ProgramDatabase - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) - $(ProjectDir)\g15sdk\Lib\x86;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) + setupapi.lib;%(AdditionalDependencies) diff --git a/plugins/MirandaG15/LCDFramework/LCDFramework_11.vcxproj b/plugins/MirandaG15/LCDFramework/LCDFramework_11.vcxproj index ac02c66c84..a5afbccac8 100644 --- a/plugins/MirandaG15/LCDFramework/LCDFramework_11.vcxproj +++ b/plugins/MirandaG15/LCDFramework/LCDFramework_11.vcxproj @@ -65,12 +65,12 @@ <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)\lib\ - $(SolutionDir)\lib\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)\lib\ - $(SolutionDir)\lib\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ @@ -88,7 +88,7 @@ EditAndContinue - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) + setupapi.lib;%(AdditionalDependencies) $(ProjectDir)\g15sdk\Lib\x86;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) @@ -105,7 +105,7 @@ ProgramDatabase - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) + setupapi.lib;%(AdditionalDependencies) $(ProjectDir)\g15sdk\Lib\x64;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) @@ -119,7 +119,7 @@ ProgramDatabase - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) + setupapi.lib;%(AdditionalDependencies) $(ProjectDir)\g15sdk\Lib\x86;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) @@ -133,7 +133,7 @@ ProgramDatabase - lglcd.lib;hid.lib;setupapi.lib;%(AdditionalDependencies) + setupapi.lib;%(AdditionalDependencies) $(ProjectDir)\g15sdk\Lib\x86;$(ProjectDir)\hid;%(AdditionalLibraryDirectories) diff --git a/plugins/MirandaG15/LCDFramework/hid/x64/hid.lib b/plugins/MirandaG15/LCDFramework/hid/x64/hid.lib new file mode 100644 index 0000000000..a422d76e59 Binary files /dev/null and b/plugins/MirandaG15/LCDFramework/hid/x64/hid.lib differ diff --git a/plugins/MirandaG15/MirandaG15_11.vcxproj b/plugins/MirandaG15/MirandaG15_11.vcxproj index 1567642478..f491d6a597 100644 --- a/plugins/MirandaG15/MirandaG15_11.vcxproj +++ b/plugins/MirandaG15/MirandaG15_11.vcxproj @@ -127,6 +127,7 @@ $(ProfileDir)..\..\bin11\lib $(IntDir)$(TargetName).lib + false _DEBUG;%(PreprocessorDefinitions) @@ -157,6 +158,7 @@ MachineX86 $(ProfileDir)..\..\bin11\lib $(IntDir)$(TargetName).lib + false NDEBUG;%(PreprocessorDefinitions) @@ -186,6 +188,7 @@ $(ProfileDir)..\..\bin11\lib $(IntDir)$(TargetName).lib + false NDEBUG;%(PreprocessorDefinitions) diff --git a/plugins/MirandaG15/src/Miranda.cpp b/plugins/MirandaG15/src/Miranda.cpp index a4bf95631e..0d7d0700a4 100644 --- a/plugins/MirandaG15/src/Miranda.cpp +++ b/plugins/MirandaG15/src/Miranda.cpp @@ -26,13 +26,13 @@ * Miranda.cpp: Miranda plugin initialisation */ +#include "StdAfx.h" + #ifdef _DEBUG #include #define _CRTDBG_MAP_ALLOC #endif -#include "StdAfx.h" - #include "CAppletManager.h" #include "CConfig.h" @@ -41,6 +41,14 @@ // SETTINGS #define LCD_FPS 10 +#ifdef _WIN64 + #pragma comment(lib, "LCDFramework\\hid\\x64\\hid.lib") + #pragma comment(lib, "LCDFramework\\g15sdk\\lib\\x64\\lgLcd.lib") +#else + #pragma comment(lib, "LCDFramework\\hid\\hid.lib") + #pragma comment(lib, "LCDFramework\\g15sdk\\lib\\x86\\lgLcd.lib") +#endif + //************************************************************************ // Variables //************************************************************************ -- cgit v1.2.3