From patchwork Wed Apr 22 08:34:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 463618 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id C336F140152 for ; Wed, 22 Apr 2015 18:34:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=zEqrMfYo; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E67FD89E91; Wed, 22 Apr 2015 08:34:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YxSu3X3qyRAa; Wed, 22 Apr 2015 08:34:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A9CF489E8D; Wed, 22 Apr 2015 08:34:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1FAA41C1600 for ; Wed, 22 Apr 2015 08:34:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1D5718AAC1 for ; Wed, 22 Apr 2015 08:34:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aDUeMekqMLFS for ; Wed, 22 Apr 2015 08:34:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by whitealder.osuosl.org (Postfix) with ESMTPS id F34A98AAAF for ; Wed, 22 Apr 2015 08:34:31 +0000 (UTC) Received: by wgso17 with SMTP id o17so238872321wgs.1 for ; Wed, 22 Apr 2015 01:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SIq5fuO1HE9YK3/v43tZVNluMDFHojMyXX1ThbuTnNs=; b=zEqrMfYo3hgLxMcCLOH8JjSTfPhTjg9MJOdl/VsVFKi4ueDA3sgRQWD6ZdAXXjfEPO SIgWD/lpX2mesaHil0kPF1O6qyUpVwEN/E9w2OfLzGjR2HgjQ6Ww35HUubfeNvofWrk0 iA8+8aSQYF+siR7IO3Mc0pddyEn+g2Q1rqpHF6TeNuIX8juko8z02lEXmFmx6CN0DqIy ktWXcs8VKxrgwh/YQ8aj3RM+O955jFGnKXFlo/Lh9/I+dLsNlBSiwCyfh1Jg0Crgde2M MxiJMlNhfeTQf+80CjfwyFYgJq9V/Kk6/UMvnHXIQt30zuAax4u0RUAhgHL9gUhD/hNb F3Ow== X-Received: by 10.180.83.73 with SMTP id o9mr3578048wiy.4.1429691670413; Wed, 22 Apr 2015 01:34:30 -0700 (PDT) Received: from localhost ([46.227.18.67]) by mx.google.com with ESMTPSA id hy7sm6262415wjb.1.2015.04.22.01.34.29 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 22 Apr 2015 01:34:29 -0700 (PDT) From: Richard Genoud To: buildroot@busybox.net Date: Wed, 22 Apr 2015 10:34:18 +0200 Message-Id: <1429691658-13139-1-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 2.3.4 In-Reply-To: <1421750951-28114-1-git-send-email-richard.genoud@gmail.com> References: <1421750951-28114-1-git-send-email-richard.genoud@gmail.com> Cc: Julien D'Ascenzio Subject: [Buildroot] [PATCH RESEND] qt: add QT_COORD_TYPE to double option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Julien D'Ascenzio On ARM-based platforms, qreal is a typedef for float for performance reasons. But we may want a double precision anyway. Signed-off-by: Richard Genoud Reviewed-by: "Yann E. MORIN" Tested-by: "Yann E. MORIN" --- Rebased and compiled on master (21 april 2015) for arm926ej-s package/qt/Config.in | 7 +++++++ package/qt/qt.mk | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/package/qt/Config.in b/package/qt/Config.in index 43f5a0fc7c0d..c3922abb9f23 100644 --- a/package/qt/Config.in +++ b/package/qt/Config.in @@ -120,6 +120,13 @@ config BR2_PACKAGE_QT_CONFIG_FILE This option allows to set the path of such a configuration file, which Buildroot will give to Qt at compile time. +config BR2_PACKAGE_QT_QT_COORD_TYPE_DOUBLE + bool "QT_COORD_TYPE to double" + help + Set QT_COORD_TYPE to double + On ARM-based platforms, qreal is a typedef for float for performance reasons. + If unsure say n. + config BR2_PACKAGE_QT_QT3SUPPORT bool "Compatibility with Qt3" depends on BR2_PACKAGE_QT_GUI_MODULE diff --git a/package/qt/qt.mk b/package/qt/qt.mk index 76acbfcea476..ce0a21ab288a 100644 --- a/package/qt/qt.mk +++ b/package/qt/qt.mk @@ -46,6 +46,11 @@ QT_CFLAGS += -marm QT_CXXFLAGS += -marm endif +ifeq ($(BR2_PACKAGE_QT_QT_COORD_TYPE_DOUBLE),y) +QT_CFLAGS += -DQT_COORD_TYPE=double +QT_CXXFLAGS += -DQT_COORD_TYPE=double +endif + ifeq ($(BR2_PACKAGE_QT_QT3SUPPORT),y) QT_CONFIGURE_OPTS += -qt3support else