[fix] fix C++17 WGC build with newer MSVC coroutine deprecation

This commit is contained in:
kunkundi
2026-05-25 17:37:26 +08:00
parent ce004af379
commit 82c0cbbad4
+3
View File
@@ -193,6 +193,9 @@ function setup_targets()
add_packages("libyuv")
add_deps("rd_log", "path_manager")
add_defines("CROSSDESK_WGC_PLUGIN_BUILD=1")
-- Keep the project on C++17 while C++/WinRT still falls back to
-- MSVC's deprecated experimental coroutine header.
add_defines("_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS")
add_links("windowsapp")
add_files("src/screen_capturer/windows/screen_capturer_wgc.cpp",
"src/screen_capturer/windows/wgc_session_impl.cpp",