Warn/error on incorrect compile settings for audio

This commit is contained in:
oldmud0 2020-05-31 21:22:54 -05:00
parent ab00005bf7
commit 012a03e961

View File

@ -39,6 +39,15 @@ contains(DEFINES, QTAUDIO) {
QT += multimedia
}
AUDIO_DEFINES = $$find(DEFINES, BASSAUDIO) $$find(DEFINES, QTAUDIO)
count(AUDIO_DEFINES, 0) {
warning("No audio system selected. Your build will not have audio.")
}
count(AUDIO_DEFINES, 2) {
error("More than one audio system selected.")
}
macx:LIBS += -framework CoreFoundation -framework Foundation -framework CoreServices