From 553093ff0fa75601dd6e26c24a4026ca0b993ea4 Mon Sep 17 00:00:00 2001 From: Dan Minor Date: Thu, 19 Nov 2020 14:14:50 +0000 Subject: [PATCH] Bug 1677715 - Regenerate moz.build files; r=ng Differential Revision: https://phabricator.services.mozilla.com/D97433 --- .../desktop_capture_generic_gn/moz.build | 51 +++++++++++++++---- third_party/libwebrtc/webrtc/moz.build | 3 -- 2 files changed, 40 insertions(+), 14 deletions(-) diff --git a/third_party/libwebrtc/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build b/third_party/libwebrtc/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build index 8df8b8b993f9..a0e116195e0e 100644 --- a/third_party/libwebrtc/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build +++ b/third_party/libwebrtc/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build @@ -5,6 +5,8 @@ ### This moz.build was AUTOMATICALLY GENERATED from a GN config, ### ### DO NOT edit it by hand. ### +if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": + CXXFLAGS += CONFIG["TK_CFLAGS"] COMPILE_FLAGS["OS_INCLUDES"] = [] AllowCompilerWarnings() @@ -25,8 +27,7 @@ LOCAL_INCLUDES += [ "/ipc/chromium/src", "/ipc/glue", "/media/libyuv/libyuv/include/", - "/third_party/libwebrtc/webrtc/", - "/third_party/pipewire" + "/third_party/libwebrtc/webrtc/" ] UNIFIED_SOURCES += [ @@ -162,7 +163,6 @@ if CONFIG["OS_TARGET"] == "Linux": DEFINES["WEBRTC_LINUX"] = True DEFINES["WEBRTC_POSIX"] = True DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["WEBRTC_USE_PIPEWIRE"] = "1" OS_LIBS += [ "rt", @@ -195,14 +195,6 @@ if CONFIG["OS_TARGET"] == "Linux": "/third_party/libwebrtc/webrtc/modules/desktop_capture/window_capturer_linux.cc" ] - CXXFLAGS += CONFIG['TK_CFLAGS'] - - UNIFIED_SOURCES += [ - "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc", - "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc", - "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc" - ] - if CONFIG["OS_TARGET"] == "NetBSD": DEFINES["USE_X11"] = "1" @@ -393,6 +385,17 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": DEFINES["DISABLE_NACL"] = True DEFINES["NO_TCMALLOC"] = True + DEFINES["WEBRTC_USE_PIPEWIRE"] = True + + LOCAL_INCLUDES += [ + "/third_party/pipewire/" + ] + + UNIFIED_SOURCES += [ + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc", + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc", + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc" + ] if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": @@ -400,6 +403,32 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": "-msse2" ] + DEFINES["WEBRTC_USE_PIPEWIRE"] = True + + LOCAL_INCLUDES += [ + "/third_party/pipewire/" + ] + + UNIFIED_SOURCES += [ + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc", + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc", + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc" + ] + +if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": + + DEFINES["WEBRTC_USE_PIPEWIRE"] = True + + LOCAL_INCLUDES += [ + "/third_party/pipewire/" + ] + + UNIFIED_SOURCES += [ + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc", + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc", + "/third_party/libwebrtc/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc" + ] + if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "NetBSD": CXXFLAGS += [ diff --git a/third_party/libwebrtc/webrtc/moz.build b/third_party/libwebrtc/webrtc/moz.build index 53af3e5786bf..295247899372 100644 --- a/third_party/libwebrtc/webrtc/moz.build +++ b/third_party/libwebrtc/webrtc/moz.build @@ -186,9 +186,6 @@ if CONFIG["OS_TARGET"] == "Linux": "/third_party/libwebrtc/webrtc/modules/video_capture/video_capture_internal_impl_gn", "/third_party/libwebrtc/webrtc/system_wrappers/cpu_features_linux_gn" ] - DIRS += [ - "/third_party/pipewire/libpipewire" - ] if CONFIG["OS_TARGET"] == "NetBSD":