Permalink
Browse files

.pro updates for linux

Enable DBUS by default and dynamically link to librt and libdl
  • Loading branch information...
Tranz5 committed Jul 30, 2014
1 parent 715a174 commit c14a327bc0e5042ae01808b604925d7f62628640
Showing with 10 additions and 5 deletions.
  1. +10 −5 HoboNickels-qt.pro
View
@@ -81,7 +81,10 @@ contains(USE_UPNP, -) {
win32:LIBS += -liphlpapi
}
-# use: qmake "USE_DBUS=1"
+# use: qmake "USE_DBUS=1" or qmake "USE_DBUS=0"
+linux:count(USE_DBUS, 0) {
+ USE_DBUS=1
+}
contains(USE_DBUS, 1) {
message(Building with DBUS (Freedesktop notifications) support)
DEFINES += USE_DBUS
@@ -404,10 +407,7 @@ windows:!contains(MINGW_THREAD_BUGFIX, 0) {
QMAKE_LIBS_QT_ENTRY = -lmingwthrd $$QMAKE_LIBS_QT_ENTRY
}
-!windows:!macx {
- DEFINES += LINUX
- LIBS += -lrt
-}
+
macx:HEADERS += src/qt/macdockiconhandler.h src/qt/macnotificationhandler.h
macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm src/qt/macnotificationhandler.mm
@@ -435,4 +435,9 @@ contains(RELEASE, 1) {
}
}
+!windows:!macx {
+ DEFINES += LINUX
+ LIBS += -lrt -ldl
+}
+
system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)

0 comments on commit c14a327

Please sign in to comment.