CMakeLists.txt
changeset 10348 58e8745fb4e1
parent 10329 ad0bee16b6b9
child 10349 4b978b7998aa
     1.1 --- a/CMakeLists.txt	Thu Sep 15 08:29:20 2016 -0700
     1.2 +++ b/CMakeLists.txt	Thu Sep 15 08:46:14 2016 -0700
     1.3 @@ -1206,12 +1206,10 @@
     1.4  
     1.5    if(SDL_AUDIO)
     1.6      set(SDL_AUDIO_DRIVER_COREAUDIO 1)
     1.7 -    file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.c)
     1.8 +    file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.m)
     1.9      set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
    1.10      set(HAVE_SDL_AUDIO TRUE)
    1.11 -    set(SDL_FRAMEWORK_COREAUDIO 1)
    1.12 -    set(SDL_FRAMEWORK_AUDIOUNIT 1)
    1.13 -    set(SDL_FRAMEWORK_AUDIOTOOLBOX 1)
    1.14 +    set(SDL_FRAMEWORK_AVFOUNDATION 1)
    1.15    endif()
    1.16  
    1.17    if(SDL_JOYSTICK)
    1.18 @@ -1280,17 +1278,9 @@
    1.19      find_library(CARBON_LIBRARY Carbon)
    1.20      list(APPEND EXTRA_LIBS ${CARBON_LIBRARY})
    1.21    endif()
    1.22 -  if(SDL_FRAMEWORK_COREAUDIO)
    1.23 -    find_library(COREAUDIO CoreAudio)
    1.24 -    list(APPEND EXTRA_LIBS ${COREAUDIO})
    1.25 -  endif()
    1.26 -  if(SDL_FRAMEWORK_AUDIOUNIT)
    1.27 -    find_library(AUDIOUNIT AudioUnit)
    1.28 -    list(APPEND EXTRA_LIBS ${AUDIOUNIT})
    1.29 -  endif()
    1.30 -  if(SDL_FRAMEWORK_AUDIOTOOLBOX)
    1.31 -    find_library(AUDIOTOOLBOX AudioToolbox)
    1.32 -    list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
    1.33 +  if(SDL_FRAMEWORK_AVFOUNDATION)
    1.34 +    find_library(AVFOUNDATION AVFoundation)
    1.35 +    list(APPEND EXTRA_LIBS ${AVFOUNDATION})
    1.36    endif()
    1.37  
    1.38    # iOS hack needed - http://code.google.com/p/ios-cmake/ ?