[c06dfb]: src / mumble / mumble.pro Maximize Restore History

Download this file

mumble.pro    315 lines (255 with data), 9.4 kB

  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
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
include(../mumble.pri)
DEFINES *= MUMBLE
TEMPLATE = app
QT *= network sql opengl xml svg
TARGET = mumble
HEADERS *= BanEditor.h ACLEditor.h ConfigWidget.h Log.h AudioConfigDialog.h AudioStats.h AudioInput.h AudioOutput.h CustomElements.h MainWindow.h ServerHandler.h About.h ConnectDialog.h GlobalShortcut.h TextToSpeech.h Settings.h Database.h VersionCheck.h Global.h UserModel.h Audio.h ConfigDialog.h Plugins.h LookConfig.h Overlay.h OverlayText.h SharedMemory.h AudioWizard.h ViewCert.h TextMessage.h NetworkConfig.h LCD.h Usage.h Cert.h ClientUser.h UserEdit.h Tokens.h UserView.h RichTextEditor.h UserInformation.h FileEngine.h SocketRPC.h VoiceRecorder.h VoiceRecorderDialog.h WebFetch.h
SOURCES *= BanEditor.cpp ACLEditor.cpp ConfigWidget.cpp Log.cpp AudioConfigDialog.cpp AudioStats.cpp AudioInput.cpp AudioOutput.cpp main.cpp CustomElements.cpp MainWindow.cpp ServerHandler.cpp About.cpp ConnectDialog.cpp Settings.cpp Database.cpp VersionCheck.cpp Global.cpp UserModel.cpp Audio.cpp ConfigDialog.cpp Plugins.cpp LookConfig.cpp OverlayClient.cpp OverlayConfig.cpp OverlayEditor.cpp OverlayEditorScene.cpp OverlayUser.cpp OverlayUserGroup.cpp Overlay.cpp OverlayText.cpp SharedMemory.cpp AudioWizard.cpp ViewCert.cpp Messages.cpp TextMessage.cpp GlobalShortcut.cpp NetworkConfig.cpp LCD.cpp Usage.cpp Cert.cpp ClientUser.cpp UserEdit.cpp Tokens.cpp UserView.cpp RichTextEditor.cpp UserInformation.cpp FileEngine.cpp SocketRPC.cpp VoiceRecorder.cpp VoiceRecorderDialog.cpp WebFetch.cpp
SOURCES *= smallft.cpp
DIST *= ../../icons/mumble.ico licenses.h smallft.h ../../icons/mumble.xpm murmur_pch.h mumble.plist
RESOURCES *= mumble.qrc mumble_flags.qrc
FORMS *= ConfigDialog.ui MainWindow.ui ConnectDialog.ui ConnectDialogEdit.ui BanEditor.ui ACLEditor.ui Plugins.ui Overlay.ui OverlayEditor.ui LookConfig.ui AudioInput.ui AudioOutput.ui Log.ui TextMessage.ui AudioStats.ui NetworkConfig.ui LCD.ui GlobalShortcut.ui GlobalShortcutTarget.ui Cert.ui UserEdit.ui AudioWizard.ui Tokens.ui RichTextEditor.ui RichTextEditorLink.ui UserInformation.ui VoiceRecorderDialog.ui
TRANSLATIONS = mumble_en.ts mumble_es.ts mumble_de.ts mumble_fr.ts mumble_pl.ts mumble_ru.ts mumble_cs.ts mumble_it.ts mumble_ja.ts mumble_pt_BR.ts mumble_zh_CN.ts mumble_zh_TW.ts mumble_da.ts mumble_he.ts mumble_sv.ts
PRECOMPILED_HEADER = mumble_pch.hpp
INCLUDEPATH *= ../bonjour
isEmpty(QMAKE_LRELEASE) {
QMAKE_QMAKE_BASE = $$basename(QMAKE_QMAKE)
QMAKE_LRELEASE = $$dirname(QMAKE_QMAKE)/$$replace(QMAKE_QMAKE_BASE,qmake,lrelease)
}
unix:!CONFIG(bundled-speex):system(pkg-config --atleast-version=1.2 speexdsp) {
CONFIG *= no-bundled-speex
}
CONFIG(no-crash-report) {
DEFINES *= NO_CRASH_REPORT
} else:unix:!macx {
DEFINES *= NO_CRASH_REPORT
} else {
HEADERS *= CrashReporter.h
SOURCES *= CrashReporter.cpp
}
CONFIG(no-bundled-speex) {
PKGCONFIG *= speex speexdsp
}
!CONFIG(no-bundled-speex) {
INCLUDEPATH *= ../../speex/include ../../speex/libspeex ../../speexbuild
LIBS *= -lspeex
}
unix:!CONFIG(bundled-celt):system(pkg-config --atleast-version=0.7.0 celt) {
CONFIG *= no-bundled-celt
}
CONFIG(no-bundled-celt) {
INCLUDEPATH *= /usr/include/celt
}
!CONFIG(no-bundled-celt) {
INCLUDEPATH *= ../../celt-0.7.0-src/libcelt
}
!win32 {
QMAKE_CXXFLAGS *= -Wall -Wextra
}
!win32:!macx:!CONFIG(no-dbus) {
CONFIG *= dbus
}
!CONFIG(no-g15) {
CONFIG *= g15
}
!CONFIG(no-bonjour) {
CONFIG *= bonjour
}
CONFIG(no-vorbis-recording) {
DEFINES *= NO_VORBIS_RECORDING
}
win32 {
RC_FILE = mumble.rc
HEADERS *= GlobalShortcut_win.h TaskList.h
SOURCES *= GlobalShortcut_win.cpp TextToSpeech_win.cpp Overlay_win.cpp SharedMemory_win.cpp os_win.cpp TaskList.cpp ../../overlay/HardHook.cpp ../../overlay/ods.cpp
LIBS *= -l"$$(DXSDK_DIR)Lib/x86/dxguid" -l"$$(DXSDK_DIR)Lib/x86/dinput8" -lsapi -lole32 -lws2_32 -ladvapi32 -lwintrust -ldbghelp -llibsndfile-1 -lshell32 -lshlwapi
LIBS *= -ldelayimp -delayload:speex.dll -delayload:shell32.dll
DEFINES *= WIN32
!CONFIG(no-asio) {
CONFIG *= asio
}
!CONFIG(no-directsound) {
CONFIG *= directsound
}
!CONFIG(no-wasapi) {
CONFIG *= wasapi
}
!CONFIG(no-elevation) {
CONFIG(release, debug|release) {
QMAKE_LFLAGS *= /MANIFESTUAC:\"level=\'asInvoker\' uiAccess=\'true\'\"
}
}
}
unix {
HAVE_PULSEAUDIO=$$system(pkg-config --modversion --silence-errors libpulse)
HAVE_PORTAUDIO=$$system(pkg-config --modversion --silence-errors portaudio-2.0)
!isEmpty(HAVE_PORTAUDIO):!CONFIG(no-portaudio) {
CONFIG *= portaudio
}
!isEmpty(HAVE_PULSEAUDIO):!CONFIG(no-pulseaudio) {
CONFIG -= portaudio
CONFIG *= pulseaudio
}
!CONFIG(no-bundled-speex) {
QMAKE_CFLAGS *= -I../../speex/include -I../../speexbuild
QMAKE_CXXFLAGS *= -I../../speex/include -I../../speexbuild
QMAKE_CXXFLAGS_RELEASE *= -I../../speex/include -I../../speexbuild
QMAKE_CXXFLAGS_DEBUG *= -I../../speex/include -I../../speexbuild
}
CONFIG *= link_pkgconfig
PKGCONFIG *= openssl sndfile
macx {
TARGET = Mumble
ICON = ../../icons/mumble.icns
QMAKE_INFO_PLIST = mumble.plist
QMAKE_PKGINFO_TYPEINFO = MBLE
LIBS += -framework Security -framework SecurityInterface -framework ScriptingBridge -framework ApplicationServices
HEADERS *= GlobalShortcut_macx.h ConfigDialogDelegate.h
SOURCES *= TextToSpeech_macx.cpp SharedMemory_unix.cpp GlobalShortcut_macx.mm os_macx.mm
!CONFIG(no-cocoa) {
# Link against libxar so we can inspect Mac OS X installer packages.
LIBS += -lxar
# Native feeling config dialog.
SOURCES += ConfigDialog_macx.mm ConfigDialogDelegate.mm Overlay_macx.mm
HEADERS += ConfigDialog_macx.h
} else {
SOURCES += Overlay_unix.cpp
}
# CoreAudio
LIBS += -framework CoreAudio -framework AudioUnit -framework AudioToolbox
SOURCES += CoreAudio.cpp
HEADERS += CoreAudio.h
} else {
HEADERS *= GlobalShortcut_unix.h
SOURCES *= GlobalShortcut_unix.cpp TextToSpeech_unix.cpp Overlay_unix.cpp SharedMemory_unix.cpp
PKGCONFIG *= x11
LIBS *= -lrt -lXi
!CONFIG(no-oss) {
CONFIG *= oss
}
!CONFIG(no-alsa):contains(UNAME, Linux) {
CONFIG *= alsa
}
!CONFIG(no-speechd) {
CONFIG *= speechd
}
}
}
alsa {
DEFINES *= USE_ALSA
PKGCONFIG *= alsa
HEADERS *= ALSAAudio.h
SOURCES *= ALSAAudio.cpp
}
oss {
DEFINES *= USE_OSS
HEADERS *= OSS.h
SOURCES *= OSS.cpp
INCLUDEPATH *= /usr/lib/oss/include
}
pulseaudio {
DEFINES *= USE_PULSEAUDIO
PKGCONFIG *= libpulse
HEADERS *= PulseAudio.h
SOURCES *= PulseAudio.cpp
}
portaudio {
DEFINES *= USE_PORTAUDIO
PKGCONFIG *= portaudio-2.0
HEADERS *= PAAudio.h
SOURCES *= PAAudio.cpp
}
asio {
DEFINES *= USE_ASIO
HEADERS *= ASIOInput.h
SOURCES *= ASIOInput.cpp
FORMS *= ASIOInput.ui
INCLUDEPATH *= "$$ASIO_PATH/common" "$$ASIO_PATH/host" "$$ASIO_PATH/host/pc"
}
bonjour {
DEFINES *= USE_BONJOUR
HEADERS *= ../bonjour/bonjourrecord.h ../bonjour/bonjourserviceresolver.h ../bonjour/bonjourservicebrowser.h BonjourClient.h
SOURCES *= ../bonjour/bonjourserviceresolver.cpp ../bonjour/bonjourservicebrowser.cpp BonjourClient.cpp
win32 {
INCLUDEPATH *= "$$BONJOUR_PATH/include"
QMAKE_LIBDIR *= "$$BONJOUR_PATH/lib/win32"
LIBS *= -lDNSSD
}
unix:!macx {
system(pkg-config --exists avahi-compat-libdns_sd avahi-client) {
PKGCONFIG *= avahi-compat-libdns_sd avahi-client
} else {
LIBS *= -ldns_sd
}
}
}
dbus {
DEFINES *= USE_DBUS
CONFIG *= qdbus
HEADERS *= DBus.h
SOURCES *= DBus.cpp
}
speechd {
DEFINES *= USE_SPEECHD
LIBS *= -lspeechd
}
directsound {
DEFINES *= USE_DIRECTSOUND
HEADERS *= DirectSound.h
SOURCES *= DirectSound.cpp
LIBS *= -ldsound
}
wasapi {
DEFINES *= USE_WASAPI
HEADERS *= WASAPI.h
SOURCES *= WASAPI.cpp
LIBS *= -lAVRT -delayload:AVRT.DLL
}
g15 {
DEFINES *= USE_G15
win32 {
LIBS *= -llgLcd
QMAKE_LIBDIR *= "$$G15SDK_PATH/Lib/x86"
INCLUDEPATH *= "$$G15SDK_PATH/Src"
DEFINES *= WIN32
SOURCES *= G15LCDEngine_lglcd.cpp
HEADERS *= G15LCDEngine_lglcd.h
}
unix:!macx {
SOURCES *= G15LCDEngine_unix.cpp
HEADERS *= G15LCDEngine_unix.h
LIBS *= -lg15daemon_client
}
macx {
SOURCES *= G15LCDEngine_helper.cpp
HEADERS *= G15LCDEngine_helper.h ../../g15helper/g15helper.h
}
}
CONFIG(no-update) {
DEFINES *= NO_UPDATE_CHECK
}
!CONFIG(no-embed-qt-translations) {
QT_TRANSDIR = $$[QT_INSTALL_TRANSLATIONS]/
QT_TRANSDIR = $$replace(QT_TRANSDIR,/,$${DIR_SEPARATOR})
QT_TRANSDIR = $$[QT_INSTALL_TRANSLATIONS]/
QT_TRANSDIR = $$replace(QT_TRANSDIR,/,$${DIR_SEPARATOR})
QT_TRANSLATION_FILES_SRC *= qt_de.qm qt_es.qm qt_fr.qm qt_ja.qm qt_ja_JP.qm qt_ru.qm qt_pl.qm qt_pt.qm qt_sv.qm qt_zh_CN.qm qt_zh_TW.qm
for(lang, QT_TRANSLATION_FILES_SRC):exists($$[QT_INSTALL_TRANSLATIONS]/$${lang}) {
QT_TRANSLATION_FILES *= $${lang}
}
copytrans.output = ${QMAKE_FILE_NAME}
copytrans.commands = $$QMAKE_COPY $${QT_TRANSDIR}${QMAKE_FILE_NAME} ${QMAKE_FILE_OUT}
copytrans.input = QT_TRANSLATION_FILES
copytrans.CONFIG *= no_link target_predeps
QMAKE_EXTRA_COMPILERS *= copytrans
RESOURCES *= mumble_qt.qrc
}
!CONFIG(no-embed-tango-icons) {
RESOURCES *= mumble_tango.qrc
}
lrel.output = ${QMAKE_FILE_BASE}.qm
lrel.commands = $${QMAKE_LRELEASE} ${QMAKE_FILE_NAME}
lrel.input = TRANSLATIONS
lrel.CONFIG *= no_link target_predeps
QMAKE_EXTRA_COMPILERS *= lrel
include(../../symbols.pri)