Commit ad8ac5bb authored by Marko Saukko's avatar Marko Saukko

Use qt5 booster instead of generic one.

[boosting] Use qt5 booster instead of generic one.
[dbus] Systemd file for dbus service so we get dependencies set.
Signed-off-by: default avatarMarko Saukko <marko.saukko@jolla.com>
parent 424546d9
[D-BUS Service]
Interface=/org/nemo/transferengine
Name=org.nemo.transferengine
Exec=/usr/bin/invoker --type=generic /usr/bin/nemo-transfer-engine
Exec=/usr/bin/invoker --type=qt5 --global-syms /usr/bin/nemo-transfer-engine
SystemdService=transferengine.service
......@@ -20,6 +20,7 @@ BuildRequires: qt5-qttools-linguist
BuildRequires: qt5-qttools-qthelp-devel
BuildRequires: qt5-plugin-platform-minimal
BuildRequires: qt5-plugin-sqldriver-sqlite
BuildRequires: pkgconfig(qt5-boostable)
Requires: libnemotransferengine-qt5 = %{version}
Provides: nemo-transferengine > 0.0.19
Obsoletes: nemo-transferengine <= 0.0.19
......@@ -29,6 +30,7 @@ Obsoletes: nemo-transferengine <= 0.0.19
%files
%defattr(-,root,root,-)
%{_libdir}/systemd/user/transferengine.service
%dir %{_datadir}/nemo-transferengine
%{_bindir}/nemo-transfer-engine
%{_datadir}/dbus-1/services/org.nemo.transferengine.service
......
......@@ -30,7 +30,7 @@
#include "transferengine.h"
int main(int argc, char *argv[])
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
......
......@@ -5,6 +5,12 @@ INCLUDEPATH += . ../lib
QT += dbus sql
packagesExist(qt5-boostable) {
PKGCONFIG += qt5-boostable
} else {
warning("qt5-boostable not available; startup times will be slower")
}
equals(QT_MAJOR_VERSION, 4): LIBS += -L../lib -lnemotransferengine
equals(QT_MAJOR_VERSION, 5): LIBS += -L../lib -lnemotransferengine-qt5
......
......@@ -11,9 +11,14 @@ equals(QT_MAJOR_VERSION, 4): SUBDIRS -= src
# docs only for Qt 5
equals(QT_MAJOR_VERSION, 5): include(doc/doc.pri)
systemd.files = transferengine.service
systemd.path = /usr/lib/systemd/user/
OTHER_FILES += \
rpm/*.spec \
nemo-transfer-engine.conf \
doc/src/* \
doc/config/*
INSTALLS += systemd
[Unit]
Description=Transfer engine
After=dbus.socket booster-qt5.service
Requires=dbus.socket
[Service]
ExecStart=/usr/bin/invoker --type=qt5 --global-syms /usr/bin/nemo-transfer-engine
Type=dbus
BusName=org.nemo.transferengine
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