Move RTC_ENABLE_WIN_WGC define to the top level BUILD.gn
It was recommened to me to move this define to the top level BUILD.gn file to avoid potential issues with the define not being available where we need it. Bug: webrtc:9273 Change-Id: Id0e939a51d1e381f684a3ae970569a255f52a5bb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/214101 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Austin Orion <auorion@microsoft.com> Cr-Commit-Position: refs/heads/master@{#33661}
This commit is contained in:
4
BUILD.gn
4
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
|
||||
|
@ -576,8 +576,6 @@ rtc_library("desktop_capture_generic") {
|
||||
"win/wgc_desktop_frame.cc",
|
||||
"win/wgc_desktop_frame.h",
|
||||
]
|
||||
|
||||
defines += [ "RTC_ENABLE_WIN_WGC" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user