-
Notifications
You must be signed in to change notification settings - Fork 17
/
main.pro
79 lines (71 loc) · 1.91 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
TEMPLATE = app
CONFIG += debug_and_release ordered
TARGET = byteicon
QT += network core gui widgets
SOURCES = main.cpp
HEADERS += main.h
RESOURCES = resources.qrc
QMAKE_CXXFLAGS += -std=c++11
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.")
}
}
CONFIG(release, debug|release) {
#This is a release build
DEFINES += QT_NO_DEBUG_OUTPUT
}
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
}
TRANSLATIONS += lang/main_ca-ES.ts \
lang/main_cs-CZ.ts \
lang/main_de-DE.ts \
lang/main_el-GR.ts \
lang/main_es-ES.ts \
lang/main_fr-FR.ts \
lang/main_hi-IN.ts \
lang/main_it-IT.ts \
lang/main_ka-GE.ts \
lang/main_pt-BR.ts \
lang/main_ro-RO.ts \
lang/main_ru.ts \
lang/main_pt-BR.ts \
lang/main_zh-CN.ts \
lang/main_he-IL.ts \
lang/main_fa-IR.ts
TRANSLATIONS_FILES =
qtPrepareTool(LRELEASE, lrelease)
for(tsfile, TRANSLATIONS) {
qmfile = $$shadowed($$tsfile)
qmfile ~= s,.ts$,.qm,
qmdir = $$dirname(qmfile)
!exists($$qmdir) {
mkpath($$qmdir) | error("Aborting.")
}
command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile
system($$command)|error("Failed to run: $$command")
TRANSLATIONS_FILES += $$qmfile
}