Commit fd85ca3a authored by eetu's avatar eetu Committed by Eetu

[recipes-nemomobile] Add glacier-home and qtquickcontrols-nemo

parent 262eb57e
# Copyright (C) 2017 Aleksi Suomalainen <aleksi.suomalainen@protonmail.com> # Copyright (C) 2017 Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>
# Copyright (C) 2018 Eetu Kahelin <eetu.kahelin@necunos.com>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
...@@ -13,7 +14,7 @@ ...@@ -13,7 +14,7 @@
# with this program; if not, write to the Free Software Foundation, Inc., # with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
MAINTAINER = "Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>" MAINTAINER = "Eetu Kahelin <eetu.kahelin@necunos.com>"
# Distro setup # Distro setup
DISTRO = "nemophone" DISTRO = "nemophone"
......
# Copyright (C) 2016 Aleksi Suomalainen <aleksi.suomalainen@protonmail.com> # Copyright (C) 2016 Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>
# Copyright (C) 2018 Eetu Kahelin <eetu.kahelin@necunos.com>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
...@@ -13,7 +14,7 @@ ...@@ -13,7 +14,7 @@
# with this program; if not, write to the Free Software Foundation, Inc., # with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
MAINTAINER = "Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>" MAINTAINER = "Eetu Kahelin <eetu.kahelin@necunos.com>"
# Distro setup # Distro setup
DISTRO = "nemox86" DISTRO = "nemox86"
......
EGL_PLATFORM=fbdev
XDG_RUNTIME_DIR=/run/user/1000
GLACIER_NATIVEORIENTATION=1
QT_IM_MODULE=qtvirtualkeyboard
QT_QUICK_CONTROLS_STYLE=Nemo
LIPSTICK_OPTIONS="-plugin evdevtablet -platform eglfs -plugin evdevmouse evdevkeyboard"
{
"device": "/dev/dri/card0",
"outputs": [
{ "name": "Virtual1", "mode": "540x960" }
]
}
[Unit]
Description=The lipstick UI
Requires=dbus.socket
ConditionUser=!root
[Service]
Type=notify
EnvironmentFile=/usr/share/lipstick-glacier-home-qt5/nemovars.conf
EnvironmentFile=/var/lib/environment/compositor/*.conf
ExecStart=/usr/bin/lipstick $LIPSTICK_OPTIONS --systemd
TimeoutStopSec=2
Restart=always
[Install]
WantedBy=default.target
QT_QPA_PLATFORM=eglfs
QT_QPA_EGLFS_INTEGRATION=eglfs_kms
QT_IM_MODULE=qtvirtualkeyboard
QT_QPA_EGLFS_HIDECURSOR=0
QT_QPA_EGLFS_KMS_CONFIG=/var/lib/environment/compositor/kms-qemu.json
SUMMARY = "Homescreen for the Glacier UX"
HOMEPAGE = "https://github.com/nemomobile-ux/glacier-home.git"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://src/qml/MainScreen.qml;beginline=1;endline=30;md5=1a053e8b1bbb35a9b0146cf1a5775e3a"
SRC_URI = "git://source.necunos.com/nemomobile/glacier-home.git;protocol=https;branch=Qt59 \
file://lipstick.service \
file://default.conf \
"
SRC_URI_append_qemux86 = " file://qemu.conf file://kms-qemu.json"
SRCREV = "${AUTOREV}"
PR = "r2"
PV = "0.27.2+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "lipstick qtvirtualkeyboard nemo-qml-plugin-devicelock"
RDEPENDS_${PN} += "qtdeclarative-qmlplugins qtvirtualkeyboard qtquickcontrols-qmlplugins nemo-qml-plugin-contextkit qtquickcontrols-nemo qtwayland-plugins qtgraphicaleffects-qmlplugins nemo-qml-plugin-time nemo-qml-plugin-configuration libconnman-qt5 libqofono xkeyboard-config ttf-opensans nemo-qml-plugin-devicelock nemo-qml-plugin-contacts nemo-theme-glacier nemo-qml-plugin-dbus libresourceqt libngf-qt"
FILES_${PN} += "/usr/share/lipstick-glacier-home-qt5/ /usr/lib/systemd/user/ /usr/lib/systemd/user/default.target.wants/"
do_install_append() {
install -d ${D}/var/lib/environment/compositor/
install -D -m 644 ../default.conf ${D}/var/lib/environment/compositor/
if [ -f ../qemu.conf ] ; then
install -D -m 644 ../qemu.conf ${D}/var/lib/environment/compositor/
install -D -m 644 ../kms-qemu.json ${D}/var/lib/environment/compositor/
fi
install -d ${D}/usr/lib/systemd/user/
install -d ${D}/usr/lib/systemd/user/default.target.wants/
install -D -m 644 ../lipstick.service ${D}/usr/lib/systemd/user/
if [ ! -f ${D}/home/nemo/.config/systemd/user/default.target.wants/lipstick.service ]; then
ln -s /usr/lib/systemd/user/lipstick.service ${D}/usr/lib/systemd/user/default.target.wants/lipstick.service
fi
}
SUMMARY = "Glacier components for Nemomobile, based on QtQuickControls"
HOMEPAGE = "https://github.com/nemomobile/qtquickcontrols-nemo.git"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4193e7f1d47a858f6b7c0f1ee66161de"
SRC_URI = "git://source.necunos.com/nemomobile/qtquickcontrols-nemo.git;protocol=https;branch=Qt59"
SRCREV = "${AUTOREV}"
PR = "r2"
PV = "5.2.3+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qtquickcontrols libglacierapp"
RDEPENDS_${PN} += "qtquickcontrols-qmlplugins"
do_configure_prepend() {
# sed -i "s@\$\$\[QT_INSTALL_QML\]/\$\$PLUGIN_IMPORT_PATH/themes@/usr/lib/qml/QtQuick/Controls/Styles/Nemo/themes@" ${S}/src/styles/styles.pro
# sed -i "s@src examples@src@" ${S}/qtquickcontrols-nemo.pro
}
FILES_${PN} += "/usr/lib /usr/share/glacier-components"
FILES_${PN}-dbg += "/usr/lib/examples/.debug/ /usr/lib/qml/QtQuick/Controls/Nemo/.debug/ /usr/lib/qml/QtQuick/Controls/Styles/Nemo/.debug/"
FILES_${PN}-dev += "/usr/lib/mkspecs/"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment