summaryrefslogtreecommitdiff
path: root/sowatchd/sowatchd.pro
blob: 1353083c9d6653f6d7e76e11f57cd48b9ee223e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
TARGET = sowatchd

TEMPLATE = app

QT       += core gui dbus
CONFIG   -= app_bundle

SOURCES += main.cpp daemon.cpp daemonadaptor.cpp watchhandler.cpp
HEADERS += daemon.h daemonadaptor.h watchhandler.h

LIBS += -L$$OUT_PWD/../libsowatch/ -lsowatch
INCLUDEPATH += $$PWD/../libsowatch
DEPENDPATH += $$PWD/../libsowatch

LIBS += -L$$OUT_PWD/../libsowatchbt/ -lsowatchbt
INCLUDEPATH += $$PWD/../libsowatchbt
DEPENDPATH += $$PWD/../libsowatchbt

# Library & target paths
!isEmpty(MEEGO_VERSION_MAJOR)|maemo5 {
	QMAKE_RPATHDIR += /opt/sowatch/lib
	target.path = /opt/sowatch/bin
} else {
	target.path = /usr/bin
}
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 += daemon.xml