mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +00:00
cmake: build Windows mediafoundation SDL_camera support
This commit is contained in:

committed by
Ryan C. Gordon

parent
279a650fae
commit
9a44d44cee
@@ -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")
|
||||||
|
Reference in New Issue
Block a user