summaryrefslogtreecommitdiff
path: root/sowatchd/sowatchd.pro
blob: 5c195c67c0f751093d2442d987f36f0c9e2009ed (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
40
41
42
43
44
45
TEMPLATE = app

TARGET = sowatchd

QT       += core gui
CONFIG   -= app_bundle

# Qt Mobility 1.2
maemo5 {
	CONFIG += mobility12
} else {
	CONFIG += mobility
}
MOBILITY += serviceframework

SOURCES += main.cpp daemon.cpp service.cpp

HEADERS += global.h daemon.h service.h

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
else:symbian: LIBS += -lsowatch
else:unix: LIBS += -L$$OUT_PWD/../libsowatch/ -lsowatch

INCLUDEPATH += $$PWD/../libsowatch
DEPENDPATH += $$PWD/../libsowatch

xml.files = service.xml
INSTALLS += xml

unix {
	!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

	dbus.path = /usr/share/dbus-1/services
	dbus.files = com.javispedro.sowatch.service.sowatch-service.service
	INSTALLS += dbus
}