CMakeLists.txt
changeset 12054 e604fe493d45
parent 11943 fb7758471f13
child 12065 abc706dbb7af
     1.1 --- a/CMakeLists.txt	Sat Jun 30 20:55:51 2018 +0300
     1.2 +++ b/CMakeLists.txt	Sun Jul 01 17:01:04 2018 +0300
     1.3 @@ -328,6 +328,7 @@
     1.4  endforeach()
     1.5  set_option(VIDEO_COCOA         "Use Cocoa video driver" ${APPLE})
     1.6  set_option(DIRECTX             "Use DirectX for Windows audio/video" ${WINDOWS})
     1.7 +dep_option(WASAPI              "Use the Windows WASAPI audio driver" ON "DIRECTX" OFF)
     1.8  set_option(RENDER_D3D          "Enable the Direct3D render driver" ${WINDOWS})
     1.9  set_option(VIDEO_VIVANTE       "Use Vivante EGL video driver" ${UNIX_SYS})
    1.10  dep_option(VIDEO_VULKAN        "Enable Vulkan support" ON "ANDROID OR APPLE OR LINUX OR WINDOWS" OFF)
    1.11 @@ -1209,7 +1210,7 @@
    1.12        set(SOURCE_FILES ${SOURCE_FILES} ${DSOUND_AUDIO_SOURCES})
    1.13      endif()
    1.14  
    1.15 -    if(HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H)
    1.16 +    if(WASAPI AND HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H)
    1.17        set(SDL_AUDIO_DRIVER_WASAPI 1)
    1.18        file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)
    1.19        set(SOURCE_FILES ${SOURCE_FILES} ${WASAPI_AUDIO_SOURCES})