summaryrefslogtreecommitdiff
path: root/sowatchd/sowatchd.pro
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-10-17 20:54:22 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-10-17 20:54:22 +0200
commite8781ec2d43ec3f7f905e20fc76b1910e83ee0c8 (patch)
tree34a842fb825ecc14454ff044fc6af92e29b4ae10 /sowatchd/sowatchd.pro
parente42e7dca8df8d1e4966545894e2dde228f19b6f0 (diff)
downloadsowatch-e8781ec2d43ec3f7f905e20fc76b1910e83ee0c8.tar.gz
sowatch-e8781ec2d43ec3f7f905e20fc76b1910e83ee0c8.zip
Major change: sowatchd is now a QtM service
Diffstat (limited to 'sowatchd/sowatchd.pro')
-rw-r--r--sowatchd/sowatchd.pro23
1 files changed, 16 insertions, 7 deletions
diff --git a/sowatchd/sowatchd.pro b/sowatchd/sowatchd.pro
index 1e02404..af13c9e 100644
--- a/sowatchd/sowatchd.pro
+++ b/sowatchd/sowatchd.pro
@@ -9,11 +9,13 @@ TEMPLATE = app
TARGET = sowatchd
QT += core gui
-CONFIG += console
+CONFIG += mobility
CONFIG -= app_bundle
+MOBILITY += serviceframework
SOURCES += main.cpp \
- daemon.cpp
+ daemon.cpp \
+ service.cpp
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../libsowatch/release/ -lsowatch
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../libsowatch/debug/ -lsowatch
@@ -24,8 +26,9 @@ INCLUDEPATH += $$PWD/../libsowatch
DEPENDPATH += $$PWD/../libsowatch
unix {
- maemo5 {
- target.path = /opt/sowatch
+ !isEmpty(MEEGO_VERSION_MAJOR)|maemo5 {
+ QMAKE_RPATHDIR += /opt/sowatch/lib
+ target.path = /opt/sowatch/bin
} else {
target.path = /usr/bin
}
@@ -33,6 +36,12 @@ unix {
}
HEADERS += \
- daemon.h
-
-
+ daemon.h \
+ service.h \
+ global.h
+
+xml.path = /opt/sowatch/xml
+xml.files = service.xml
+dbus.path = /usr/share/dbus-1/services
+dbus.files = com.javispedro.sowatch.service.sowatch-service.service
+INSTALLS += xml dbus