CMakeLists.txt
changeset 11726 27d08f1aab80
parent 11723 bc7ca7cfa6ca
child 11762 c4900725a75a
     1.1 --- a/CMakeLists.txt	Wed Dec 06 13:48:51 2017 -0500
     1.2 +++ b/CMakeLists.txt	Wed Dec 06 12:24:32 2017 -0500
     1.3 @@ -1180,11 +1180,10 @@
     1.4      check_include_file(ddraw.h HAVE_DDRAW_H)
     1.5      check_include_file(dsound.h HAVE_DSOUND_H)
     1.6      check_include_file(dinput.h HAVE_DINPUT_H)
     1.7 -    check_include_file(xaudio2.h HAVE_XAUDIO2_H)
     1.8      check_include_file(mmdeviceapi.h HAVE_MMDEVICEAPI_H)
     1.9      check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
    1.10      check_include_file(dxgi.h HAVE_DXGI_H)
    1.11 -    if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
    1.12 +    if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H)
    1.13        set(HAVE_DIRECTX TRUE)
    1.14        if(NOT CMAKE_COMPILER_IS_MINGW AND NOT USE_WINSDK_DIRECTX)
    1.15        # TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
    1.16 @@ -1207,12 +1206,6 @@
    1.17        set(SOURCE_FILES ${SOURCE_FILES} ${DSOUND_AUDIO_SOURCES})
    1.18      endif()
    1.19  
    1.20 -    if(HAVE_XAUDIO2_H)
    1.21 -      set(SDL_AUDIO_DRIVER_XAUDIO2 1)
    1.22 -      file(GLOB XAUDIO2_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/xaudio2/*.c)
    1.23 -      set(SOURCE_FILES ${SOURCE_FILES} ${XAUDIO2_AUDIO_SOURCES})
    1.24 -    endif()
    1.25 -
    1.26      if(HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H)
    1.27        set(SDL_AUDIO_DRIVER_WASAPI 1)
    1.28        file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)