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