diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2020-05-31 21:22:54 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2020-05-31 21:22:54 -0500 |
| commit | 012a03e961f91d560ceb5146b2fcfea0c73ca569 (patch) | |
| tree | 7c579d3f357779c126124f3f1c984d9010a33868 | |
| parent | ab00005bf7d4ffde047f30bad622de35e7485c51 (diff) | |
Warn/error on incorrect compile settings for audio
| -rw-r--r-- | Attorney_Online.pro | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Attorney_Online.pro b/Attorney_Online.pro index 2a47afd2..d49676ec 100644 --- a/Attorney_Online.pro +++ b/Attorney_Online.pro @@ -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 |
