/[gentoo-x86]/eclass/cmake-utils.eclass
Gentoo

Diff of /eclass/cmake-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.56 Revision 1.57
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.56 2010/07/14 15:48:43 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.57 2010/08/12 19:27:42 reavertm Exp $
4 4
5# @ECLASS: cmake-utils.eclass 5# @ECLASS: cmake-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# 8#
28# used for optionality) 28# used for optionality)
29WANT_CMAKE="${WANT_CMAKE:-always}" 29WANT_CMAKE="${WANT_CMAKE:-always}"
30 30
31# @ECLASS-VARIABLE: CMAKE_MIN_VERSION 31# @ECLASS-VARIABLE: CMAKE_MIN_VERSION
32# @DESCRIPTION: 32# @DESCRIPTION:
33# Specify the minimum allowable version of cmake. Defaults to 2.6.2-r1 33# Specify the minimum required CMake version. Default is 2.6.2-r1
34CMAKE_MIN_VERSION="${CMAKE_MIN_VERSION:-2.6.2-r1}" 34CMAKE_MIN_VERSION="${CMAKE_MIN_VERSION:-2.6.2-r1}"
35 35
36CMAKEDEPEND="" 36CMAKEDEPEND=""
37case ${WANT_CMAKE} in 37case ${WANT_CMAKE} in
38 always) 38 always)
284 # Fix xdg collision with sandbox 284 # Fix xdg collision with sandbox
285 export XDG_CONFIG_HOME="${T}" 285 export XDG_CONFIG_HOME="${T}"
286 286
287 # @SEE CMAKE_BUILD_TYPE 287 # @SEE CMAKE_BUILD_TYPE
288 if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then 288 if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then
289 # Handle release builds 289 # Handle debug and release codepaths
290 if ! has debug ${IUSE//+} || ! use debug; then 290 if has debug ${IUSE//+} && use debug; then
291 append-cppflags -DNDEBUG 291 append-cppflags -DDEBUG
292 else
293 append-cppflags -DNDEBUG -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM
292 fi 294 fi
293 fi 295 fi
294 296
295 # Prepare Gentoo override rules (set valid compiler, append CPPFLAGS) 297 # Prepare Gentoo override rules (set valid compiler, append CPPFLAGS)
296 local build_rules=${T}/gentoo_rules.cmake 298 local build_rules=${T}/gentoo_rules.cmake

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

  ViewVC Help
Powered by ViewVC 1.1.20