6e1282
diff -up firefox-68.0/config/system-headers.mozbuild.firefox-pipewire firefox-68.0/config/system-headers.mozbuild
6e1282
--- firefox-68.0/config/system-headers.mozbuild.firefox-pipewire	2019-07-01 22:30:26.000000000 +0200
6e1282
+++ firefox-68.0/config/system-headers.mozbuild	2019-07-08 15:26:15.397161627 +0200
6e1282
@@ -314,6 +314,7 @@ system_headers = [
6e1282
     'Gestalt.h',
6e1282
     'getopt.h',
6e1282
     'gio/gio.h',
6e1282
+    'gio/gunixfdlist.h',
6e1282
     'glibconfig.h',
6e1282
     'glib.h',
6e1282
     'glib-object.h',
6e1282
@@ -607,6 +608,7 @@ system_headers = [
6e1282
     'Pgenerr.h',
6e1282
     'PGenErr.h',
6e1282
     'Ph.h',
6e1282
+    'pipewire/pipewire.h',
6e1282
     'pixman.h',
6e1282
     'pk11func.h',
6e1282
     'pk11pqg.h',
6e1282
diff -up firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build.firefox-pipewire firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build
6e1282
--- firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build.firefox-pipewire	2019-07-01 22:30:33.000000000 +0200
6e1282
+++ firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build	2019-07-08 15:26:15.397161627 +0200
6e1282
@@ -194,6 +194,28 @@ if CONFIG["OS_TARGET"] == "Linux":
6e1282
         "/media/webrtc/trunk/webrtc/modules/desktop_capture/window_capturer_linux.cc"
6e1282
     ]
6e1282
 
6e1282
+# PipeWire specific files
6e1282
+if CONFIG["OS_TARGET"] == "Linux":
6e1282
+
6e1282
+    DEFINES["WEBRTC_USE_PIPEWIRE"] = "1"
6e1282
+
6e1282
+    OS_LIBS += [
6e1282
+        "rt",
6e1282
+        "pipewire-0.2",
6e1282
+        "glib-2.0",
6e1282
+        "gio-2.0",
6e1282
+        "gobject-2.0"
6e1282
+    ]
6e1282
+
6e1282
+    CXXFLAGS += CONFIG['TK_CFLAGS']
6e1282
+
6e1282
+    UNIFIED_SOURCES += [
6e1282
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc",
6e1282
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc",
6e1282
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc"
6e1282
+    ]
6e1282
+
6e1282
+
6e1282
 if CONFIG["OS_TARGET"] == "NetBSD":
6e1282
 
6e1282
     DEFINES["USE_X11"] = "1"
6e1282
diff -up firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h.firefox-pipewire firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h
6e1282
--- firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h.firefox-pipewire	2019-07-08 16:42:13.936254926 +0200
6e1282
+++ firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h	2019-07-08 16:42:17.509264974 +0200
6e1282
@@ -141,7 +141,7 @@ class DesktopCaptureOptions {
6e1282
   bool disable_effects_ = true;
6e1282
   bool detect_updated_region_ = false;
6e1282
 #if defined(WEBRTC_USE_PIPEWIRE)
6e1282
-  bool allow_pipewire_ = false;
6e1282
+  bool allow_pipewire_ = true;
6e1282
 #endif
6e1282
 };
6e1282