From 8f4a208b4ae7671e0b4cfc3c7d830d0d3fa77ab3 Mon Sep 17 00:00:00 2001 From: Raphael Dumusc Date: Wed, 22 Apr 2015 13:16:27 +0200 Subject: [PATCH] Fix CPack config. Update default hostname for Geneva setup. --- CMake/CPackConfig.cmake | 15 +++++---------- CMakeLists.txt | 2 +- apps/DesktopStreamer/CMakeLists.txt | 11 ++++++++--- .../DesktopStreamer/{Info.plist => Info.plist.in} | 8 ++++---- apps/DesktopStreamer/src/MainWindow.cpp | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) rename apps/DesktopStreamer/{Info.plist => Info.plist.in} (86%) diff --git a/CMake/CPackConfig.cmake b/CMake/CPackConfig.cmake index 423dd7b..df90b87 100644 --- a/CMake/CPackConfig.cmake +++ b/CMake/CPackConfig.cmake @@ -5,22 +5,17 @@ # General CPack configuration # Info: http://www.itk.org/Wiki/CMake:Component_Install_With_CPack -set(CPACK_PACKAGE_EXECUTABLES "${STREAMER_APP_NAME}") -set(CPACK_PACKAGE_NAME "${STREAMER_APP_NAME}") +set(CPACK_PACKAGE_EXECUTABLES "${DESKTOPSTREAMER_APP_NAME}") +set(CPACK_PACKAGE_NAME "${DESKTOPSTREAMER_APP_NAME}") set(CPACK_PACKAGE_CONTACT "Daniel Nachbaur ") -set(CPACK_PACKAGE_VENDOR "http://www.tacc.utexas.edu/tacc-software/displaycluster") +set(CPACK_PACKAGE_VENDOR "https://github.com/BlueBrain/Deflect") set(CPACK_COMPONENT_DESKTOPSTREAMER_DISPLAY_NAME "DesktopStreamer Application") set(CPACK_COMPONENT_DESKTOPSTREAMER_DESCRIPTION "DesktopStreamer is an application that lets you stream your desktop to a running DisplayCluster instance.") - -set(CPACK_COMPONENT_CORE_DISPLAY_NAME "DisplayCluster Application") -set(CPACK_COMPONENT_DEV_DISPLAY_NAME "Development headers and libraries") -set(CPACK_COMPONENT_DOC_DISPLAY_NAME "Documentation") - set(CPACK_COMPONENT_DESKTOPSTREAMER_DEPENDS Deflect) -# Currently we only package desktopstreamer -set(CPACK_COMPONENTS_ALL desktopstreamer Deflect) +# Currently we only package desktopstreamer and the Deflect library +set(CPACK_COMPONENTS_ALL desktopstreamer lib) # Linux Debian specific settings set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-core, libqt4-gui, libqt4-network, libturbojpeg" ) diff --git a/CMakeLists.txt b/CMakeLists.txt index 842f16d..a5c1f02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ include(GitExternal) set(VERSION_MAJOR "0") set(VERSION_MINOR "4") -set(VERSION_PATCH "0") +set(VERSION_PATCH "1") set(VERSION_ABI 1) set(DEFLECT_DESCRIPTION "The library to write applications for DisplayCluster") diff --git a/apps/DesktopStreamer/CMakeLists.txt b/apps/DesktopStreamer/CMakeLists.txt index 9cba183..b926a3d 100644 --- a/apps/DesktopStreamer/CMakeLists.txt +++ b/apps/DesktopStreamer/CMakeLists.txt @@ -1,5 +1,5 @@ -# Copyright (c) 2013-2014, EPFL/Blue Brain Project +# Copyright (c) 2013-2015, EPFL/Blue Brain Project # Raphael Dumusc set(DESKTOPSTREAMER_MOC_HEADERS @@ -39,8 +39,12 @@ if(APPLE) ${DESKTOPSTREAMER_SOURCES} ${MOC_OUTFILES} ${QRC_SOURCES} ${DESKTOPSTREAMER_ICON_FILE}) # include the icns file in the target + # Configure the bundle property file using current version and year + string(TIMESTAMP CURRENT_YEAR "%Y") + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in + ${CMAKE_CURRENT_BINARY_DIR}/Info.plist @ONLY) set_target_properties(${DESKTOPSTREAMER_APP_NAME} PROPERTIES - MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist) + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) elseif(WIN32) set(DESKTOPSTREAMER_APP_NAME desktopstreamer) @@ -60,6 +64,7 @@ target_link_libraries(${DESKTOPSTREAMER_APP_NAME} ${DESKTOPSTREAMER_LINK_LIBRARI install(TARGETS ${DESKTOPSTREAMER_APP_NAME} RUNTIME DESTINATION bin COMPONENT desktopstreamer - BUNDLE DESTINATION . COMPONENT desktopstreamer) + BUNDLE DESTINATION . COMPONENT desktopstreamer +) include(CPackConfig) diff --git a/apps/DesktopStreamer/Info.plist b/apps/DesktopStreamer/Info.plist.in similarity index 86% rename from apps/DesktopStreamer/Info.plist rename to apps/DesktopStreamer/Info.plist.in index d92eeb3..d9e5d70 100644 --- a/apps/DesktopStreamer/Info.plist +++ b/apps/DesktopStreamer/Info.plist.in @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion English CFBundleExecutable - desktopstreamer + @DESKTOPSTREAMER_APP_NAME@ CFBundleGetInfoString CFBundleIconFile @@ -15,13 +15,13 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleLongVersionString - 0.4.0 + @VERSION@ CFBundleName CFBundlePackageType APPL CFBundleShortVersionString - 0.4.0 + @VERSION@ CFBundleSignature CFBundleVersion @@ -31,7 +31,7 @@ LSRequiresCarbon NSHumanReadableCopyright - EPFL/Blue Brain Project 2014 + EPFL/Blue Brain Project @CURRENT_YEAR@ NSPrincipalClass NSApplication NSHighResolutionCapable diff --git a/apps/DesktopStreamer/src/MainWindow.cpp b/apps/DesktopStreamer/src/MainWindow.cpp index 98a4a26..c86c94e 100644 --- a/apps/DesktopStreamer/src/MainWindow.cpp +++ b/apps/DesktopStreamer/src/MainWindow.cpp @@ -57,7 +57,7 @@ #define SHARE_DESKTOP_UPDATE_DELAY 1 #define FRAME_RATE_AVERAGE_NUM_FRAMES 10 -#define DEFAULT_HOST_ADDRESS "bbplxviz03.epfl.ch" +#define DEFAULT_HOST_ADDRESS "bbpav02.epfl.ch" #define CURSOR_IMAGE_FILE ":/cursor.png" MainWindow::MainWindow()