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