summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/qt/Config.in10
-rw-r--r--package/qt/qt.mk5
2 files changed, 15 insertions, 0 deletions
diff --git a/package/qt/Config.in b/package/qt/Config.in
index 43f5a0fc7c..83fdeec812 100644
--- a/package/qt/Config.in
+++ b/package/qt/Config.in
@@ -120,6 +120,16 @@ 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, but for
+ QT_COORD_TYPE, some people may want to use a double type
+ anyway for precision.
+
+ 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 d1615ae0bf..919137b2a2 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
OpenPOWER on IntegriCloud