Exclude libsoundio from Linux build

This commit is contained in:
Cameron Gutman 2018-10-06 18:24:34 -07:00
parent 5d84ab4a47
commit 1fc63a6529
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ macx {
}
unix:!macx {
CONFIG += link_pkgconfig soundio
CONFIG += link_pkgconfig
PKGCONFIG += openssl sdl2 opus
# For libsoundio

View file

@ -1,7 +1,7 @@
#include "../session.h"
#include "renderers/renderer.h"
#ifndef Q_OS_LINUX
#ifdef HAVE_SOUNDIO
#include "renderers/soundioaudiorenderer.h"
#else
#include "renderers/sdl.h"
@ -11,7 +11,7 @@
IAudioRenderer* Session::createAudioRenderer()
{
#ifndef Q_OS_LINUX
#ifdef HAVE_SOUNDIO
return new SoundIoAudioRenderer();
#else
return new SdlAudioRenderer();