xref: /OK3568_Linux_fs/yocto/meta-qt5/recipes-qt/qsiv/qsiv_1.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Qt Simple Image Viewer"
2DESCRIPTION = "A simple image viewer using a mix of C++ and qml code for demonstration."
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=11c7965a9059e287de5d93b98adf6d1a"
5DEPENDS = "qtdeclarative"
6
7SRCREV = "7b9810b0f02f9ac74fae3ead6e2e9fb5c1382173"
8SRC_URI = "git://code.ossystems.com.br/qt/qsiv;protocol=http;branch=master"
9
10S = "${WORKDIR}/git"
11
12inherit qmake5
13
14EXTRA_QMAKEVARS_PRE += "target.path=${libdir}/${P}"
15
16do_install:append() {
17    install -d ${D}${bindir}
18    echo "#!/bin/sh" > ${D}${bindir}/qsiv
19    echo "export QML_IMPORT_PATH=${libdir}/${P}/qml/qsiv" >> ${D}${bindir}/qsiv
20    echo "export QML2_IMPORT_PATH=${libdir}/${P}/qml/qsiv" >> ${D}${bindir}/qsiv
21    echo "${libdir}/${P}/qsiv \$* " >> ${D}${bindir}/qsiv
22    chmod +x ${D}${bindir}/qsiv
23}
24
25FILES:${PN} += "${libdir}/${P}"
26RDEPENDS:${PN} += "qtdeclarative-qmlplugins"
27