From 85b280277755a48239c5fdf6601bfb948caf5bca Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Tue, 26 Apr 2011 10:53:29 +0000 Subject: [PATCH] fixed linux gui build and dist --- CMakeLists.txt | 12 +++--------- src/cmd/synergyc/CMakeLists.txt | 7 +++++++ src/cmd/synergys/CMakeLists.txt | 7 +++++++ src/gui/qsynergy.pro | 6 +++--- tools/build/toolchain.py | 4 ++-- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74c9608c..ba259673 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ project(synergy C CXX) # Set some easy to type variables. set(root_dir ${CMAKE_SOURCE_DIR}) -set(cmake_dir ${root_dir}/cmake) +set(cmake_dir ${root_dir}/res) set(bin_dir ${root_dir}/bin) set(doc_dir ${root_dir}/doc) set(doc_dir ${root_dir}/doc) @@ -283,12 +283,6 @@ if (CONF_CPACK) message(FATAL_ERROR "CPack support for Windows has been removed.") endif() - install(TARGETS - synergys - synergyc - COMPONENT core - DESTINATION bin) - if (UNIX) if (APPLE) # no cpack support for apple @@ -301,9 +295,9 @@ if (CONF_CPACK) WORLD_READ WORLD_EXECUTE) # install gnome menu item - install(FILES cmake/synergy.desktop + install(FILES res/synergy.desktop DESTINATION share/applications) - install(FILES cmd/launcher/synergy.ico + install(FILES res/synergy.ico DESTINATION share/icons) endif() endif() diff --git a/src/cmd/synergyc/CMakeLists.txt b/src/cmd/synergyc/CMakeLists.txt index 0daefdf9..29ef2295 100644 --- a/src/cmd/synergyc/CMakeLists.txt +++ b/src/cmd/synergyc/CMakeLists.txt @@ -57,3 +57,10 @@ include_directories(${inc}) add_executable(synergyc ${src}) target_link_libraries(synergyc arch base client common io mt net platform server synergy ${libs}) + +if (CONF_CPACK) + install(TARGETS + synergyc + COMPONENT core + DESTINATION bin) +endif() diff --git a/src/cmd/synergys/CMakeLists.txt b/src/cmd/synergys/CMakeLists.txt index beff99cd..28b64c82 100644 --- a/src/cmd/synergys/CMakeLists.txt +++ b/src/cmd/synergys/CMakeLists.txt @@ -57,3 +57,10 @@ include_directories(${inc}) add_executable(synergys ${src}) target_link_libraries(synergys arch base client common io mt net platform server synergy ${libs}) + +if (CONF_CPACK) + install(TARGETS + synergys + COMPONENT core + DESTINATION bin) +endif() diff --git a/src/gui/qsynergy.pro b/src/gui/qsynergy.pro index 11924d91..925bf965 100644 --- a/src/gui/qsynergy.pro +++ b/src/gui/qsynergy.pro @@ -80,8 +80,8 @@ release { RCC_DIR = tmp/release } win32 { - Debug:DESTDIR = ../bin/Debug - Release:DESTDIR = ../bin/Release + Debug:DESTDIR = ../../bin/Debug + Release:DESTDIR = ../../bin/Release } else { - DESTDIR = ../bin + DESTDIR = ../../bin } diff --git a/tools/build/toolchain.py b/tools/build/toolchain.py index 1e289044..48b1a686 100644 --- a/tools/build/toolchain.py +++ b/tools/build/toolchain.py @@ -35,9 +35,9 @@ class InternalCommands: w32_qt_version = '4.6.2' source_dir = '..' # Source, relative to build. - cmake_dir = 'cmake' + cmake_dir = 'res' _bin_dir = 'bin' - gui_dir = 'gui' + gui_dir = 'src/gui' doc_dir = 'doc' sln_filename = '%s.sln' % project