From 8f88b218cab885bdbc67db77c876fc5a7dd4e790 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 14 Feb 2017 15:08:50 +0200 Subject: Add multiscreen automotive demo Startup is disabled by default. Task-number: QTAUTO-275 Change-Id: I3c7cbca10dc3a0d0ca2cc512c34b02b6985fe0d9 Reviewed-by: Teemu Holappa --- recipes-qt/automotive/multiscreen-demo_git.bb | 65 ++++++++++++++++++++++ .../packagegroup-b2qt-automotive-addons.bb | 1 + 2 files changed, 66 insertions(+) create mode 100644 recipes-qt/automotive/multiscreen-demo_git.bb diff --git a/recipes-qt/automotive/multiscreen-demo_git.bb b/recipes-qt/automotive/multiscreen-demo_git.bb new file mode 100644 index 0000000..1997bd5 --- /dev/null +++ b/recipes-qt/automotive/multiscreen-demo_git.bb @@ -0,0 +1,65 @@ +############################################################################ +## +## Copyright (C) 2017 The Qt Company Ltd. +## Contact: https://www.qt.io/licensing/ +## +## This file is part of the Boot to Qt meta layer. +## +## $QT_BEGIN_LICENSE:GPL$ +## Commercial License Usage +## Licensees holding valid commercial Qt licenses may use this file in +## accordance with the commercial license agreement provided with the +## Software or, alternatively, in accordance with the terms contained in +## a written agreement between you and The Qt Company. For licensing terms +## and conditions see https://www.qt.io/terms-conditions. For further +## information use the contact form at https://www.qt.io/contact-us. +## +## GNU General Public License Usage +## Alternatively, this file may be used under the terms of the GNU +## General Public License version 3 or (at your option) any later version +## approved by the KDE Free Qt Foundation. The licenses are as published by +## the Free Software Foundation and appearing in the file LICENSE.GPL3 +## included in the packaging of this file. Please review the following +## information to ensure the GNU General Public License requirements will +## be met: https://www.gnu.org/licenses/gpl-3.0.html. +## +## $QT_END_LICENSE$ +## +############################################################################ + +DESCRIPTION = "Multiscreen Demo" +LICENSE = "GPLv3 | The-Qt-Company-DCLA-2.1" +LIC_FILES_CHKSUM = "file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073" + +inherit qt5-module systemd +require recipes-qt/qt5/qt5-git.inc + +QT_GIT = "git://code.qt.io/qt-apps" +QT_MODULE_BRANCH = "master" + +SRC_URI += "git://github.com/qtproject/qt-apps-demo-assets;protocol=git;name=assets;destsuffix=git/demo-assets" + +SRCREV_multiscreen = "77ecd7d03aeea3bb7d10ac8ef448920da11ae306" +SRCREV_assets = "0d47d21f082d6c9e355a55809ebd38a31ea02264" + +SRCREV_FORMAT = "multiscreen_assets" +SRCREV = "${SRCREV_multiscreen}" + +DEPENDS = "qtbase qtdeclarative qt3d" +RDEPENDS_${PN} = "qtapplicationmanager qtivi qtvirtualkeyboard" + +EXTRA_QMAKEVARS_PRE += "INSTALL_PREFIX=/opt" + +do_install_append() { + install -m 0755 ${S}/start.sh ${D}/opt/automotivedemo/ + + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${S}/scripts/automotivedemo.service ${D}${systemd_system_unitdir}/ +} + +FILES_${PN} += "\ + /opt/automotivedemo \ + " + +SYSTEMD_SERVICE_${PN} = "automotivedemo.service" +SYSTEMD_AUTO_ENABLE = "disable" diff --git a/recipes-qt/packagegroups/packagegroup-b2qt-automotive-addons.bb b/recipes-qt/packagegroups/packagegroup-b2qt-automotive-addons.bb index 391224e..bd7f777 100644 --- a/recipes-qt/packagegroups/packagegroup-b2qt-automotive-addons.bb +++ b/recipes-qt/packagegroups/packagegroup-b2qt-automotive-addons.bb @@ -42,4 +42,5 @@ RDEPENDS_${PN} += " \ ${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebbrowser', '', d)} \ gammaray \ qmllive-target \ + multiscreen-demo \ " -- cgit v1.2.3-54-g00ecf