summaryrefslogtreecommitdiff
path: root/sapd.pro
diff options
context:
space:
mode:
Diffstat (limited to 'sapd.pro')
-rw-r--r--sapd.pro31
1 files changed, 25 insertions, 6 deletions
diff --git a/sapd.pro b/sapd.pro
index ee30305..f2157d4 100644
--- a/sapd.pro
+++ b/sapd.pro
@@ -1,21 +1,36 @@
TARGET = sapd
TEMPLATE = app
-QT += core dbus
-QT -= gui
+QT += core gui dbus
CONFIG += console
-greaterThan(QT_MAJOR_VERSION, 4) {
+CONFIG += link_pkgconfig
+PKGCONFIG += openssl
+
+exists(/usr/lib/libsailfishapp.so) {
+ # Building for Jolla Sailfish, Qt5, Bluez5
+ QT += bluetooth
+ DEFINES += SAILFISH
+ DBUS_ADAPTORS += sailfish/org.freedesktop.Notifications.xml
+ SOURCES += sailfish/notificationmonitor.cpp
+ HEADERS += sailfish/notificationmonitor.h
+} else:greaterThan(QT_MAJOR_VERSION, 4) {
+ # Building for desktop, Qt5, Bluez5
QT += bluetooth
+ DEFINES += DESKTOP
+ SOURCES += hfpag.cc
+ HEADERS += hfpag.h
} else {
+ # Building for desktop, Qt4, Bluez5
CONFIG += mobility
MOBILITY += connectivity
- DEFINES += DESKTOP
+ DEFINES += DESKTOP MANUAL_SDP
SOURCES += hfpag.cc
HEADERS += hfpag.h
+ PKGCONFIG += bluez
}
-CONFIG += link_pkgconfig
-PKGCONFIG += bluez openssl
+target.path = /usr/bin
+INSTALLS += target
SOURCES += main.cc \
sapbtlistener.cc \
@@ -76,3 +91,7 @@ HEADERS += \
notificationagent.h \
notificationconn.h \
endianhelpers.h
+
+OTHER_FILES += \
+ rpm/sapd.yaml \
+ sailfish/org.freedesktop.Notifications.xml