diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 19:15:18 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 19:15:18 +0200 |
commit | 15ac98299094f5502044fde7820bf4b05a898a83 (patch) | |
tree | 959497f9c1b6745da64c044720874318618b9033 /sowatchd/sowatchd.pro | |
parent | 4ad9e1874af29864ca8531e5ba033b85d6616639 (diff) | |
download | sowatch-15ac98299094f5502044fde7820bf4b05a898a83.tar.gz sowatch-15ac98299094f5502044fde7820bf4b05a898a83.zip |
autostart daemon on boot
Diffstat (limited to 'sowatchd/sowatchd.pro')
-rw-r--r-- | sowatchd/sowatchd.pro | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sowatchd/sowatchd.pro b/sowatchd/sowatchd.pro index 9299f05..f44acdc 100644 --- a/sowatchd/sowatchd.pro +++ b/sowatchd/sowatchd.pro @@ -5,31 +5,31 @@ TEMPLATE = app QT += core gui dbus CONFIG -= app_bundle -SOURCES += main.cpp daemon.cpp daemonadaptor.cpp \ - watchhandler.cpp -HEADERS += global.h daemon.h daemonadaptor.h \ - watchhandler.h +SOURCES += main.cpp daemon.cpp daemonadaptor.cpp watchhandler.cpp +HEADERS += global.h daemon.h daemonadaptor.h watchhandler.h LIBS += -L$$OUT_PWD/../libsowatch/ -lsowatch INCLUDEPATH += $$PWD/../libsowatch DEPENDPATH += $$PWD/../libsowatch -xml.files = service.xml -INSTALLS += xml - +# Library & target paths !isEmpty(MEEGO_VERSION_MAJOR)|maemo5 { QMAKE_RPATHDIR += /opt/sowatch/lib target.path = /opt/sowatch/bin - xml.path = /opt/sowatch/xml } else { target.path = /usr/bin - xml.path = /usr/share/sowatch/xml } INSTALLS += target +# Service files +!isEmpty(MEEGO_VERSION_MAJOR) { + service.files = sowatchd.conf + service.path = /etc/init/apps + INSTALLS += service +} + dbus.path = /usr/share/dbus-1/services dbus.files = com.javispedro.sowatch.service.sowatch-service.service INSTALLS += dbus -OTHER_FILES += scanner.xml \ - daemon.xml +OTHER_FILES += daemon.xml |