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