cmake: build Windows mediafoundation SDL_camera support

main
Anonymous Maarten 2024-02-22 07:51:41 +01:00 committed by Ryan C. Gordon
parent 279a650fae
commit 9a44d44cee
1 changed files with 8 additions and 0 deletions

View File

@ -2037,6 +2037,14 @@ elseif(WINDOWS)
endif() endif()
endif() endif()
if(SDL_CAMERA)
if(NOT WINDOWS_STORE)
set(HAVE_CAMERA TRUE)
set(SDL_CAMERA_DRIVER_MEDIAFOUNDATION 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/camera/mediafoundation/*.c")
endif()
endif()
sdl_glob_sources(SHARED "${SDL3_SOURCE_DIR}/src/core/windows/*.rc") sdl_glob_sources(SHARED "${SDL3_SOURCE_DIR}/src/core/windows/*.rc")
if(MINGW OR CYGWIN) if(MINGW OR CYGWIN)
sdl_pc_link_options("-mwindows") sdl_pc_link_options("-mwindows")