blob: d031b0aa434408c0e8131189ee94bf56ccd3cfde (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#############################################################################
##
## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the Qt Enterprise Embedded Scripts of the Qt
## framework.
##
## $QT_BEGIN_LICENSE$
## Commercial License Usage Only
## Licensees holding valid commercial Qt license agreements with Digia
## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
## may use this file in accordance with the terms contained in said license
## agreement.
##
## For further information use the contact form at
## http://www.qt.io/contact-us.
##
##
## $QT_END_LICENSE$
##
#############################################################################
DESCRIPTION = "Boot to Qt Demos"
LICENSE = "QtEnterprise"
LIC_FILES_CHKSUM = "file://sensors/Accelbubble.qml;md5=1bf19846314f7b0fa81dc4db92338713;beginline=1;endline=40"
inherit qmake5
SRC_URI = " \
git://qt-gerrit.it.local/QtRD-15810/b2qt-demos;branch=${QT_BRANCH};protocol=ssh;name=demos \
git://code.qt.io/qt-labs/qt5-everywhere-demo.git;protocol=git;name=everywhere;destsuffix=qt5-everywhere-demo \
"
QT_BRANCH = "dev"
SRCREV_demos = "d6979299a7809e5b832738c4cf39bba2c9a185eb"
SRCREV_everywhere = "6178748a6ea34df40a8e3c9ce67137e33383bb0e"
GITDIR_everywhere = "${DL_DIR}/qt5-everywhere-demo"
S = "${WORKDIR}/git/basicsuite"
DEPENDS = "qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtgraphicaleffects qtsensors qtmultimedia qtwebengine"
do_install_append() {
# we only need plugins from the demos
rm -rf ${D}/data/user/camera
rm -rf ${D}/data/user/sensorexplorer
cp -r ${S}/* ${D}/data/user/qt/
cp -r ${S}/../images ${D}/data/
cp -r ${S}/../videos ${D}/data/
cp -r ${WORKDIR}/qt5-everywhere-demo/QtDemo/qml ${D}/data/user/qt/qt5-everywhere/
# we can't have several top-level windows in b2qt, replace Window -> Rectangle
sed -i '/import QtQuick.Window/c\' ${D}/data/user/qt/qt5-everywhere/qml/QtDemo/main.qml
sed -i 's/Window /Rectangle /1' ${D}/data/user/qt/qt5-everywhere/qml/QtDemo/main.qml
}
FILES_${PN} += " \
/data/images/ \
/data/videos/ \
/data/user \
"
FILES_${PN}-dbg += " \
/data/user/*/.debug/ \
/data/user/qt/*/*/.debug/ \
"
|