blob: b3aa1e559c1ea4eb49288579382f2ae02e1a9203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
DESCRIPTION = "Set default Qt4 Graphics System to ${QT_GRAPHICS_SYSTEM}"
SECTION = "x11/base"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
QT_GRAPHICS_SYSTEM ?= "raster"
# xserver-common, x11-common
VIRTUAL-RUNTIME_xserver_common ?= "x11-common"
def _get_extra_rdepends(d):
gs = d.getVar('QT_GRAPHICS_SYSTEM', 1)
if gs == "opengl":
return "qt4-plugin-graphicssystems-glgraphicssystem"
return ""
do_install () {
install -d ${D}/${sysconfdir}/X11/Xsession.d/
cfg_file=${D}/${sysconfdir}/X11/Xsession.d/85xqt-graphicssystem
echo "export QT_GRAPHICSSYSTEM=${QT_GRAPHICS_SYSTEM}" > $cfg_file
chmod +x $cfg_file
}
RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_xserver_common} ${@_get_extra_rdepends(d)}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
|