diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2010-08-12 19:32:23 +0000 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2010-08-12 19:32:23 +0000 |
commit | 299717d1a918cbb94a74fec7a88469ca84c86fbd (patch) | |
tree | fb8f43a19e1f690f35565f17865995a46cee2a95 /eclass/kde4-base.eclass | |
parent | use debug && append-cppflags -DDEBUG. (diff) | |
download | historical-299717d1a918cbb94a74fec7a88469ca84c86fbd.tar.gz historical-299717d1a918cbb94a74fec7a88469ca84c86fbd.tar.bz2 historical-299717d1a918cbb94a74fec7a88469ca84c86fbd.zip |
Handle USE=debug in the same way as cmake-utils, do not abuse it with CMAkE_BUILD_TYPE=Debugfull (it can be done when needed anyway - see CMAKE_BUILD_TYPE section in cmake-utils.eclass(5))
Diffstat (limited to 'eclass/kde4-base.eclass')
-rw-r--r-- | eclass/kde4-base.eclass | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass index a497f4214aca..9dcaed869ca5 100644 --- a/eclass/kde4-base.eclass +++ b/eclass/kde4-base.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.66 2010/08/09 15:59:04 reavertm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.67 2010/08/12 19:32:23 reavertm Exp $ # @ECLASS: kde4-base.eclass # @MAINTAINER: @@ -645,12 +645,13 @@ kde4-base_src_configure() { cmakeargs+=(-DKDE4_ENABLE_FINAL=ON) fi - if has debug ${IUSE//+} && use debug; then - # Set "real" debug mode - CMAKE_BUILD_TYPE="Debugfull" - else - # Handle common release builds - append-cppflags -DQT_NO_DEBUG + if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then + # Handle debug and release codepaths + if has debug ${IUSE//+} && use debug; then + append-cppflags -DDEBUG + else + append-cppflags -DNDEBUG -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM + fi fi # Set distribution name |