mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix build if QtMultimedia is not installed
This commit is contained in:
parent
4357fdec94
commit
295111c7e1
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#ifndef QGBA_WINDOW
|
||||
#define QGBA_WINDOW
|
||||
|
||||
#include <QAudioOutput>
|
||||
#include <QDateTime>
|
||||
#include <QList>
|
||||
#include <QMainWindow>
|
||||
|
|
Loading…
Reference in New Issue