cmake: build Windows mediafoundation SDL_camera support
parent
279a650fae
commit
9a44d44cee
|
@ -2037,6 +2037,14 @@ elseif(WINDOWS)
|
|||
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")
|
||||
if(MINGW OR CYGWIN)
|
||||
sdl_pc_link_options("-mwindows")
|
||||
|
|
Loading…
Reference in New Issue