summaryrefslogtreecommitdiff
path: root/sapd.pro
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-11-23 19:53:30 +0100
committerJavier <dev.git@javispedro.com>2014-11-23 19:53:30 +0100
commit9949c02b0f814ad94a27864a5c39689f090299b6 (patch)
tree90e2893d5aafc14a020754eaf72a2df99e373efb /sapd.pro
parent5244f7909e04b23fbd5706dc6bcadafba21f7600 (diff)
downloadsapd-9949c02b0f814ad94a27864a5c39689f090299b6.tar.gz
sapd-9949c02b0f814ad94a27864a5c39689f090299b6.zip
port to sailfish with qt 5.2
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