CMakeLists.txt
changeset 10907 e64cf9261cc7
parent 10848 7764aba2f211
child 11028 25cd7fe50180
equal deleted inserted replaced
10906:66a188fbf8bf 10907:e64cf9261cc7
  1073     check_include_file(d3d11_1.h HAVE_D3D11_H)
  1073     check_include_file(d3d11_1.h HAVE_D3D11_H)
  1074     check_include_file(ddraw.h HAVE_DDRAW_H)
  1074     check_include_file(ddraw.h HAVE_DDRAW_H)
  1075     check_include_file(dsound.h HAVE_DSOUND_H)
  1075     check_include_file(dsound.h HAVE_DSOUND_H)
  1076     check_include_file(dinput.h HAVE_DINPUT_H)
  1076     check_include_file(dinput.h HAVE_DINPUT_H)
  1077     check_include_file(xaudio2.h HAVE_XAUDIO2_H)
  1077     check_include_file(xaudio2.h HAVE_XAUDIO2_H)
       
  1078     check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
  1078     check_include_file(dxgi.h HAVE_DXGI_H)
  1079     check_include_file(dxgi.h HAVE_DXGI_H)
  1079     if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
  1080     if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
  1080       set(HAVE_DIRECTX TRUE)
  1081       set(HAVE_DIRECTX TRUE)
  1081       if(NOT CMAKE_COMPILER_IS_MINGW AND NOT USE_WINSDK_DIRECTX)
  1082       if(NOT CMAKE_COMPILER_IS_MINGW AND NOT USE_WINSDK_DIRECTX)
  1082       # TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
  1083       # TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
  1101 
  1102 
  1102     if(HAVE_XAUDIO2_H)
  1103     if(HAVE_XAUDIO2_H)
  1103       set(SDL_AUDIO_DRIVER_XAUDIO2 1)
  1104       set(SDL_AUDIO_DRIVER_XAUDIO2 1)
  1104       file(GLOB XAUDIO2_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/xaudio2/*.c)
  1105       file(GLOB XAUDIO2_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/xaudio2/*.c)
  1105       set(SOURCE_FILES ${SOURCE_FILES} ${XAUDIO2_AUDIO_SOURCES})
  1106       set(SOURCE_FILES ${SOURCE_FILES} ${XAUDIO2_AUDIO_SOURCES})
       
  1107     endif()
       
  1108 
       
  1109     if(HAVE_AUDIOCLIENT_H)
       
  1110       set(SDL_AUDIO_DRIVER_WASAPI 1)
       
  1111       file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)
       
  1112       set(SOURCE_FILES ${SOURCE_FILES} ${WASAPI_AUDIO_SOURCES})
  1106     endif()
  1113     endif()
  1107   endif()
  1114   endif()
  1108 
  1115 
  1109   if(SDL_VIDEO)
  1116   if(SDL_VIDEO)
  1110     # requires SDL_LOADSO on Windows (IME, DX, etc.)
  1117     # requires SDL_LOADSO on Windows (IME, DX, etc.)