diff options
Diffstat (limited to 'meta-boot2qt/recipes-qt')
46 files changed, 1665 insertions, 0 deletions
diff --git a/meta-boot2qt/recipes-qt/automotive/gammaray_git.bb b/meta-boot2qt/recipes-qt/automotive/gammaray_git.bb new file mode 100644 index 0000000..7466822 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/gammaray_git.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "GammaRay Qt introspection probe" | ||
2 | HOMEPAGE = "http://www.kdab.com/gammaray" | ||
3 | |||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE.GPL.txt;md5=a5b28ec9718d4516f7a621cd0232afc1" | ||
6 | |||
7 | inherit cmake_qt5 | ||
8 | |||
9 | SRC_URI = "git://github.com/KDAB/GammaRay;branch=${BRANCH}" | ||
10 | |||
11 | BRANCH = "5.9" | ||
12 | SRCREV = "87656b9c344077d84682b53ba3e4676e18b57f9e" | ||
13 | PV = "${BRANCH}+git${SRCPV}" | ||
14 | |||
15 | DEPENDS = "qtdeclarative qtlocation qtsvg qttools qtconnectivity qt3d qtivi qtscxml qtscxml-native \ | ||
16 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | EXTRA_OECMAKE += " -DGAMMARAY_BUILD_UI=OFF -DGAMMARAY_CORE_ONLY_LAUNCHER=ON" | ||
21 | |||
22 | FILES_${PN}-dev += " \ | ||
23 | /usr/lib/cmake/* \ | ||
24 | /usr/mkspecs/modules/* \ | ||
25 | " | ||
26 | FILES_${PN}-dbg += " \ | ||
27 | /usr/lib/.debug/* \ | ||
28 | /usr/lib/gammaray/*/*/.debug \ | ||
29 | /usr/lib/gammaray/*/*/styles/.debug \ | ||
30 | " | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/automotivedemo.service b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/automotivedemo.service new file mode 100644 index 0000000..af23213 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/automotivedemo.service | |||
@@ -0,0 +1,12 @@ | |||
1 | [Unit] | ||
2 | Description=AutomotiveDemo | ||
3 | After=dbus.service dbus-session.service systemd-user-sessions.service | ||
4 | Conflicts=neptune.service | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/usr/bin/appcontroller /usr/bin/appman -r --dbus session -c am-config.yaml | ||
8 | Restart=on-failure | ||
9 | WorkingDirectory=/opt/automotivedemo | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/tegra-t18x/automotivedemo.service b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/tegra-t18x/automotivedemo.service new file mode 100644 index 0000000..1025cc1 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/tegra-t18x/automotivedemo.service | |||
@@ -0,0 +1,13 @@ | |||
1 | [Unit] | ||
2 | Description=AutomotiveDemo | ||
3 | After=dbus.service dbus-session.service systemd-user-sessions.service | ||
4 | Conflicts=neptune.service | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/usr/bin/appcontroller /usr/bin/appman -r --dbus session -c am-config.yaml | ||
8 | Restart=on-failure | ||
9 | WorkingDirectory=/opt/automotivedemo | ||
10 | Environment=QT_QPA_EGLFS_KMS_CONFIG=kms_config.json | ||
11 | |||
12 | [Install] | ||
13 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/multiscreen-demo_git.bb b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo_git.bb new file mode 100644 index 0000000..c81adee --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo_git.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Multiscreen Demo" | ||
31 | LICENSE = "GPLv3 | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073" | ||
33 | |||
34 | inherit qt5-module systemd | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | QT_GIT_PROJECT = "qt-apps" | ||
38 | QT_MODULE_BRANCH = "master" | ||
39 | |||
40 | SRC_URI += "\ | ||
41 | git://github.com/qtproject/qt-apps-demo-assets;protocol=git;name=assets;destsuffix=git/demo-assets \ | ||
42 | file://automotivedemo.service \ | ||
43 | " | ||
44 | |||
45 | SRCREV_multiscreen-demo = "6d02e36c4280cee5b0c31323016ae666c73afef4" | ||
46 | SRCREV_assets = "0d47d21f082d6c9e355a55809ebd38a31ea02264" | ||
47 | |||
48 | SRCREV_FORMAT = "multiscreen-demo_assets" | ||
49 | |||
50 | DEPENDS = "qtbase qtdeclarative qt3d" | ||
51 | RDEPENDS_${PN} = "qtapplicationmanager qtivi qtvirtualkeyboard" | ||
52 | |||
53 | EXTRA_QMAKEVARS_PRE += "INSTALL_PREFIX=/opt" | ||
54 | |||
55 | do_install_append() { | ||
56 | rm ${D}/opt/automotivedemo/start.sh | ||
57 | |||
58 | install -d ${D}${systemd_system_unitdir} | ||
59 | install -m 0644 ${WORKDIR}/automotivedemo.service ${D}${systemd_system_unitdir}/ | ||
60 | } | ||
61 | |||
62 | FILES_${PN} += "\ | ||
63 | /opt/automotivedemo \ | ||
64 | " | ||
65 | |||
66 | SYSTEMD_SERVICE_${PN} = "automotivedemo.service" | ||
67 | SYSTEMD_AUTO_ENABLE = "disable" | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/neptune-ui/neptune.service b/meta-boot2qt/recipes-qt/automotive/neptune-ui/neptune.service new file mode 100644 index 0000000..16b6a1f --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/neptune-ui/neptune.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=Neptune | ||
3 | After=dbus.service dbus-session.service systemd-user-sessions.service | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=/usr/bin/appcontroller /usr/bin/appman -r --dbus session -c am-config.yaml | ||
7 | Restart=on-failure | ||
8 | WorkingDirectory=/usr/neptune-ui | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/neptune-ui_git.bb b/meta-boot2qt/recipes-qt/automotive/neptune-ui_git.bb new file mode 100644 index 0000000..5898424 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/neptune-ui_git.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Copyright (C) 2018 Pelagicore AG. | ||
5 | ## Contact: https://www.qt.io/licensing/ | ||
6 | ## | ||
7 | ## This file is part of the Boot to Qt meta layer. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE:GPL$ | ||
10 | ## Commercial License Usage | ||
11 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
12 | ## accordance with the commercial license agreement provided with the | ||
13 | ## Software or, alternatively, in accordance with the terms contained in | ||
14 | ## a written agreement between you and The Qt Company. For licensing terms | ||
15 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
16 | ## information use the contact form at https://www.qt.io/contact-us. | ||
17 | ## | ||
18 | ## GNU General Public License Usage | ||
19 | ## Alternatively, this file may be used under the terms of the GNU | ||
20 | ## General Public License version 3 or (at your option) any later version | ||
21 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
22 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
23 | ## included in the packaging of this file. Please review the following | ||
24 | ## information to ensure the GNU General Public License requirements will | ||
25 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
26 | ## | ||
27 | ## $QT_END_LICENSE$ | ||
28 | ## | ||
29 | ############################################################################ | ||
30 | |||
31 | DESCRIPTION = "Neptune IVI UI" | ||
32 | LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1" | ||
33 | LIC_FILES_CHKSUM = "\ | ||
34 | file://LICENSE.GPL3;md5=c41b4a3e669de55dfe304b8376b04a82 \ | ||
35 | file://imports/assets/fonts/OFL.txt;md5=a729250f3548d9d2deab9bfeb8a7ad51 \ | ||
36 | " | ||
37 | |||
38 | inherit qt5-module systemd | ||
39 | require recipes-qt/qt5/qt5-git.inc | ||
40 | |||
41 | QT_GIT_PROJECT = "qt-apps" | ||
42 | |||
43 | SRC_URI += " \ | ||
44 | file://neptune.service \ | ||
45 | " | ||
46 | |||
47 | SRCREV = "7b64754e5d1aa3ea3b63347bc5637bae9795e193" | ||
48 | |||
49 | DEPENDS = "qtbase qtdeclarative qttools-native qtquickcontrols2 qtapplicationmanager" | ||
50 | RDEPENDS_${PN} = "qtivi qtvirtualkeyboard dbus \ | ||
51 | qtquickcontrols-qmlplugins qtgraphicaleffects-qmlplugins \ | ||
52 | ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}" | ||
53 | |||
54 | do_install_append() { | ||
55 | install -m 0755 -d ${D}${systemd_unitdir}/system | ||
56 | install -m 0644 ${WORKDIR}/neptune.service ${D}${systemd_unitdir}/system/ | ||
57 | |||
58 | # Move the fonts to the system-wide font location | ||
59 | install -m 0755 -d ${D}${datadir}/fonts/ttf/ | ||
60 | mv ${D}/usr/neptune-ui/imports/assets/fonts/*.ttf ${D}${datadir}/fonts/ttf/ | ||
61 | rm -rf ${D}/usr/neptune-ui/imports/assets/fonts/ | ||
62 | } | ||
63 | |||
64 | PACKAGES =+ "${PN}-apps" | ||
65 | RRECOMMENDS_${PN} += "${PN}-apps" | ||
66 | |||
67 | FILES_${PN}-apps += "/usr/neptune-ui/apps" | ||
68 | FILES_${PN} += "\ | ||
69 | /usr/neptune-ui \ | ||
70 | ${datadir}/fonts/ttf \ | ||
71 | " | ||
72 | |||
73 | SYSTEMD_SERVICE_${PN} = "neptune.service" | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/qmllive-target/qmllive-target.patch b/meta-boot2qt/recipes-qt/automotive/qmllive-target/qmllive-target.patch new file mode 100644 index 0000000..e3f81fa --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/qmllive-target/qmllive-target.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | diff --git a/runtime.pro b/runtime.pro | ||
2 | index 73dd6d7..e569b23 100644 | ||
3 | --- a/runtime.pro | ||
4 | +++ b/runtime.pro | ||
5 | @@ -1,5 +1,4 @@ | ||
6 | TARGET = qmlliveruntime | ||
7 | -DESTDIR = ../../bin | ||
8 | |||
9 | QT *= widgets quick | ||
10 | osx: CONFIG -= app_bundle | ||
11 | @@ -14,6 +13,6 @@ include(../src.pri) | ||
12 | RESOURCES += \ | ||
13 | qml.qrc | ||
14 | |||
15 | - | ||
16 | - | ||
17 | +target.path += /usr/bin | ||
18 | +INSTALLS += target | ||
19 | |||
diff --git a/meta-boot2qt/recipes-qt/automotive/qmllive-target_git.bb b/meta-boot2qt/recipes-qt/automotive/qmllive-target_git.bb new file mode 100644 index 0000000..54f1188 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/qmllive-target_git.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "QML Live target runtime" | ||
31 | |||
32 | LICENSE = "GPL-3.0" | ||
33 | LIC_FILES_CHKSUM = "file://../../LICENSE.GPL3;md5=75cd0dbc6f2d24e7eeb128ff59b74f4c" | ||
34 | |||
35 | inherit qmake5 | ||
36 | require recipes-qt/qt5/qt5-git.inc | ||
37 | |||
38 | QT_GIT_PROJECT = "qt-apps" | ||
39 | QT_MODULE = "qmllive" | ||
40 | QT_MODULE_BRANCH = "master" | ||
41 | |||
42 | SRC_URI += " \ | ||
43 | file://qmllive-target.patch \ | ||
44 | " | ||
45 | |||
46 | SRCREV = "d0d41c71c4691a5f3e2b72e22917f314b4190ffc" | ||
47 | |||
48 | S = "${WORKDIR}/git/src/runtime" | ||
49 | |||
50 | DEPENDS = "qtbase qtdeclarative" | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/qtapplicationmanager_git.bb b/meta-boot2qt/recipes-qt/automotive/qtapplicationmanager_git.bb new file mode 100644 index 0000000..ae66e8a --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/qtapplicationmanager_git.bb | |||
@@ -0,0 +1,70 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Qt component for application lifecycle management" | ||
31 | LICENSE = "(GFDL-1.3 & The-Qt-Company-GPL-Exception-1.0 & (LGPL-3.0 | GPL-2.0+)) | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=ff238b33ff354a0d8d79851a9c061717" | ||
33 | |||
34 | inherit qt5-module | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | SRCREV = "5581e400c95a1ff736c55c9d93bd451302970c11" | ||
38 | |||
39 | DEPENDS = "qtbase qtdeclarative libyaml libarchive \ | ||
40 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}" | ||
41 | |||
42 | RDEPENDS_${PN} = "libcrypto ${PN}-tools" | ||
43 | RDEPENDS_${PN}_remove_mingw32 = "libcrypto" | ||
44 | |||
45 | EXTRA_QMAKEVARS_PRE += "\ | ||
46 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "-config force-multiprocess", "-config force-singleprocess", d)} \ | ||
47 | -config install-prefix=/usr \ | ||
48 | -config systemd-workaround \ | ||
49 | -config hardware-id=neptune \ | ||
50 | " | ||
51 | |||
52 | do_install_append() { | ||
53 | install -m 0755 -d ${D}/opt/am/ | ||
54 | install -m 0644 ${S}/template-opt/am/config.yaml ${D}/opt/am/ | ||
55 | } | ||
56 | |||
57 | FILES_${PN} += "\ | ||
58 | /opt/am \ | ||
59 | " | ||
60 | |||
61 | BBCLASSEXTEND += "nativesdk" | ||
62 | |||
63 | # nativesdk-qtdeclarative is added only to make build deterministic, can be removed once | ||
64 | # there is a configure option to disable its usage. | ||
65 | DEPENDS_class-nativesdk = "qtbase nativesdk-qtdeclarative nativesdk-glibc-locale nativesdk-libarchive" | ||
66 | DEPENDS_class-nativesdk_remove_mingw32 = "nativesdk-glibc-locale nativesdk-libarchive" | ||
67 | |||
68 | EXTRA_QMAKEVARS_PRE_class-nativesdk = "\ | ||
69 | -config tools-only \ | ||
70 | " | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/qtivi/0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch b/meta-boot2qt/recipes-qt/automotive/qtivi/0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch new file mode 100644 index 0000000..9f6c0c0 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/qtivi/0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From b4ed8c9d4a391771cba485bfa685147126260dc2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
3 | Date: Thu, 7 Sep 2017 10:24:11 +0300 | ||
4 | Subject: [PATCH] Use QT_HOST_BINS/get for getting correct path | ||
5 | |||
6 | Patch QT_HOST_BINS same way as is done it qtbase for getting | ||
7 | the EffectivePath instead of installation path. | ||
8 | |||
9 | Change-Id: I3e9c04019c432e182dcb5c0898275173f20de1e2 | ||
10 | --- | ||
11 | mkspecs/features/ivigenerator.prf | 4 ++-- | ||
12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/mkspecs/features/ivigenerator.prf b/mkspecs/features/ivigenerator.prf | ||
15 | index 65c497e..7634355 100644 | ||
16 | --- a/mkspecs/features/ivigenerator.prf | ||
17 | +++ b/mkspecs/features/ivigenerator.prf | ||
18 | @@ -31,9 +31,9 @@ QFACE_YAML = $$QFACE_ABS_PWD/$${QFACE_BASE_NAME}.yaml | ||
19 | OTHER_FILES += $$QFACE_FILE | ||
20 | |||
21 | # Detect whether we are using the feature inside the qtivi repository | ||
22 | -VIRTUALENV_PATH = $$[QT_HOST_BINS]/ivigenerator/qtivi_qface_virtualenv | ||
23 | +VIRTUALENV_PATH = $$[QT_HOST_BINS/get]/ivigenerator/qtivi_qface_virtualenv | ||
24 | INTERNAL_VIRTUALENV_PATH = $$QTIVI_BUILD_ROOT/src/tools/ivigenerator/qtivi_qface_virtualenv | ||
25 | -IVI_GENERATOR_PATH = $$[QT_HOST_BINS]/ivigenerator | ||
26 | +IVI_GENERATOR_PATH = $$[QT_HOST_BINS/get]/ivigenerator | ||
27 | QTEST_ENVIRONMENT = $$upper($$(QTEST_ENVIRONMENT)) | ||
28 | |||
29 | # Try to use the internal virtualenv when building qtivi | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/qtivi_git.bb b/meta-boot2qt/recipes-qt/automotive/qtivi_git.bb new file mode 100644 index 0000000..5cbf131 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/qtivi_git.bb | |||
@@ -0,0 +1,110 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Qt IVI" | ||
31 | LICENSE = "(GFDL-1.3 & BSD & The-Qt-Company-GPL-Exception-1.0 & (LGPL-3.0 | GPL-2.0+)) | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
33 | file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
34 | file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
35 | file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ | ||
36 | file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
37 | |||
38 | DEPENDS = "qtbase qtdeclarative qtmultimedia qtivi-native" | ||
39 | DEPENDS_class-native = "qtbase" | ||
40 | DEPENDS_class-nativesdk = "qtbase" | ||
41 | |||
42 | inherit qt5-module | ||
43 | inherit python3native | ||
44 | require recipes-qt/qt5/qt5-git.inc | ||
45 | |||
46 | QT_MODULE_BRANCH_QFACE = "upstream/develop" | ||
47 | |||
48 | SRC_URI += " \ | ||
49 | ${QT_GIT}/qtivi-qface.git;name=qface;branch=${QT_MODULE_BRANCH_QFACE};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/qface \ | ||
50 | file://0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch \ | ||
51 | " | ||
52 | |||
53 | SRCREV_qtivi = "8d482b27c6c0c2b664104fd777ddee92652ab65c" | ||
54 | SRCREV_qface = "9da793d6cbc63d617ad5e2ffd13e9f6d055c88e8" | ||
55 | SRCREV = "${SRCREV_qtivi}" | ||
56 | SRCREV_FORMAT = "qtivi_qface" | ||
57 | |||
58 | PACKAGECONFIG ?= "taglib ivigenerator" | ||
59 | PACKAGECONFIG[taglib] = "QMAKE_EXTRA_ARGS+=-feature-taglib,QMAKE_EXTRA_ARGS+=-no-feature-taglib,taglib" | ||
60 | PACKAGECONFIG[dlt] = "QMAKE_EXTRA_ARGS+=-feature-dlt,QMAKE_EXTRA_ARGS+=-no-feature-dlt,dlt-daemon" | ||
61 | PACKAGECONFIG[geniviextras-only] = "QMAKE_EXTRA_ARGS+=--geniviextras-only" | ||
62 | # For cross-compiling tell qtivi to use the system-ivigenerator, which is installed by the native recipe" | ||
63 | PACKAGECONFIG[ivigenerator] = "QMAKE_EXTRA_ARGS+=-system-ivigenerator" | ||
64 | PACKAGECONFIG[ivigenerator-native] = "QMAKE_EXTRA_ARGS+=-qt-ivigenerator,,python3 python3-virtualenv" | ||
65 | PACKAGECONFIG[host-tools-only] = "QMAKE_EXTRA_ARGS+=-host-tools-only" | ||
66 | PACKAGECONFIG[simulator] = "QMAKE_EXTRA_ARGS+=-feature-simulator,QMAKE_EXTRA_ARGS+=-no-feature-simulator,qtsimulator" | ||
67 | PACKAGECONFIG[simulator-native] = "QMAKE_EXTRA_ARGS+=-feature-simulator QMAKE_EXTRA_ARGS+=--force-ivigenerator-qtsimulator" | ||
68 | |||
69 | PACKAGECONFIG_class-native ??= "host-tools-only ivigenerator-native" | ||
70 | PACKAGECONFIG_class-nativesdk ??= "${PACKAGECONFIG_class-native}" | ||
71 | PACKAGECONFIG_class-nativesdk_mingw32 ??= "host-tools-only" | ||
72 | |||
73 | ALLOW_EMPTY_${PN}-tools = "1" | ||
74 | |||
75 | EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS} ${@bb.utils.contains_any('PACKAGECONFIG', 'ivigenerator ivigenerator-native', '', 'QMAKE_EXTRA_ARGS+=-no-ivigenerator', d)}" | ||
76 | |||
77 | set_python_paths() { | ||
78 | # Otherwise pip might cache or reuse something from our home folder | ||
79 | export HOME="${STAGING_DATADIR_NATIVE}" | ||
80 | # This is needed as otherwise the virtualenv tries to use the libs from the host | ||
81 | export LD_LIBRARY_PATH="${STAGING_LIBDIR_NATIVE}" | ||
82 | # Let qtivi use the python3-native binaries | ||
83 | export PYTHON3_PATH="${STAGING_BINDIR_NATIVE}/python3-native" | ||
84 | } | ||
85 | do_compile_prepend() { | ||
86 | set_python_paths | ||
87 | } | ||
88 | do_install_prepend() { | ||
89 | set_python_paths | ||
90 | } | ||
91 | |||
92 | # This needs a modified python3 recipe which copies the binary into a path where this recipe can pick it up | ||
93 | # This is needed to provide a proper executable using the correct interpreter in the SDK. | ||
94 | # See https://bugreports.qt.io/browse/AUTOSUITE-176 | ||
95 | do_install_append_class-nativesdk() { | ||
96 | export IVIGENERATOR_ENABLED="${@bb.utils.contains("PACKAGECONFIG", "ivigenerator-native", "1", "0", d)}" | ||
97 | |||
98 | if [ "${IVIGENERATOR_ENABLED}" = "1" ]; then | ||
99 | cp ${STAGING_BINDIR}/qt5/python3* ${D}/${OE_QMAKE_PATH_BINS}/ivigenerator/qtivi_qface_virtualenv/bin/ | ||
100 | rm -f ${D}/${OE_QMAKE_PATH_BINS}/ivigenerator/qtivi_qface_virtualenv/bin/python | ||
101 | ln -sf python3 ${D}/${OE_QMAKE_PATH_BINS}/ivigenerator/qtivi_qface_virtualenv/bin/python | ||
102 | fi | ||
103 | } | ||
104 | |||
105 | |||
106 | BBCLASSEXTEND += "native nativesdk" | ||
107 | |||
108 | INSANE_SKIP_${PN}_class-native = "already-stripped" | ||
109 | INSANE_SKIP_${PN}_class-nativesdk = "already-stripped" | ||
110 | INSANE_SKIP_${PN}-tools_class-nativesdk = "staticdev" | ||
diff --git a/meta-boot2qt/recipes-qt/automotive/qtwebbrowser_git.bb b/meta-boot2qt/recipes-qt/automotive/qtwebbrowser_git.bb new file mode 100644 index 0000000..9cc0d37 --- /dev/null +++ b/meta-boot2qt/recipes-qt/automotive/qtwebbrowser_git.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Qt Web Browser" | ||
31 | LICENSE = "GPL-3.0" | ||
32 | LIC_FILES_CHKSUM = "file://LICENSE.GPLv3;md5=a40e2bb02b1ac431f461afd03ff9d1d6" | ||
33 | |||
34 | inherit qmake5 | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | QT_GIT_PROJECT = "qt-apps" | ||
38 | QT_MODULE_BRANCH = "dev" | ||
39 | |||
40 | SRCREV = "023733af5523a5ad84359926224fa106001215f4" | ||
41 | |||
42 | DEPENDS = "qtbase qtdeclarative qtwebengine" | ||
43 | |||
44 | FILES_${PN} += "/data/user/qt/qtwebbrowser-app" | ||
45 | FILES_${PN}-dbg += "/data/user/qt/qtwebbrowser-app/.debug" | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller.bb b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller.bb new file mode 100644 index 0000000..9c52606 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller.bb | |||
@@ -0,0 +1,56 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2017 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Boot to Qt Appcontroller" | ||
31 | LICENSE = "The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://main.cpp;md5=f25c7436dbc72d4719a5684b28dbcf4b;beginline=1;endline=17" | ||
33 | |||
34 | inherit qmake5 | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | SRC_URI = " \ | ||
38 | git://codereview.qt-project.org/qt-apps/boot2qt-appcontroller;${QT_MODULE_BRANCH_PARAM};protocol=http \ | ||
39 | file://appcontroller.conf \ | ||
40 | " | ||
41 | |||
42 | SRCREV = "5ab7fdbf0845c40418272bafa565295511055d3b" | ||
43 | |||
44 | DEPENDS = "qtbase" | ||
45 | |||
46 | do_configure_append() { | ||
47 | sed -i -e '/^platform=/d' ${WORKDIR}/appcontroller.conf | ||
48 | echo platform=${MACHINE} >> ${WORKDIR}/appcontroller.conf | ||
49 | } | ||
50 | |||
51 | do_install_append() { | ||
52 | install -m 0755 -d ${D}${sysconfdir} | ||
53 | install -m 0755 ${WORKDIR}/appcontroller.conf ${D}${sysconfdir}/ | ||
54 | } | ||
55 | |||
56 | FILES_${PN} += "${sysconfdir}/appcontroller.conf" | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf new file mode 100644 index 0000000..1ef3732 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf | |||
@@ -0,0 +1,7 @@ | |||
1 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
2 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
3 | env=QT_QPA_EGLFS_FORCE888=0 | ||
4 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
5 | env=XDG_RUNTIME_DIR=/tmp | ||
6 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
7 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf new file mode 100644 index 0000000..4fa1931 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf | |||
@@ -0,0 +1,9 @@ | |||
1 | env=QMLSCENE_DEVICE=softwarecontext | ||
2 | env=QT_QPA_PLATFORM=linuxfb | ||
3 | env=QSG_RENDER_LOOP=basic | ||
4 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
5 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
6 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
7 | env=XDG_RUNTIME_DIR=/tmp | ||
8 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
9 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf new file mode 100644 index 0000000..2bc6eca --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf | |||
@@ -0,0 +1,10 @@ | |||
1 | env=QT_QPA_GENERIC_PLUGINS=simulator | ||
2 | env=QT_QPA_EGLFS_HIDECURSOR=1 | ||
3 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
4 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
5 | env=QTGLESSTREAM_DISPLAY=192.168.56.1 | ||
6 | env=SIMULATOR_HOSTNAME=192.168.56.1 | ||
7 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
8 | env=XDG_RUNTIME_DIR=/tmp | ||
9 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
10 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf new file mode 100644 index 0000000..4e3415f --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf | |||
@@ -0,0 +1,10 @@ | |||
1 | env=FB_MULTI_BUFFER=2 | ||
2 | env=QT_QPA_EGLFS_FORCEVSYNC=1 | ||
3 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
4 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
5 | env=QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0 | ||
6 | env=QT_GSTREAMER_CAMERABIN_VIDEOSRC=mxc_v4l2=imxv4l2videosrc,v4l2src | ||
7 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
8 | env=XDG_RUNTIME_DIR=/tmp | ||
9 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
10 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx7/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx7/appcontroller.conf new file mode 100644 index 0000000..b27315e --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx7/appcontroller.conf | |||
@@ -0,0 +1,9 @@ | |||
1 | env=QMLSCENE_DEVICE=softwarecontext | ||
2 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
3 | env=QT_QPA_PLATFORM=linuxfb | ||
4 | env=QSG_RENDER_LOOP=basic | ||
5 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
6 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
7 | env=XDG_RUNTIME_DIR=/tmp | ||
8 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
9 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf new file mode 100644 index 0000000..0915343 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf | |||
@@ -0,0 +1,7 @@ | |||
1 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
2 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
3 | env=QT_QPA_EGLFS_FORCE888=1 | ||
4 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
5 | env=XDG_RUNTIME_DIR=/tmp | ||
6 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
7 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/tegra-t18x/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/tegra-t18x/appcontroller.conf new file mode 100644 index 0000000..21bb44c --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/tegra-t18x/appcontroller.conf | |||
@@ -0,0 +1,8 @@ | |||
1 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
2 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
3 | env=QT_QPA_EGLFS_FORCE888=0 | ||
4 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
5 | env=XDG_RUNTIME_DIR=/tmp | ||
6 | env=QSG_RENDER_LOOP=basic | ||
7 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
8 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/ti33x/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/ti33x/appcontroller.conf new file mode 100644 index 0000000..37284de --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/ti33x/appcontroller.conf | |||
@@ -0,0 +1,8 @@ | |||
1 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
2 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
3 | env=QT_QPA_EGLFS_FORCE888=0 | ||
4 | env=QT_QUICK_CONTROLS_1_STYLE=Flat | ||
5 | env=QT_QPA_EGLFS_INTEGRATION=none | ||
6 | env=XDG_RUNTIME_DIR=/tmp | ||
7 | env=QTWEBENGINE_DISABLE_SANDBOX=1 | ||
8 | base=linux | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-demos.bb b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-demos.bb new file mode 100644 index 0000000..3726482 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-demos.bb | |||
@@ -0,0 +1,134 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Boot to Qt Demos" | ||
31 | LICENSE = "BSD | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://about-b2qt/AboutBoot2Qt.qml;md5=b0a1a6eef4a172b0a8cb4dad9a167d91;beginline=1;endline=49" | ||
33 | |||
34 | inherit qmake5 | ||
35 | |||
36 | QT_GIT_PROJECT="" | ||
37 | |||
38 | SRC_URI = " \ | ||
39 | ${QT_GIT}qt-apps/boot2qt-demos.git;branch=${BRANCH};name=demos \ | ||
40 | ${QT_GIT}qt/qtcanvas3d.git;branch=${QT_BRANCH};name=qtcanvas3d;destsuffix=qtcanvas3d \ | ||
41 | ${QT_GIT}qt/qtquickcontrols.git;branch=${QT_BRANCH};name=qtquickcontrols;destsuffix=qtquickcontrols \ | ||
42 | ${QT_GIT}qt-apps/qtwebbrowser.git;branch=${BROWSER_BRANCH};name=qtwebbrowser;destsuffix=git/basicsuite/qtwebbrowser/tqtc-qtwebbrowser \ | ||
43 | https://s3-eu-west-1.amazonaws.com/qt-files/examples/Videos/Qt_video_720p.webm;name=video1 \ | ||
44 | https://s3-eu-west-1.amazonaws.com/qt-files/examples/Videos/Qt+World+Summit+2015+Recap.mp4;name=video2 \ | ||
45 | " | ||
46 | |||
47 | PV = "5.11.0+git${SRCPV}" | ||
48 | |||
49 | BRANCH = "5.10" | ||
50 | BROWSER_BRANCH = "dev" | ||
51 | QT_BRANCH = "5.10" | ||
52 | SRCREV_demos = "f9c7da64cea85d44998e62f4e0d3ec217a22f0d2" | ||
53 | SRCREV_qtcanvas3d = "32404e27101c5ec81b4ab965faf38263429bbc5a" | ||
54 | SRCREV_qtquickcontrols = "c6713e212ef0b97c45d6466b73220567e94a05f1" | ||
55 | SRCREV_qtwebbrowser = "7c570ee4297946f3ed70565a630d690070533cbd" | ||
56 | SRCREV_FORMAT = "demos_qtcanvas3d_qtquickcontrols_qtwebbrowser" | ||
57 | |||
58 | SRC_URI[video1.md5sum] = "56de4dcfd5201952dce9af9c69fcec9b" | ||
59 | SRC_URI[video1.sha256sum] = "809123419acac99353439e52c870e2e497dfa8f434ef0777e6c7303e6ad27f89" | ||
60 | SRC_URI[video2.md5sum] = "e03422de1dba27189872e7d579e7da1b" | ||
61 | SRC_URI[video2.sha256sum] = "651e0b4d2b3272dc10bfc9edba4f0c1a7084cd087c75e8a098f7ba3454c7e485" | ||
62 | |||
63 | S = "${WORKDIR}/git/basicsuite" | ||
64 | |||
65 | DEPENDS = "qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtgraphicaleffects qtsensors qtmultimedia qtcanvas3d \ | ||
66 | ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}" | ||
67 | |||
68 | do_install_append() { | ||
69 | # we only need plugins from the demos | ||
70 | rm -rf ${D}/data/user/camera | ||
71 | rm -rf ${D}/data/user/sensorexplorer | ||
72 | rm -rf ${D}/data/user/qtwebbrowser | ||
73 | |||
74 | # we need all qml and content files | ||
75 | cp -r ${S}/* ${D}/data/user/qt/ | ||
76 | |||
77 | # but none of the source files | ||
78 | find ${D}/data/user/qt/ \( -name '*.cpp' -or -name '*.h' -or -name '*.pro' \) -delete | ||
79 | rm -rf ${D}/data/user/qt/qtwebbrowser/tqtc-qtwebbrowser | ||
80 | rm -rf ${D}/data/user/qt/qtwebbrowser/qmldir | ||
81 | |||
82 | if [ -d ${WORKDIR}/git/images ]; then | ||
83 | install -d 0755 ${D}/data/images | ||
84 | install -m 0644 ${WORKDIR}/git/images/* ${D}/data/images/ | ||
85 | fi | ||
86 | |||
87 | install -d -m 0755 ${D}/data/videos | ||
88 | install -m 0644 ${WORKDIR}/Qt_video_720p.webm ${D}/data/videos | ||
89 | install -m 0644 ${WORKDIR}/Qt+World+Summit+2015+Recap.mp4 ${D}/data/videos | ||
90 | |||
91 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/*.qml ${D}/data/user/qt/canvas3d-planets | ||
92 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/*.js ${D}/data/user/qt/canvas3d-planets | ||
93 | cp -r ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/images ${D}/data/user/qt/canvas3d-planets | ||
94 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/controls/ControlEventSource.qml ${D}/data/user/qt/canvas3d-planets | ||
95 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/3rdparty/*.js ${D}/data/user/qt/canvas3d-planets | ||
96 | |||
97 | # get rid of qrc:/ prefixes and the custom slider | ||
98 | sed -i 's/qrc:\(\/\)\?//g' ${D}/data/user/qt/canvas3d-planets/*.qml | ||
99 | sed -i 's/qrc:\(\/\)\?//g' ${D}/data/user/qt/canvas3d-planets/*.js | ||
100 | sed -i 's/StyledSlider/Slider/g' ${D}/data/user/qt/canvas3d-planets/planets.qml | ||
101 | sed -i '/import QtCanvas3D/a import QtQuick.Controls 1.2' ${D}/data/user/qt/canvas3d-planets/planets.qml | ||
102 | |||
103 | # Qt Quick Extras | ||
104 | cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/dashboard/qml ${D}/data/user/qt/enterprise-dashboard/ | ||
105 | cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/dashboard/images ${D}/data/user/qt/enterprise-dashboard/ | ||
106 | |||
107 | cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/gallery/qml ${D}/data/user/qt/enterprise-gallery/ | ||
108 | cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/gallery/images ${D}/data/user/qt/enterprise-gallery/ | ||
109 | cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/gallery/fonts ${D}/data/user/qt/enterprise-gallery/ | ||
110 | |||
111 | cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/flat/images ${D}/data/user/qt/enterprise-flat-controls/ | ||
112 | cp ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/flat/*.qml ${D}/data/user/qt/enterprise-flat-controls/ | ||
113 | |||
114 | sed -i '/import QtQuick.Window/c\' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml | ||
115 | sed -i 's/Window /Rectangle /1' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml | ||
116 | sed -i 's/ApplicationWindow /Rectangle /1' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
117 | sed -i '/title: "Qt Quick Extras Demo"/c\' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml | ||
118 | sed -i '/title: "Flat Example"/c\' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
119 | sed -i 's/"Light Flat UI Demo"/"Qt Quick Controls"/1' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
120 | sed -i '/{ name: "Exit", action: null }/c\' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
121 | |||
122 | sed -i -e 's/qrc:/../g' ${D}/data/user/qt/enterprise-dashboard/qml/* ${D}/data/user/qt/enterprise-gallery/qml/* | ||
123 | sed -i 's/qrc:\///g' ${D}/data/user/qt/enterprise-flat-controls/Content.qml | ||
124 | } | ||
125 | |||
126 | FILES_${PN} += " \ | ||
127 | /data/images/ \ | ||
128 | /data/videos/ \ | ||
129 | /data/user \ | ||
130 | " | ||
131 | |||
132 | FILES_${PN}-dbg += " \ | ||
133 | /data/user/qt/qmlplugins/*/.debug/ \ | ||
134 | " | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher.bb b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher.bb new file mode 100644 index 0000000..225079d --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher.bb | |||
@@ -0,0 +1,65 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Boot to Qt Demo Launcher" | ||
31 | LICENSE = "(BSD & GPL-3.0) | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504" | ||
33 | |||
34 | inherit qmake5 | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | QT_GIT_PROJECT = "qt-apps" | ||
38 | QT_MODULE = "boot2qt-launcher" | ||
39 | |||
40 | SRC_URI += " \ | ||
41 | file://b2qt-startup.sh \ | ||
42 | file://qtlauncher.service \ | ||
43 | file://b2qt.service \ | ||
44 | " | ||
45 | |||
46 | SRCREV = "8d7fe0e4b8852a16469a6d0fe910309e8964ab58" | ||
47 | |||
48 | DEPENDS = "qtbase qtdeclarative \ | ||
49 | ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}" | ||
50 | |||
51 | do_install_append() { | ||
52 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
53 | install -m 0755 ${WORKDIR}/b2qt-startup.sh ${D}${sysconfdir}/init.d/ | ||
54 | |||
55 | install -m 0755 -d ${D}${systemd_unitdir}/system | ||
56 | install -m 0644 ${WORKDIR}/qtlauncher.service ${D}${systemd_unitdir}/system/ | ||
57 | install -m 0644 ${WORKDIR}/b2qt.service ${D}${systemd_unitdir}/system/ | ||
58 | } | ||
59 | |||
60 | INITSCRIPT_NAME = "b2qt-startup.sh" | ||
61 | INITSCRIPT_PARAMS = "defaults 30" | ||
62 | |||
63 | SYSTEMD_SERVICE_${PN} = "qtlauncher.service b2qt.service" | ||
64 | |||
65 | inherit update-rc.d systemd | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh new file mode 100755 index 0000000..89e4bbb --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh | |||
@@ -0,0 +1,49 @@ | |||
1 | #!/bin/sh | ||
2 | ############################################################################ | ||
3 | ## | ||
4 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
5 | ## Contact: https://www.qt.io/licensing/ | ||
6 | ## | ||
7 | ## This file is part of the Boot to Qt meta layer. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE:GPL$ | ||
10 | ## Commercial License Usage | ||
11 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
12 | ## accordance with the commercial license agreement provided with the | ||
13 | ## Software or, alternatively, in accordance with the terms contained in | ||
14 | ## a written agreement between you and The Qt Company. For licensing terms | ||
15 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
16 | ## information use the contact form at https://www.qt.io/contact-us. | ||
17 | ## | ||
18 | ## GNU General Public License Usage | ||
19 | ## Alternatively, this file may be used under the terms of the GNU | ||
20 | ## General Public License version 3 or (at your option) any later version | ||
21 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
22 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
23 | ## included in the packaging of this file. Please review the following | ||
24 | ## information to ensure the GNU General Public License requirements will | ||
25 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
26 | ## | ||
27 | ## $QT_END_LICENSE$ | ||
28 | ## | ||
29 | ############################################################################ | ||
30 | |||
31 | case "$1" in | ||
32 | start) | ||
33 | if [ -x /data/user/b2qt ]; then | ||
34 | APP="/data/user/b2qt" | ||
35 | elif [ -x /usr/bin/b2qt ]; then | ||
36 | APP="/usr/bin/b2qt" | ||
37 | else | ||
38 | APP="/usr/bin/qtlauncher --applications-root /data/user/qt" | ||
39 | fi | ||
40 | /usr/bin/appcontroller ${APP} & | ||
41 | ;; | ||
42 | stop) | ||
43 | /usr/bin/appcontroller --stop | ||
44 | ;; | ||
45 | *) | ||
46 | echo "Usage: $0 {start|stop}" | ||
47 | exit 1 | ||
48 | esac | ||
49 | exit 0 | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt.service new file mode 100644 index 0000000..f941f91 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=B2Qt user application | ||
3 | After=systemd-user-sessions.service | ||
4 | ConditionPathExists=/usr/bin/b2qt | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service new file mode 100644 index 0000000..cdf6480 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=B2Qt user application | ||
3 | BindsTo=dev-fb0.device | ||
4 | After=dev-fb0.device | ||
5 | ConditionPathExists=/usr/bin/b2qt | ||
6 | |||
7 | [Service] | ||
8 | ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/qtlauncher.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/qtlauncher.service new file mode 100644 index 0000000..1094675 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/qtlauncher.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=B2Qt Launcher Demo | ||
3 | BindsTo=dev-fb0.device | ||
4 | After=dev-fb0.device | ||
5 | ConditionPathExists=!/usr/bin/b2qt | ||
6 | |||
7 | [Service] | ||
8 | ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/b2qt.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/b2qt.service new file mode 100644 index 0000000..65fba92 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/b2qt.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=B2Qt user application | ||
3 | After=multi-user.target | ||
4 | ConditionPathExists=/usr/bin/b2qt | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=custom.target | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/qtlauncher.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/qtlauncher.service new file mode 100644 index 0000000..2b02c87 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/qtlauncher.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=B2Qt Launcher Demo | ||
3 | After=multi-user.target | ||
4 | |||
5 | ConditionPathExists=!/usr/bin/b2qt | ||
6 | |||
7 | [Service] | ||
8 | ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=custom.target | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/qtlauncher.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/qtlauncher.service new file mode 100644 index 0000000..7658ca8 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/qtlauncher.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=B2Qt Launcher Demo | ||
3 | After=systemd-user-sessions.service | ||
4 | ConditionPathExists=!/usr/bin/b2qt | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/democompositor_git.bb b/meta-boot2qt/recipes-qt/b2qt-addons/democompositor_git.bb new file mode 100644 index 0000000..3d9a196 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/democompositor_git.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Boot to Qt Wayland Demo Compositor" | ||
31 | LICENSE = "BSD | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://main.cpp;md5=b0a1a6eef4a172b0a8cb4dad9a167d91;beginline=1;endline=49" | ||
33 | |||
34 | inherit qmake5 | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | QT_GIT_PROJECT = "qt-apps" | ||
38 | QT_MODULE = "boot2qt-demos" | ||
39 | |||
40 | SRCREV = "b9585b440819e1444b20f30435f81c46801158c5" | ||
41 | |||
42 | S = "${WORKDIR}/git/wayland/democompositor/" | ||
43 | |||
44 | DEPENDS = "qtbase qtwayland" | ||
45 | |||
46 | FILES_${PN} += "/data/user/democompositor" | ||
47 | FILES_${PN}-dbg += "/data/user/democompositor/.debug" | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd.bb b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd.bb new file mode 100644 index 0000000..8057e19 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd.bb | |||
@@ -0,0 +1,72 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Qt Debug Bridge Daemon" | ||
31 | SECTION = "devel" | ||
32 | LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1" | ||
33 | LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504" | ||
34 | |||
35 | inherit distro_features_check | ||
36 | inherit qmake5 | ||
37 | require recipes-qt/qt5/qt5-git.inc | ||
38 | |||
39 | QT_GIT_PROJECT = "qt-apps" | ||
40 | QT_MODULE = "qdb" | ||
41 | QT_MODULE_BRANCH = "5.9" | ||
42 | |||
43 | SRC_URI += "file://b2qt-gadget-network.sh \ | ||
44 | file://defaults \ | ||
45 | file://qdbd.service \ | ||
46 | file://qdbd-init.sh \ | ||
47 | " | ||
48 | |||
49 | SRCREV = "69f95b6a8d2ca0912a8d502a2b6871109725731e" | ||
50 | PV = "1.1.0+git${SRCPV}" | ||
51 | |||
52 | REQUIRED_DISTRO_FEATURES = "systemd" | ||
53 | DEPENDS = "qtbase" | ||
54 | RRECOMMENDS_${PN} += "kernel-module-usb-f-fs kernel-module-usb-f-rndis" | ||
55 | |||
56 | EXTRA_QMAKEVARS_PRE = "CONFIG+=daemon_only" | ||
57 | |||
58 | do_install_append() { | ||
59 | install -m 0755 ${WORKDIR}/b2qt-gadget-network.sh ${D}${bindir}/ | ||
60 | |||
61 | install -m 0755 ${WORKDIR}/qdbd-init.sh ${D}${bindir}/ | ||
62 | |||
63 | install -m 0755 -d ${D}${systemd_unitdir}/system | ||
64 | install -m 0644 ${WORKDIR}/qdbd.service ${D}${systemd_unitdir}/system/ | ||
65 | |||
66 | install -m 0755 -d ${D}${sysconfdir}/default | ||
67 | install -m 0644 ${WORKDIR}/defaults ${D}${sysconfdir}/default/qdbd | ||
68 | } | ||
69 | |||
70 | SYSTEMD_SERVICE_${PN} = "qdbd.service" | ||
71 | |||
72 | inherit systemd | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/b2qt-gadget-network.sh b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/b2qt-gadget-network.sh new file mode 100755 index 0000000..3161db7 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/b2qt-gadget-network.sh | |||
@@ -0,0 +1,103 @@ | |||
1 | #!/bin/sh | ||
2 | ############################################################################ | ||
3 | ## | ||
4 | ## Copyright (C) 2017 The Qt Company Ltd. | ||
5 | ## Contact: https://www.qt.io/licensing/ | ||
6 | ## | ||
7 | ## This file is part of the Boot to Qt meta layer. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE:GPL$ | ||
10 | ## Commercial License Usage | ||
11 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
12 | ## accordance with the commercial license agreement provided with the | ||
13 | ## Software or, alternatively, in accordance with the terms contained in | ||
14 | ## a written agreement between you and The Qt Company. For licensing terms | ||
15 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
16 | ## information use the contact form at https://www.qt.io/contact-us. | ||
17 | ## | ||
18 | ## GNU General Public License Usage | ||
19 | ## Alternatively, this file may be used under the terms of the GNU | ||
20 | ## General Public License version 3 or (at your option) any later version | ||
21 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
22 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
23 | ## included in the packaging of this file. Please review the following | ||
24 | ## information to ensure the GNU General Public License requirements will | ||
25 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
26 | ## | ||
27 | ## $QT_END_LICENSE$ | ||
28 | ## | ||
29 | ############################################################################ | ||
30 | |||
31 | set -e | ||
32 | |||
33 | NETWORK_UNIT=/usr/lib/systemd/network/usb-rndis.network | ||
34 | |||
35 | usage() { | ||
36 | echo "Usage: $(basename $0) --reset" | ||
37 | echo " $(basename $0) --set <network>" | ||
38 | echo | ||
39 | echo "Network is given as the device IPv4 address followed by the prefix length." | ||
40 | echo "For example \"192.168.0.1/24\"." | ||
41 | exit 1 | ||
42 | } | ||
43 | |||
44 | while test -n "$1"; do | ||
45 | case "$1" in | ||
46 | "help" | "--help" | "-h") | ||
47 | usage | ||
48 | exit 0 | ||
49 | ;; | ||
50 | "--reset") | ||
51 | if [ -n "$COMMAND" ]; then | ||
52 | usage | ||
53 | exit 1 | ||
54 | fi | ||
55 | COMMAND="reset" | ||
56 | ;; | ||
57 | "--set") | ||
58 | if [ -n "$COMMAND" ]; then | ||
59 | usage | ||
60 | exit 1 | ||
61 | fi | ||
62 | COMMAND="set" | ||
63 | shift | ||
64 | NETWORK=$1 | ||
65 | ;; | ||
66 | esac | ||
67 | shift | ||
68 | done | ||
69 | |||
70 | if [ -z "$COMMAND" ]; then | ||
71 | usage | ||
72 | exit 1 | ||
73 | fi | ||
74 | |||
75 | case "$COMMAND" in | ||
76 | "set") | ||
77 | cat <<EOF > $NETWORK_UNIT | ||
78 | # This file is automatically written by b2qt-gadget-network.sh | ||
79 | [Match] | ||
80 | Type=gadget | ||
81 | |||
82 | [Network] | ||
83 | Address=${NETWORK} | ||
84 | DHCPServer=yes | ||
85 | |||
86 | [DHCPServer] | ||
87 | EmitDNS=no | ||
88 | EmitRouter=no | ||
89 | EOF | ||
90 | ;; | ||
91 | "reset") | ||
92 | cat <<EOF > $NETWORK_UNIT | ||
93 | # This file is automatically written by b2qt-gadget-network.sh | ||
94 | [Match] | ||
95 | Type=gadget | ||
96 | |||
97 | [Network] | ||
98 | DHCPServer=no | ||
99 | EOF | ||
100 | ;; | ||
101 | esac | ||
102 | |||
103 | systemctl restart systemd-networkd | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/defaults b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/defaults new file mode 100644 index 0000000..5ced90d --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/defaults | |||
@@ -0,0 +1,8 @@ | |||
1 | VENDOR=0xdbdb | ||
2 | PRODUCT=0x0001 | ||
3 | if [ -e /sys/class/net/eth0/address ]; then | ||
4 | SERIAL=$(hostname)-$(sed -e 's/://g' /sys/class/net/eth0/address) | ||
5 | else | ||
6 | SERIAL=$(hostname)-$(cat /etc/machine-id) | ||
7 | fi | ||
8 | export QT_HASH_SEED=0 | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh new file mode 100755 index 0000000..15981b0 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh | |||
@@ -0,0 +1,120 @@ | |||
1 | #! /bin/sh | ||
2 | ############################################################################### | ||
3 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
4 | ## Contact: http://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:BSD$ | ||
9 | ## You may use this file under the terms of the BSD license as follows: | ||
10 | ## | ||
11 | ## "Redistribution and use in source and binary forms, with or without | ||
12 | ## modification, are permitted provided that the following conditions are | ||
13 | ## met: | ||
14 | ## * Redistributions of source code must retain the above copyright | ||
15 | ## notice, this list of conditions and the following disclaimer. | ||
16 | ## * Redistributions in binary form must reproduce the above copyright | ||
17 | ## notice, this list of conditions and the following disclaimer in | ||
18 | ## the documentation and/or other materials provided with the | ||
19 | ## distribution. | ||
20 | ## * Neither the name of The Qt Company Ltd nor the names of its | ||
21 | ## contributors may be used to endorse or promote products derived | ||
22 | ## from this software without specific prior written permission. | ||
23 | ## | ||
24 | ## | ||
25 | ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
26 | ## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
27 | ## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
28 | ## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
29 | ## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
30 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
31 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
32 | ## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
33 | ## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
34 | ## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
35 | ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." | ||
36 | ## | ||
37 | ## $QT_END_LICENSE$ | ||
38 | ############################################################################### | ||
39 | MANUFACTURER="The Qt Company" | ||
40 | PRODUCT_STRING="Boot2Qt Ethernet/RNDIS connection" | ||
41 | |||
42 | DAEMON=/usr/bin/qdbd | ||
43 | CONFIGFS_PATH=/sys/kernel/config | ||
44 | |||
45 | GADGET_CONFIG=$CONFIGFS_PATH/usb_gadget/g1 | ||
46 | |||
47 | . /etc/default/qdbd | ||
48 | |||
49 | initialize_gadget() { | ||
50 | # Initialize gadget with first UDC driver | ||
51 | for driverpath in /sys/class/udc/*; do | ||
52 | drivername=`basename $driverpath` | ||
53 | echo "$drivername" > $GADGET_CONFIG/UDC | ||
54 | break | ||
55 | done | ||
56 | } | ||
57 | |||
58 | disable_gadget() { | ||
59 | echo "" > $GADGET_CONFIG/UDC | ||
60 | } | ||
61 | |||
62 | case "$1" in | ||
63 | start) | ||
64 | b2qt-gadget-network.sh --reset | ||
65 | modprobe libcomposite | ||
66 | sleep 1 | ||
67 | # Gadget configuration | ||
68 | mkdir -p $GADGET_CONFIG | ||
69 | echo $VENDOR > $GADGET_CONFIG/idVendor | ||
70 | echo $PRODUCT > $GADGET_CONFIG/idProduct | ||
71 | mkdir -p $GADGET_CONFIG/strings/0x409 | ||
72 | echo $MANUFACTURER > $GADGET_CONFIG/strings/0x409/manufacturer | ||
73 | echo $PRODUCT_STRING > $GADGET_CONFIG/strings/0x409/product | ||
74 | echo ${SERIAL:0:32} > $GADGET_CONFIG/strings/0x409/serialnumber | ||
75 | mkdir -p $GADGET_CONFIG/configs/c.1/strings/0x409 | ||
76 | echo "USB Ethernet + QDB" > $GADGET_CONFIG/configs/c.1/strings/0x409/configuration | ||
77 | mkdir -p $GADGET_CONFIG/functions/rndis.usb0 | ||
78 | mkdir -p $GADGET_CONFIG/functions/ffs.qdb | ||
79 | ln -sf $GADGET_CONFIG/functions/rndis.usb0 $GADGET_CONFIG/configs/c.1 | ||
80 | ln -sf $GADGET_CONFIG/functions/ffs.qdb $GADGET_CONFIG/configs/c.1 | ||
81 | # Function fs mountpoints | ||
82 | mkdir -p /dev/usb-ffs | ||
83 | chmod 770 /dev/usb-ffs | ||
84 | mkdir -p /dev/usb-ffs/qdb | ||
85 | chmod 770 /dev/usb-ffs/qdb | ||
86 | mount -t functionfs qdb /dev/usb-ffs/qdb -o uid=0,gid=0 | ||
87 | shift | ||
88 | start-stop-daemon --start --quiet --exec $DAEMON -- $@ & | ||
89 | sleep 1 | ||
90 | initialize_gadget | ||
91 | ;; | ||
92 | stop) | ||
93 | disable_gadget | ||
94 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
95 | sleep 1 | ||
96 | umount /dev/usb-ffs/qdb | ||
97 | rm $GADGET_CONFIG/configs/c.1/rndis.usb0 | ||
98 | rm $GADGET_CONFIG/configs/c.1/ffs.qdb | ||
99 | rmdir $GADGET_CONFIG/configs/c.1/strings/0x409 | ||
100 | rmdir $GADGET_CONFIG/configs/c.1 | ||
101 | rmdir $GADGET_CONFIG/functions/rndis.usb0 | ||
102 | rmdir $GADGET_CONFIG/functions/ffs.qdb | ||
103 | rmdir $GADGET_CONFIG/strings/0x409 | ||
104 | rmdir $GADGET_CONFIG | ||
105 | ;; | ||
106 | restart) | ||
107 | disable_gadget | ||
108 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
109 | b2qt-gadget-network.sh --reset | ||
110 | sleep 1 | ||
111 | shift | ||
112 | start-stop-daemon --start --quiet --exec $DAEMON -- $@ & | ||
113 | sleep 1 | ||
114 | initialize_gadget | ||
115 | ;; | ||
116 | *) | ||
117 | echo "Usage: $0 {start|stop|restart}" | ||
118 | exit 1 | ||
119 | esac | ||
120 | exit 0 | ||
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd.service b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd.service new file mode 100644 index 0000000..be8e701 --- /dev/null +++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=Qt Debug Bridge Daemon | ||
3 | After=basic.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=/usr/bin/qdbd-init.sh start | ||
8 | ExecStop=/usr/bin/qdbd-init.sh stop | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/installer-framework-native_3.0.1.bb b/meta-boot2qt/recipes-qt/qt5/installer-framework-native_3.0.1.bb new file mode 100644 index 0000000..5bc09c0 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/installer-framework-native_3.0.1.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2017 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Qt Installer Framework" | ||
31 | LICENSE = "The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://${QT_LICENSE};md5=80e06902b5f0e94ad0a78ee4f7fcb74b" | ||
33 | |||
34 | inherit bin_package native | ||
35 | |||
36 | do_unpack[depends] += "p7zip-native:do_populate_sysroot" | ||
37 | |||
38 | SRC_URI = "http://download.qt.io/development_releases/installer-framework/${PV}/installer-framework-build-stripped-${PV}-linux-x64.7z" | ||
39 | |||
40 | SRC_URI[md5sum] = "68b7c1f761ca0dba18f1d165d66005d6" | ||
41 | SRC_URI[sha256sum] = "c2eb769351025e0c7df2882116390fffaf958368f873a2abab99e37caee0a498" | ||
42 | |||
43 | S = "${WORKDIR}/ifw-pkg" | ||
44 | |||
45 | do_install() { | ||
46 | install -d ${D}${bindir} | ||
47 | install -m 0755 -t ${D}${bindir} ${S}/bin/* | ||
48 | } | ||
49 | |||
50 | INSANE_SKIP_${PN} += "already-stripped" | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtdeviceutilities.bb b/meta-boot2qt/recipes-qt/qt5/qtdeviceutilities.bb new file mode 100644 index 0000000..7405424 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtdeviceutilities.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Qt Device Utilities" | ||
31 | LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504" | ||
33 | |||
34 | inherit qt5-module | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | PACKAGECONFIG ??= "" | ||
38 | PACKAGECONFIG[wpasupplicant] = "CONFIG+=wpasupplicant,,wpa-supplicant" | ||
39 | |||
40 | EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS}" | ||
41 | |||
42 | SRCREV = "796fff1debaa161483515779bb68999948d48c59" | ||
43 | |||
44 | DEPENDS = "qtbase qtdeclarative qtconnectivity" | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtglesstream.bb b/meta-boot2qt/recipes-qt/qt5/qtglesstream.bb new file mode 100644 index 0000000..0f942e7 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtglesstream.bb | |||
@@ -0,0 +1,63 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2017 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "QtGlesStream" | ||
31 | LICENSE = "The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://qtglesstream.pro;md5=875f34471470b09977705aed7863e440" | ||
33 | |||
34 | inherit qt5-module | ||
35 | |||
36 | SRC_URI = " \ | ||
37 | git://codereview.qt-project.org/qt/tqtc-qtglesstream;branch=${BRANCH};protocol=ssh \ | ||
38 | " | ||
39 | |||
40 | PV = "1.0.0" | ||
41 | SRCREV = "37f98d4b7123378d1ade7beedf5c5150cd26e178" | ||
42 | BRANCH = "dev" | ||
43 | |||
44 | S = "${WORKDIR}/git" | ||
45 | |||
46 | DEPENDS = "qtbase" | ||
47 | |||
48 | do_install_append() { | ||
49 | install -m 0755 -d ${D}${includedir}/EGL | ||
50 | install -m 0755 ${S}/headers/EGL/* ${D}${includedir}/EGL | ||
51 | |||
52 | install -m 0755 -d ${D}${includedir}/GLES2 | ||
53 | install -m 0755 ${S}/headers/GLES2/* ${D}${includedir}/GLES2 | ||
54 | |||
55 | install -m 0755 -d ${D}${includedir}/GLES3 | ||
56 | install -m 0755 ${S}/headers/GLES3/* ${D}${includedir}/GLES3 | ||
57 | |||
58 | install -m 0755 -d ${D}${includedir}/KHR | ||
59 | install -m 0755 ${S}/headers/KHR/* ${D}${includedir}/KHR | ||
60 | } | ||
61 | |||
62 | # no not overwrite files from qtglesstream-dummy-client | ||
63 | do_populate_sysroot[noexec] = "1" | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtotaupdate.bb b/meta-boot2qt/recipes-qt/qt5/qtotaupdate.bb new file mode 100644 index 0000000..495598a --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtotaupdate.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2018 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Qt OTA Update module" | ||
31 | LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504" | ||
33 | |||
34 | inherit qt5-module | ||
35 | require recipes-qt/qt5/qt5-git.inc | ||
36 | |||
37 | QT_MODULE_BRANCH = "master" | ||
38 | |||
39 | SRCREV = "9a7eef1fec80e732451d501a658df9f8058a404d" | ||
40 | |||
41 | RDEPENDS_${PN} = "dracut" | ||
42 | DEPENDS = "qtbase qtdeclarative ostree" | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/custom.target b/meta-boot2qt/recipes-qt/qt5/qtsimulator/custom.target new file mode 100644 index 0000000..05b2268 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/custom.target | |||
@@ -0,0 +1,5 @@ | |||
1 | [Unit] | ||
2 | Description=Custom Target | ||
3 | Requires=multi-user.target | ||
4 | After=multi-user.target | ||
5 | AllowIsolate=yes | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator new file mode 100644 index 0000000..aa4a718 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator | |||
@@ -0,0 +1 @@ | |||
SIMULATOR_HOSTNAME=192.168.56.1 | |||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator-hostname.sh b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator-hostname.sh new file mode 100644 index 0000000..c1a6954 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator-hostname.sh | |||
@@ -0,0 +1 @@ | |||
export SIMULATOR_HOSTNAME=192.168.56.1 | |||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxy.service b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxy.service new file mode 100644 index 0000000..baf0296 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxy.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=QtSimulator Proxy Daemon | ||
3 | After=multi-user.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=/usr/bin/emulatorproxyd | ||
8 | EnvironmentFile=/etc/default/emulator | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=custom.target | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxyd.sh b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxyd.sh new file mode 100755 index 0000000..d73f1e7 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxyd.sh | |||
@@ -0,0 +1,49 @@ | |||
1 | #!/bin/sh | ||
2 | ############################################################################ | ||
3 | ## | ||
4 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
5 | ## Contact: https://www.qt.io/licensing/ | ||
6 | ## | ||
7 | ## This file is part of the Boot to Qt meta layer. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE:GPL$ | ||
10 | ## Commercial License Usage | ||
11 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
12 | ## accordance with the commercial license agreement provided with the | ||
13 | ## Software or, alternatively, in accordance with the terms contained in | ||
14 | ## a written agreement between you and The Qt Company. For licensing terms | ||
15 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
16 | ## information use the contact form at https://www.qt.io/contact-us. | ||
17 | ## | ||
18 | ## GNU General Public License Usage | ||
19 | ## Alternatively, this file may be used under the terms of the GNU | ||
20 | ## General Public License version 3 or (at your option) any later version | ||
21 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
22 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
23 | ## included in the packaging of this file. Please review the following | ||
24 | ## information to ensure the GNU General Public License requirements will | ||
25 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
26 | ## | ||
27 | ## $QT_END_LICENSE$ | ||
28 | ## | ||
29 | ############################################################################ | ||
30 | |||
31 | DAEMON=/usr/bin/emulatorproxyd | ||
32 | |||
33 | case "$1" in | ||
34 | start) | ||
35 | start-stop-daemon --start --quiet --exec $DAEMON & | ||
36 | ;; | ||
37 | stop) | ||
38 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
39 | ;; | ||
40 | restart) | ||
41 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
42 | sleep 1 | ||
43 | start-stop-daemon --start --quiet --exec $DAEMON & | ||
44 | ;; | ||
45 | *) | ||
46 | echo "Usage: $0 {start|stop|restart}" | ||
47 | exit 1 | ||
48 | esac | ||
49 | exit 0 | ||
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator_1.0.bb b/meta-boot2qt/recipes-qt/qt5/qtsimulator_1.0.bb new file mode 100644 index 0000000..c4c8d21 --- /dev/null +++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator_1.0.bb | |||
@@ -0,0 +1,74 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2017 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "QtSimulator" | ||
31 | LICENSE = "The-Qt-Company-DCLA-2.1" | ||
32 | LIC_FILES_CHKSUM = "file://src/simulator/simulatorglobal.h;md5=3daa1a609195439d0292259a74c7d615;beginline=1;endline=20" | ||
33 | |||
34 | inherit qt5-module | ||
35 | |||
36 | SRC_URI = " \ | ||
37 | git://codereview.qt-project.org/tqtc-boot2qt/qtsimulator;branch=${BRANCH};protocol=ssh \ | ||
38 | file://emulatorproxyd.sh \ | ||
39 | file://emulatorproxy.service \ | ||
40 | file://emulator-hostname.sh \ | ||
41 | file://emulator \ | ||
42 | file://custom.target \ | ||
43 | " | ||
44 | |||
45 | SRCREV = "f98633ebee7dbce79c00fbfec86537c6330e2b5f" | ||
46 | BRANCH = "master" | ||
47 | |||
48 | S = "${WORKDIR}/git" | ||
49 | |||
50 | DEPENDS = "qtbase" | ||
51 | RRECOMMENDS_${PN} += "${PN}-tools" | ||
52 | |||
53 | # Proxy daemon for QtSimulator | ||
54 | do_install_append() { | ||
55 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
56 | install -m 0755 ${WORKDIR}/emulatorproxyd.sh ${D}${sysconfdir}/init.d/ | ||
57 | |||
58 | install -m 0755 -d ${D}${systemd_unitdir}/system | ||
59 | install -m 0644 ${WORKDIR}/emulatorproxy.service ${D}${systemd_unitdir}/system/ | ||
60 | install -m 0644 ${WORKDIR}/custom.target ${D}${systemd_unitdir}/system/ | ||
61 | |||
62 | install -m 0755 -d ${D}${sysconfdir}/profile.d | ||
63 | install -m 0644 ${WORKDIR}/emulator-hostname.sh ${D}${sysconfdir}/profile.d/ | ||
64 | |||
65 | install -m 0755 -d ${D}${sysconfdir}/default | ||
66 | install -m 0644 ${WORKDIR}/emulator ${D}${sysconfdir}/default/ | ||
67 | } | ||
68 | |||
69 | INITSCRIPT_NAME = "emulatorproxyd.sh" | ||
70 | INITSCRIPT_PARAMS = "defaults 97 10" | ||
71 | |||
72 | SYSTEMD_SERVICE_${PN} = "emulatorproxy.service custom.target" | ||
73 | |||
74 | inherit update-rc.d systemd | ||