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