diff options
Diffstat (limited to 'yocto-poky/meta/recipes-qt/qt4-graphics-system')
-rw-r--r-- | yocto-poky/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb b/yocto-poky/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb new file mode 100644 index 000000000..ff3f3da2b --- /dev/null +++ b/yocto-poky/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb @@ -0,0 +1,25 @@ +SUMMARY = "Sets default Qt4 Graphics System to ${QT_GRAPHICS_SYSTEM}" +SECTION = "x11/base" +LICENSE = "MIT-X" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +PR = "r1" + +QT_GRAPHICS_SYSTEM ?= "raster" + +def _get_extra_rdepends(d): + gs = d.getVar('QT_GRAPHICS_SYSTEM', True) + if gs == "opengl": + return "qt4-plugin-graphicssystems-glgraphicssystem" + + return "" + +do_install () { + install -d ${D}/${sysconfdir}/profile.d/ + cfg_file=${D}/${sysconfdir}/profile.d/qt-graphicssystem + echo "export QT_GRAPHICSSYSTEM=${QT_GRAPHICS_SYSTEM}" > $cfg_file +} + +RDEPENDS_${PN} = "${@_get_extra_rdepends(d)}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" |