CMakeLists.txt
changeset 11335 a9f4f63b5add
parent 11326 ba4fe3686323
child 11337 d9f24e95e8ba
equal deleted inserted replaced
11334:749cb40916f2 11335:a9f4f63b5add
  1151     check_include_file(d3d11_1.h HAVE_D3D11_H)
  1151     check_include_file(d3d11_1.h HAVE_D3D11_H)
  1152     check_include_file(ddraw.h HAVE_DDRAW_H)
  1152     check_include_file(ddraw.h HAVE_DDRAW_H)
  1153     check_include_file(dsound.h HAVE_DSOUND_H)
  1153     check_include_file(dsound.h HAVE_DSOUND_H)
  1154     check_include_file(dinput.h HAVE_DINPUT_H)
  1154     check_include_file(dinput.h HAVE_DINPUT_H)
  1155     check_include_file(xaudio2.h HAVE_XAUDIO2_H)
  1155     check_include_file(xaudio2.h HAVE_XAUDIO2_H)
       
  1156     check_include_file(mmdeviceapi.h HAVE_MMDEVICEAPI_H)
  1156     check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
  1157     check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
  1157     check_include_file(dxgi.h HAVE_DXGI_H)
  1158     check_include_file(dxgi.h HAVE_DXGI_H)
  1158     if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
  1159     if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
  1159       set(HAVE_DIRECTX TRUE)
  1160       set(HAVE_DIRECTX TRUE)
  1160       if(NOT CMAKE_COMPILER_IS_MINGW AND NOT USE_WINSDK_DIRECTX)
  1161       if(NOT CMAKE_COMPILER_IS_MINGW AND NOT USE_WINSDK_DIRECTX)
  1182       set(SDL_AUDIO_DRIVER_XAUDIO2 1)
  1183       set(SDL_AUDIO_DRIVER_XAUDIO2 1)
  1183       file(GLOB XAUDIO2_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/xaudio2/*.c)
  1184       file(GLOB XAUDIO2_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/xaudio2/*.c)
  1184       set(SOURCE_FILES ${SOURCE_FILES} ${XAUDIO2_AUDIO_SOURCES})
  1185       set(SOURCE_FILES ${SOURCE_FILES} ${XAUDIO2_AUDIO_SOURCES})
  1185     endif()
  1186     endif()
  1186 
  1187 
  1187     if(HAVE_AUDIOCLIENT_H)
  1188     if(HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H)
  1188       set(SDL_AUDIO_DRIVER_WASAPI 1)
  1189       set(SDL_AUDIO_DRIVER_WASAPI 1)
  1189       file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)
  1190       file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)
  1190       set(SOURCE_FILES ${SOURCE_FILES} ${WASAPI_AUDIO_SOURCES})
  1191       set(SOURCE_FILES ${SOURCE_FILES} ${WASAPI_AUDIO_SOURCES})
  1191     endif()
  1192     endif()
  1192   endif()
  1193   endif()