This is an automated email from the git hooks/post-receive script. locutusofborg-guest pushed a commit to branch master in repository hedgewars.
commit a63be2a6960fca5cdfe8c27014e8ba7e8fe44a80 Author: Gianfranco Costamagna <[email protected]> Date: Thu Jan 15 16:10:56 2015 +0100 Add patch, thanks mfv! --- ...Add-RelWithDebInfo-for-debugging-purposes.patch | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/debian/patches/0001-Add-RelWithDebInfo-for-debugging-purposes.patch b/debian/patches/0001-Add-RelWithDebInfo-for-debugging-purposes.patch new file mode 100644 index 0000000..2200ac3 --- /dev/null +++ b/debian/patches/0001-Add-RelWithDebInfo-for-debugging-purposes.patch @@ -0,0 +1,65 @@ +From 20d6ab85235f9427ed8cc2c1b6596e007b1c329d Mon Sep 17 00:00:00 2001 +From: Gianfranco Costamagna <[email protected]> +Date: Thu, 15 Jan 2015 11:48:28 +0100 +Subject: [PATCH] Add RelWithDebInfo for debugging purposes + +--- + CMakeLists.txt | 9 +++++---- + QTfrontend/CMakeLists.txt | 4 ++-- + cmake_modules/compilerchecks.cmake | 2 +- + 3 files changed, 8 insertions(+), 7 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bfb9a6c..d7df4b3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -70,12 +70,13 @@ include(${CMAKE_MODULE_PATH}/platform.cmake) + if(CMAKE_BUILD_TYPE) + string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) + if(NOT((CMAKE_BUILD_TYPE MATCHES "RELEASE") OR +- (CMAKE_BUILD_TYPE MATCHES "DEBUG"))) +- set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release)" FORCE) +- message(STATUS "Unknown build type, using default (${default_build_type})") ++ (CMAKE_BUILD_TYPE MATCHES "DEBUG") OR ++ (CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO"))) ++ set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release/RelWithDebInfo)" FORCE) ++ message(STATUS "Unknown build type ${CMAKE_BUILD_TYPE}, using default (${default_build_type})") + endif() + else(CMAKE_BUILD_TYPE) +- set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release)" FORCE) ++ set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release/RelWithDebInfo)" FORCE) + endif(CMAKE_BUILD_TYPE) + + +diff --git a/QTfrontend/CMakeLists.txt b/QTfrontend/CMakeLists.txt +index 695caad..9687059 100644 +--- a/QTfrontend/CMakeLists.txt ++++ b/QTfrontend/CMakeLists.txt +@@ -190,9 +190,9 @@ endif() + + #when debugging, always prompt a console to see fronted messages + #TODO: check it doesn't interfere on UNIX +-if(CMAKE_BUILD_TYPE MATCHES "RELEASE") ++if(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO") + set(console_access "WIN32") +-endif(CMAKE_BUILD_TYPE MATCHES "RELEASE") ++endif(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO") + + add_executable(hedgewars ${console_access} + ${hwfr_src} +diff --git a/cmake_modules/compilerchecks.cmake b/cmake_modules/compilerchecks.cmake +index 2029712..676ae8e 100644 +--- a/cmake_modules/compilerchecks.cmake ++++ b/cmake_modules/compilerchecks.cmake +@@ -62,7 +62,7 @@ if(UNIX) + endif() + endif() + +- if(CMAKE_BUILD_TYPE MATCHES "RELEASE") ++ if(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO") + set(CMAKE_REQUIRED_FLAGS "-Wl,--as-needed") + check_c_compiler_flag("" HAVE_ASNEEDED) + if(HAVE_ASNEEDED) +-- +2.1.0 + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/hedgewars.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

