Qt: Fix build if QtMultimedia is not installed

This commit is contained in:
Jeffrey Pfau 2014-12-10 19:55:48 -08:00
parent 4357fdec94
commit 295111c7e1
3 changed files with 3 additions and 7 deletions

View File

@ -5,16 +5,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "AudioProcessor.h"
#include "AudioDevice.h"
#ifdef BUILD_SDL
#include "AudioProcessorSDL.h"
#else
#include "AudioProcessorQt.h"
#endif
#include <QAudioOutput>
extern "C" {
#include "gba-thread.h"
}

View File

@ -30,7 +30,6 @@ if(NOT Qt5OpenGL_FOUND OR NOT Qt5Widgets_FOUND OR NOT OPENGL_FOUND)
endif()
set(SOURCE_FILES
AudioDevice.cpp
AudioProcessor.cpp
ConfigController.cpp
Display.cpp
@ -56,7 +55,9 @@ qt5_wrap_ui(UI_FILES
if(BUILD_SDL)
list(APPEND SOURCE_FILES AudioProcessorSDL.cpp)
elseif(Qt5Multimedia_FOUND)
list(APPEND SOURCE_FILES AudioProcessorQt.cpp)
list(APPEND SOURCE_FILES
AudioProcessorQt.cpp
AudioDevice.cpp)
else()
message(WARNING "No supported audio modules found")
set(BUILD_QT OFF PARENT_SCOPE)

View File

@ -6,7 +6,6 @@
#ifndef QGBA_WINDOW
#define QGBA_WINDOW
#include <QAudioOutput>
#include <QDateTime>
#include <QList>
#include <QMainWindow>