diff --git a/BUILD.gn b/BUILD.gn index 533262e03b..75c54b4eed 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -138,6 +138,10 @@ config("common_inherited_config") { defines += [ "WEBRTC_ENABLE_AVX2" ] } + if (rtc_enable_win_wgc) { + defines += [ "RTC_ENABLE_WIN_WGC" ] + } + # Some tests need to declare their own trace event handlers. If this define is # not set, the first time TRACE_EVENT_* is called it will store the return # value for the current handler in an static variable, so that subsequent diff --git a/modules/desktop_capture/BUILD.gn b/modules/desktop_capture/BUILD.gn index 11e6cd3d8e..3f170fed32 100644 --- a/modules/desktop_capture/BUILD.gn +++ b/modules/desktop_capture/BUILD.gn @@ -576,8 +576,6 @@ rtc_library("desktop_capture_generic") { "win/wgc_desktop_frame.cc", "win/wgc_desktop_frame.h", ] - - defines += [ "RTC_ENABLE_WIN_WGC" ] } }