Closed
Bug 1759054
Opened 3 years ago
Closed 3 years ago
Allow webrtc to be built on Wayland without X11
Categories
(Core :: Widget: Gtk, enhancement)
Tracking
()
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox100 | --- | affected |
People
(Reporter: michel, Unassigned)
Details
Building Firefox without X11 requires webrtc to be disabled (Bug 1661450). As stransky suggested (https://bugzilla.mozilla.org/show_bug.cgi?id=1661450#c63), I'm opening this new bug for allowing building with webrtc enabled.
I started trying to disable x11 flags in third_party/libwebrtc/
, the changes required are simple:
- disable
use_x11
inthird_party/libwebrtc/build/config/ui.gni
- disable
rtc_use_x11
inthird_party/libwebrtc/webrtc.gni
Then run GN=... DEPOT_TOOLS=... bash dom/media/webrtc/third_party_build/gn-configs/generate-gn-build-files.sh
to re-generate the mozilla build files.
It works, builds fine. However, I'm encountering 2 issues:
- How to use a flag from the mozilla build system (MOZ_X11) in the libwebrtc gni files (
if MOZ_X11: use_x11
andif MOZ_X11: rtc_use_x11
)? - Running
generate-gn-build-files.sh
correctly updates the mozilla build system, however the files are different when using X11 compared to when not. Is there a way to generateif CONFIG['MOZ_X11']
in the resulting moz.build files? Or would that mean add a MOZ_X11mozbuild_args
to the JSON files indom/media/webrtc/third_party_build/gn-configs
and duplicate all the files to have two versions: respectively with and without X11?
Flags: needinfo?(stransky)
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Updated•3 years ago
|
Flags: needinfo?(stransky)
You need to log in
before you can comment on or make changes to this bug.
Description
•