mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-07 18:39:37 +01:00
mac: Patched to compile with CMake project.
This commit is contained in:
parent
0265d3af9b
commit
6188c33420
@ -1201,6 +1201,7 @@ elseif(APPLE)
|
|||||||
set(HAVE_SDL_AUDIO TRUE)
|
set(HAVE_SDL_AUDIO TRUE)
|
||||||
set(SDL_FRAMEWORK_COREAUDIO 1)
|
set(SDL_FRAMEWORK_COREAUDIO 1)
|
||||||
set(SDL_FRAMEWORK_AUDIOUNIT 1)
|
set(SDL_FRAMEWORK_AUDIOUNIT 1)
|
||||||
|
set(SDL_FRAMEWORK_AUDIOTOOLBOX 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(SDL_JOYSTICK)
|
if(SDL_JOYSTICK)
|
||||||
@ -1277,6 +1278,10 @@ elseif(APPLE)
|
|||||||
find_library(AUDIOUNIT AudioUnit)
|
find_library(AUDIOUNIT AudioUnit)
|
||||||
list(APPEND EXTRA_LIBS ${AUDIOUNIT})
|
list(APPEND EXTRA_LIBS ${AUDIOUNIT})
|
||||||
endif()
|
endif()
|
||||||
|
if(SDL_FRAMEWORK_AUDIOTOOLBOX)
|
||||||
|
find_library(AUDIOTOOLBOX AudioToolbox)
|
||||||
|
list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
|
||||||
|
endif()
|
||||||
|
|
||||||
# iOS hack needed - http://code.google.com/p/ios-cmake/ ?
|
# iOS hack needed - http://code.google.com/p/ios-cmake/ ?
|
||||||
if(SDL_VIDEO)
|
if(SDL_VIDEO)
|
||||||
|
Loading…
Reference in New Issue
Block a user