Skip to content

Commit

Permalink
Updating build for 2.3.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nschimme committed May 2, 2015
1 parent 2f942ea commit 601dc04
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 44 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ else()
endif()

# Version
set(VERSION "2.3.3")
set(VERSION "2.3.4")
add_definitions(-DMMAPPER_VERSION="${VERSION}" -DWITH_SPLASH)
message(STATUS "MMapper version ${VERSION} (${CMAKE_BUILD_TYPE} distribution)")

Expand Down
9 changes: 9 additions & 0 deletions NEWS.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
=============================
MMapper 2.3.4 (May 1, 2015)
=============================

Changes:
- All connections now utilize TCP KeepAlive to help with dropped connections (nschimme)
- Prompts are now correctly identified and remembered for internal commands (nschimme)
- Cleaned up vote and Windows build code (nschimme)

=============================
MMapper 2.3.3 (January 18, 2015)
=============================
Expand Down
71 changes: 28 additions & 43 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,55 +248,40 @@ if (WIN32)
)

# Install Library Files
# Note: this is not necessary if Qt is compiled statically
get_target_property(QT_CORE_LIBRARY_DIR Qt5::Core LOCATION)
string(REPLACE "Qt5Core.dll" "" QT_LIBRARY_DIR ${QT_CORE_LIBRARY_DIR})
message(STATUS "Qt libraries are at ${QT_LIBRARY_DIR}")
install(FILES
"${QT_LIBRARY_DIR}/Qt5Core.dll"
"${QT_LIBRARY_DIR}/Qt5Gui.dll"
"${QT_LIBRARY_DIR}/Qt5Widgets.dll"
"${QT_LIBRARY_DIR}/Qt5Network.dll"
"${QT_LIBRARY_DIR}/Qt5Xml.dll"
"${QT_LIBRARY_DIR}/Qt5OpenGL.dll"
DESTINATION .
COMPONENT libraries
if (CMAKE_BUILD_TYPE STREQUAL "Release")
set(BINARY_ARGUMENT "-release")
else (CMAKE_BUILD_TYPE STREQUAL "Release")
set(BINARY_ARGUMENT "-debug")
endif (CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_command(
TARGET mmapper
POST_BUILD
COMMAND windeployqt ${BINARY_ARGUMENT} ${CMAKE_CURRENT_BINARY_DIR} -libdir ${CMAKE_CURRENT_BINARY_DIR}/lib --compiler-runtime
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Finding the Qt framework dependencies"
)
file(GLOB DEPENDENCIES ${CMAKE_CURRENT_BINARY_DIR}/lib/*)
foreach (dependency ${DEPENDENCIES})
install(FILES
${dependency}
DESTINATION .
COMPONENT libraries
)
endforeach()
install(DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/platforms
DESTINATION .
COMPONENT libraries
)
if (MINGW)
if (CMAKE_BUILD_TYPE STREQUAL "Release")
set(BINARY_ARGUMENT "-release")
else (CMAKE_BUILD_TYPE STREQUAL "Release")
set(BINARY_ARGUMENT "-debug")
endif (CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_command(
TARGET mmapper
POST_BUILD
COMMAND windeployqt ${BINARY_ARGUMENT} ${CMAKE_CURRENT_BINARY_DIR} -libdir ${CMAKE_CURRENT_BINARY_DIR}/lib --compiler-runtime
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Finding the Qt framework dependencies"
)
file(GLOB DEPENDENCIES ${CMAKE_CURRENT_BINARY_DIR}/lib/*)
foreach (dependency ${DEPENDENCIES})
install(FILES
${dependency}
DESTINATION .
COMPONENT libraries
)
endforeach()
install(DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/platforms
DESTINATION .
COMPONENT libraries
)
else (MINGW)
if (NOT MINGW)
# VC++ Redistributable
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/resources/win32/vcredist_x86.exe
DESTINATION .
COMPONENT libraries
)
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait '\\\"$INSTDIR\\\\vcredist_x86.exe\\\" /q:a'")
endif (MINGW)
endif (NOT MINGW)

# Install Help Documentation
install(FILES
Expand Down Expand Up @@ -325,7 +310,7 @@ endif (WIN32)

# Apple Install Settings
if (APPLE)
# Bundle the libraries with the binary (requires Qt 4.5)
# Bundle the libraries with the binary (requires Qt 5)
add_custom_command(
TARGET mmapper
POST_BUILD
Expand Down Expand Up @@ -385,7 +370,7 @@ else (GIT_BUILD)
endif (GIT_BUILD)
set(CPACK_PACKAGE_VERSION_MAJOR "2")
set(CPACK_PACKAGE_VERSION_MINOR "3")
set(CPACK_PACKAGE_VERSION_PATCH "3")
set(CPACK_PACKAGE_VERSION_PATCH "4")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "MMapper")

# Components:
Expand Down
5 changes: 5 additions & 0 deletions winbuild.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
@ECHO OFF
REM set PATH=C:\Qt\5.4\mingw491_32\bin;C:\Qt\Tools\mingw491_32\bin;C:\Program Files\7-Zip;C:\Program Files (x86)\NSIS;C:\Program Files (x86)\CMake\bin;C:\MinGW\bin
REM set ZLIB_LIBRARY=C:\Qt\Tools\mingw491_32\bin\libz.a
REM set ZLIB_INCLUDE_DIR=C:\Qt\Tools\mingw491_32\include
REM set QMAKESPEC=win32-g++

REM ####
REM #### START
REM ####
Expand Down

0 comments on commit 601dc04

Please sign in to comment.