Blame qtwebengine-media-system-openh264.patch

fdbce72
diff --git a/src/3rdparty/chromium/media/video/BUILD.gn b/src/3rdparty/chromium/media/video/BUILD.gn
fdbce72
index ef5c9c6c0..7e439852d 100644
fdbce72
--- a/src/3rdparty/chromium/media/video/BUILD.gn
fdbce72
+++ b/src/3rdparty/chromium/media/video/BUILD.gn
fdbce72
@@ -2,7 +2,17 @@
fdbce72
 # Use of this source code is governed by a BSD-style license that can be
fdbce72
 # found in the LICENSE file.
fdbce72
fdbce72
+import("//build/config/linux/pkg_config.gni")
fdbce72
 import("//media/media_options.gni")
fdbce72
+import("//third_party/webrtc/webrtc.gni")
fdbce72
+
fdbce72
+if (rtc_use_h264 && rtc_use_system_openh264) {
fdbce72
+  pkg_config("openh264") {
fdbce72
+    packages = [
fdbce72
+      "openh264",
fdbce72
+    ]
fdbce72
+  }
fdbce72
+}
fdbce72
fdbce72
 source_set("video") {
fdbce72
   # Do not expand the visibility here without double-checking with OWNERS, this
fdbce72
@@ -114,7 +124,12 @@ source_set("video") {
fdbce72
       "openh264_video_encoder.cc",
fdbce72
       "openh264_video_encoder.h",
fdbce72
     ]
fdbce72
-    deps += [ "//third_party/openh264:encoder" ]
fdbce72
+
fdbce72
+    if (rtc_use_system_openh264) {
fdbce72
+      configs += [":openh264"]
fdbce72
+    } else {
fdbce72
+      deps += [ "//third_party/openh264:encoder" ]
fdbce72
+    }
fdbce72
   }
fdbce72
fdbce72
   if (is_apple) {