M7350/oe-core/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb

26 lines
686 B
BlitzBasic
Raw Normal View History

2024-09-09 08:57:42 +00:00
SUMMARY = "Sets default Qt4 Graphics System to ${QT_GRAPHICS_SYSTEM}"
2024-09-09 08:52:07 +00:00
SECTION = "x11/base"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
2024-09-09 08:57:42 +00:00
PR = "r1"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
QT_GRAPHICS_SYSTEM ?= "raster"
2024-09-09 08:52:07 +00:00
def _get_extra_rdepends(d):
2024-09-09 08:57:42 +00:00
gs = d.getVar('QT_GRAPHICS_SYSTEM', True)
2024-09-09 08:52:07 +00:00
if gs == "opengl":
return "qt4-plugin-graphicssystems-glgraphicssystem"
return ""
do_install () {
2024-09-09 08:57:42 +00:00
install -d ${D}/${sysconfdir}/profile.d/
cfg_file=${D}/${sysconfdir}/profile.d/qt-graphicssystem
2024-09-09 08:52:07 +00:00
echo "export QT_GRAPHICSSYSTEM=${QT_GRAPHICS_SYSTEM}" > $cfg_file
}
2024-09-09 08:57:42 +00:00
RDEPENDS_${PN} = "${@_get_extra_rdepends(d)}"
2024-09-09 08:52:07 +00:00
PACKAGE_ARCH = "${MACHINE_ARCH}"