From 9949c02b0f814ad94a27864a5c39689f090299b6 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 23 Nov 2014 19:53:30 +0100 Subject: port to sailfish with qt 5.2 --- sapd.pro | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'sapd.pro') 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 -- cgit v1.2.3