forked from rohieb/StratumsphereTrayIcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.pro
40 lines (37 loc) · 826 Bytes
/
main.pro
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
TEMPLATE = app
CONFIG += debug_and_release ordered
TARGET = s0trayicon
QT += network core gui
SOURCES = main.cpp
HEADERS += main.h
RESOURCES = resources.qrc
unix {
PKG = $$system(pkg-config --libs QtDBus)
contains(PKG, -lQtDBus) {
message( \
"QtDBus found, configuring with NetworkManager and Notification support")
QT += dbus
DEFINES += HAVE_DBUS
SOURCES += freedesktop-notification.cpp
HEADERS += freedesktop-notification.h
}
!contains(PKG, -lQtDBus) {
message( \
"Configuring without D-Bus. No Notification and NetworkManager support.")
}
}
win32 {
RC_FILE = res/resources.rc
}
macx {
ICON = res/s0trayicon.icns
}
macx:universal {
CONFIG += x86 ppc
}
macx:noicon {
QMAKE_INFO_PLIST = res/Info-noicon.plist
}
macx:!noicon {
QMAKE_INFO_PLIST = res/Info-icon.plist
}