From 627771cf130e5d3914571cb9e45b3c1d16eb9d50 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sun, 8 May 2011 22:46:06 +0000 Subject: [PATCH] merged 1.3 r978:979 into trunk --- res/Installer.nsi.in | 3 +-- src/lib/platform/CMakeLists.txt | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/res/Installer.nsi.in b/res/Installer.nsi.in index 69803bbd..6961ea25 100644 --- a/res/Installer.nsi.in +++ b/res/Installer.nsi.in @@ -17,7 +17,6 @@ !define vcRedistFile "vcredist_${arch}.exe" !define startMenuApp "qsynergy.exe" !define binDir "..\bin" -!define libDir "..\lib" !define uninstall "uninstall.exe" !define icon "..\src\gui\res\win\QSynergy.ico" !define controlPanelReg "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" @@ -115,7 +114,7 @@ Section "Server and Client" core ; client and server files File "${binDir}\Release\synergys.exe" File "${binDir}\Release\synergyc.exe" - File "${libDir}\Release\synrgyhk.dll" + File "${binDir}\Release\synrgyhk.dll" SectionEnd diff --git a/src/lib/platform/CMakeLists.txt b/src/lib/platform/CMakeLists.txt index a1914753..47fe1eea 100644 --- a/src/lib/platform/CMakeLists.txt +++ b/src/lib/platform/CMakeLists.txt @@ -110,6 +110,19 @@ add_library(platform STATIC ${src}) if (WIN32) add_library(synrgyhk SHARED ${inc_hook} ${src_hook}) + + # move the synrgyhk.dll (and supporting files) from the lib dir to + # the bin dir, so that synergyc and synergys can easily find it. + # we should leave the other libraries compiling to the lib dir, + # so that the bin dir remains tidy. the path is relative to the + # build dir (in this case, that's: build\src\lib\platform). + add_custom_command( + TARGET synrgyhk + POST_BUILD + COMMAND move + ..\\..\\..\\..\\lib\\${CMAKE_CFG_INTDIR}\\synrgyhk.* + ..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR} + 1> NUL) endif() if (UNIX)