Skip to content
Permalink
Browse files

Fixed building new coreaudio driver on Mac OS X

  • Loading branch information
slouken committed Sep 15, 2016
1 parent 4209a1f commit 8c01d5886c1e11ee0ca859abaac462ed5c3ddf8f
Showing with 6 additions and 4 deletions.
  1. +3 −2 configure
  2. +3 −2 configure.in

# Set up files for the audio library
if test x$enable_audio = xyes; then
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
SUMMARY_audio="${SUMMARY_audio} coreaudio"
have_audio=yes
fi

$as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
SUMMARY_audio="${SUMMARY_audio} coreaudio"
have_audio=yes
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
fi
# Set up files for the joystick library
if test x$enable_joystick = xyes; then
@@ -3242,7 +3242,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau

# Set up files for the audio library
if test x$enable_audio = xyes; then
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
SUMMARY_audio="${SUMMARY_audio} coreaudio"
have_audio=yes
fi
@@ -3315,9 +3315,10 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
# Set up files for the audio library
if test x$enable_audio = xyes; then
AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
SUMMARY_audio="${SUMMARY_audio} coreaudio"
have_audio=yes
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
fi
# Set up files for the joystick library
if test x$enable_joystick = xyes; then

0 comments on commit 8c01d58

Please sign in to comment.