From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 080DE138CEC for ; Tue, 16 Jun 2015 19:23:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE13DE082F; Tue, 16 Jun 2015 19:23:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5A2B4E082F for ; Tue, 16 Jun 2015 19:23:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A61BC340C23 for ; Tue, 16 Jun 2015 19:23:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 60A4CA2D for ; Tue, 16 Jun 2015 19:23:36 +0000 (UTC) From: "Davide Pesavento" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" Message-ID: <1434482041.fb38b1da22ef21f32e3d659b8287715cce0bf6f8.pesa@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: eclass/ X-VCS-Repository: proj/qt X-VCS-Files: eclass/qt5-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: pesa X-VCS-Committer-Name: Davide Pesavento X-VCS-Revision: fb38b1da22ef21f32e3d659b8287715cce0bf6f8 X-VCS-Branch: master Date: Tue, 16 Jun 2015 19:23:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fff164f5-b1d1-49a9-b52a-d3aeb438130f X-Archives-Hash: ac14192949d5a63e4925ada87e56d23d commit: fb38b1da22ef21f32e3d659b8287715cce0bf6f8 Author: Davide Pesavento gentoo org> AuthorDate: Tue Jun 16 19:14:01 2015 +0000 Commit: Davide Pesavento gentoo org> CommitDate: Tue Jun 16 19:14:01 2015 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=fb38b1da [qt5-build] Allow configuring debug/release on a per-package basis. Partially based on github pull request #92. eclass/qt5-build.eclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 6f10824..5bc5cbd 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -489,8 +489,9 @@ qt5_base_configure() { -examplesdir "${QT5_EXAMPLESDIR}" -testsdir "${QT5_TESTSDIR}" - # debug/release - $(usex debug -debug -release) + # configure in release mode by default, + # override via the CONFIG qmake variable + -release -no-separate-debug-info # licensing stuff @@ -649,6 +650,8 @@ qt5_qmake() { fi "${qmakepath}"/qmake \ + CONFIG+=$(usex debug debug release) \ + CONFIG-=$(usex debug release debug) \ QMAKE_AR="$(tc-getAR) cqs" \ QMAKE_CC="$(tc-getCC)" \ QMAKE_LINK_C="$(tc-getCC)" \