Skip to content

Commit 012a03e

Browse files
committed
Warn/error on incorrect compile settings for audio
1 parent ab00005 commit 012a03e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Attorney_Online.pro

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ contains(DEFINES, QTAUDIO) {
3939
QT += multimedia
4040
}
4141

42+
AUDIO_DEFINES = $$find(DEFINES, BASSAUDIO) $$find(DEFINES, QTAUDIO)
43+
count(AUDIO_DEFINES, 0) {
44+
warning("No audio system selected. Your build will not have audio.")
45+
}
46+
47+
count(AUDIO_DEFINES, 2) {
48+
error("More than one audio system selected.")
49+
}
50+
4251
macx:LIBS += -framework CoreFoundation -framework Foundation -framework CoreServices
4352

4453

0 commit comments

Comments
 (0)