CMakeLists.txt
changeset 10349 4b978b7998aa
parent 10348 58e8745fb4e1
child 10375 9cf405a99347
equal deleted inserted replaced
10348:58e8745fb4e1 10349:4b978b7998aa
  1207   if(SDL_AUDIO)
  1207   if(SDL_AUDIO)
  1208     set(SDL_AUDIO_DRIVER_COREAUDIO 1)
  1208     set(SDL_AUDIO_DRIVER_COREAUDIO 1)
  1209     file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.m)
  1209     file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.m)
  1210     set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
  1210     set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
  1211     set(HAVE_SDL_AUDIO TRUE)
  1211     set(HAVE_SDL_AUDIO TRUE)
  1212     set(SDL_FRAMEWORK_AVFOUNDATION 1)
  1212     set(SDL_FRAMEWORK_COREAUDIO 1)
       
  1213     set(SDL_FRAMEWORK_AUDIOTOOLBOX 1)
  1213   endif()
  1214   endif()
  1214 
  1215 
  1215   if(SDL_JOYSTICK)
  1216   if(SDL_JOYSTICK)
  1216     set(SDL_JOYSTICK_IOKIT 1)
  1217     set(SDL_JOYSTICK_IOKIT 1)
  1217     file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
  1218     file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
  1276   endif()
  1277   endif()
  1277   if(SDL_FRAMEWORK_CARBON)
  1278   if(SDL_FRAMEWORK_CARBON)
  1278     find_library(CARBON_LIBRARY Carbon)
  1279     find_library(CARBON_LIBRARY Carbon)
  1279     list(APPEND EXTRA_LIBS ${CARBON_LIBRARY})
  1280     list(APPEND EXTRA_LIBS ${CARBON_LIBRARY})
  1280   endif()
  1281   endif()
  1281   if(SDL_FRAMEWORK_AVFOUNDATION)
  1282   if(SDL_FRAMEWORK_COREAUDIO)
  1282     find_library(AVFOUNDATION AVFoundation)
  1283     find_library(COREAUDIO CoreAudio)
  1283     list(APPEND EXTRA_LIBS ${AVFOUNDATION})
  1284     list(APPEND EXTRA_LIBS ${COREAUDIO})
       
  1285   endif()
       
  1286   if(SDL_FRAMEWORK_AUDIOTOOLBOX)
       
  1287     find_library(AUDIOTOOLBOX AudioToolbox)
       
  1288     list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
  1284   endif()
  1289   endif()
  1285 
  1290 
  1286   # iOS hack needed - http://code.google.com/p/ios-cmake/ ?
  1291   # iOS hack needed - http://code.google.com/p/ios-cmake/ ?
  1287   if(SDL_VIDEO)
  1292   if(SDL_VIDEO)
  1288     CheckCOCOA()
  1293     CheckCOCOA()