summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-27 02:17:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-06 12:11:32 +0000
commite2ccea06539308517995aec98e65fcf8c6d215fc (patch)
tree3e73a6eeb4947cd54487dd2d7f0edd823e3dd947
parent6fc0bfdb0ffd2eae1bb8219bc8534fad85b9cfb3 (diff)
downloadpoky-e2ccea06539308517995aec98e65fcf8c6d215fc.tar.gz
qt4-graphics-system: add
Allow setting default runtime graphics system engine for Qt4 applications per machine. Depending on the GPU and Xorg driver, this can boost and impact significantly the drawing performance. The default setting is to 'raster' as this offer best performance for most machines GPUs. (From OE-Core rev: ddd3f453e93e460d8db0fcdd04fb4633fe2ebceb) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb b/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb
new file mode 100644
index 0000000000..b3aa1e559c
--- /dev/null
+++ b/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb
@@ -0,0 +1,27 @@
1DESCRIPTION = "Set default Qt4 Graphics System to ${QT_GRAPHICS_SYSTEM}"
2SECTION = "x11/base"
3LICENSE = "MIT-X"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5
6QT_GRAPHICS_SYSTEM ?= "raster"
7
8# xserver-common, x11-common
9VIRTUAL-RUNTIME_xserver_common ?= "x11-common"
10
11def _get_extra_rdepends(d):
12 gs = d.getVar('QT_GRAPHICS_SYSTEM', 1)
13 if gs == "opengl":
14 return "qt4-plugin-graphicssystems-glgraphicssystem"
15
16 return ""
17
18do_install () {
19 install -d ${D}/${sysconfdir}/X11/Xsession.d/
20 cfg_file=${D}/${sysconfdir}/X11/Xsession.d/85xqt-graphicssystem
21 echo "export QT_GRAPHICSSYSTEM=${QT_GRAPHICS_SYSTEM}" > $cfg_file
22 chmod +x $cfg_file
23}
24
25RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_xserver_common} ${@_get_extra_rdepends(d)}"
26
27PACKAGE_ARCH = "${MACHINE_ARCH}"