Skip to content

Commit bc10efe

Browse files
mtwebsterclefebvre
authored andcommitted
build/packaging: Restore Wayland support
- Restore build config options - Fix depends
1 parent db389b5 commit bc10efe

File tree

4 files changed

+68
-12
lines changed

4 files changed

+68
-12
lines changed

debian/control

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@ Build-Depends:
2525
libgles2-mesa-dev (>= 7.1~rc3-1~) | libgles2-dev,
2626
libglib2.0-dev (>= 2.61.1),
2727
libcinnamon-desktop-dev,
28+
libgbm-dev (>= 17.3) [linux-any],
29+
libgdk-pixbuf-2.0-dev | libgdk-pixbuf2.0-dev,
2830
libgraphene-1.0-dev (>= 1.9.3),
2931
libgtk-3-dev (>= 3.19.8),
3032
libgudev-1.0-dev (>= 232) [linux-any],
3133
libice-dev,
3234
libinput-dev (>= 1.7) [linux-any],
3335
libjson-glib-dev (>= 0.13.2-1~),
36+
libnvidia-egl-wayland-dev [linux-any],
3437
libpam0g-dev,
3538
libpango1.0-dev (>= 1.2.0),
3639
libpipewire-0.3-dev [linux-any] | libpipewire-0.2-dev [linux-any],
3740
libsm-dev,
3841
libstartup-notification0-dev (>= 0.7),
3942
libsystemd-dev (>= 212) [linux-any],
4043
libwacom-dev (>= 0.13) [linux-any],
44+
libwayland-dev,
4145
libxau-dev,
4246
libx11-dev,
4347
libx11-xcb-dev,
@@ -58,10 +62,14 @@ Build-Depends:
5862
libxt-dev,
5963
meson (>= 0.50),
6064
pkg-config (>= 0.22),
65+
udev [linux-any],
66+
wayland-protocols (>= 1.25) [linux-any],
6167
xauth <!nocheck>,
68+
xcvt [linux-any],
6269
xkb-data,
6370
xserver-xorg-core [linux-any],
6471
xvfb <!nocheck>,
72+
xwayland [linux-any],
6573
zenity
6674
Rules-Requires-Root: no
6775
Standards-Version: 4.5.0
@@ -153,7 +161,8 @@ Depends: gir1.2-meta-muffin-0.0 (= ${binary:Version}),
153161
libcinnamon-desktop-dev (>= 5.4),
154162
libdrm-dev,
155163
libegl1-mesa-dev,
156-
libgdk-pixbuf2.0-dev,
164+
libgbm-dev,
165+
libgdk-pixbuf-2.0-dev | libgdk-pixbuf2.0-dev,
157166
libgles2-mesa-dev (>= 7.1~rc3-1~) | libgles2-dev,
158167
libglib2.0-dev,
159168
libgraphene-1.0-dev (>= 1.9.3),

debian/rules

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@ CONFFLAGS = \
1313
-Dprofiler=false \
1414
-Dremote_desktop=false
1515

16-
ifneq ($(DEB_HOST_ARCH_OS),linux)
16+
ifeq ($(DEB_HOST_ARCH_OS),linux)
17+
CONFFLAGS += \
18+
-Degl_device=true\
19+
-Dwayland=true \
20+
-Dwayland_eglstream=true \
21+
-Dnative_backend=true
22+
else
1723
CONFFLAGS += \
1824
-Dudev=false \
1925
-Dcore_tests=false \
20-
-Dlibwacom=false
26+
-Dlibwacom=false \
27+
-Dwayland=false \
28+
-Dnative_backend=false \
29+
-Ddefault_driver=gl
2130
endif
2231

2332
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),armel armhf))

meson.build

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ if have_gles2
161161
endif
162162
endif
163163

164-
#have_wayland = get_option('wayland')
165-
have_wayland = false
164+
have_wayland = get_option('wayland')
166165

167166
if have_wayland
168167
wayland_server_dep = dependency('wayland-server', version: wayland_server_req)
@@ -182,8 +181,7 @@ if have_libgudev
182181
gudev_dep = dependency('gudev-1.0', version: gudev_req)
183182
endif
184183

185-
# have_native_backend = get_option('native_backend')
186-
have_native_backend = false
184+
have_native_backend = get_option('native_backend')
187185

188186
if have_native_backend
189187
libdrm_dep = dependency('libdrm')
@@ -210,11 +208,9 @@ if have_native_backend
210208
endif
211209
endif
212210

213-
#have_egl_device = get_option('egl_device')
214-
have_egl_device = false
211+
have_egl_device = get_option('egl_device')
215212

216-
#have_wayland_eglstream = get_option('wayland_eglstream')
217-
have_wayland_eglstream = false
213+
have_wayland_eglstream = get_option('wayland_eglstream')
218214

219215
if have_wayland_eglstream
220216
wayland_eglstream_protocols_dep = dependency('wayland-eglstream-protocols')

meson_options.txt

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,36 @@ option('glx',
3333
description: 'Enable GLX support'
3434
)
3535

36+
option('wayland',
37+
type: 'boolean',
38+
value: true,
39+
description: 'Enable Wayland support'
40+
)
41+
42+
option('native_backend',
43+
type: 'boolean',
44+
value: true,
45+
description: 'Enable the native backend'
46+
)
47+
3648
option('remote_desktop',
3749
type: 'boolean',
3850
value: true,
3951
description: 'Enable remote desktop and screen cast support'
4052
)
4153

54+
option('egl_device',
55+
type: 'boolean',
56+
value: false,
57+
description: 'Enable EGLDevice and EGLStream renderer support'
58+
)
59+
60+
option('wayland_eglstream',
61+
type: 'boolean',
62+
value: false,
63+
description: 'Enable Wayland EGLStream support client support'
64+
)
65+
4266
option('udev',
4367
type: 'boolean',
4468
value: true,
@@ -120,5 +144,23 @@ option('verbose',
120144
option('default_driver',
121145
type: 'combo',
122146
choices: ['auto', 'gl', 'gl3', 'gles2', 'nop'],
123-
value: 'gl'
147+
value: 'auto'
148+
)
149+
150+
option('xwayland_path',
151+
type: 'string',
152+
value: '',
153+
description: 'Path to Xwayland executable'
154+
)
155+
156+
option('xwayland_grab_default_access_rules',
157+
type: 'string',
158+
value: 'gnome-boxes,remote-viewer,virt-viewer,virt-manager,vinagre,vncviewer,Xephyr',
159+
description: 'Comma delimited list of applications ressources or class allowed to issue X11 grabs in Xwayland'
160+
)
161+
162+
option('xwayland_initfd',
163+
type: 'feature',
164+
value: 'auto',
165+
description: 'Whether -initfd argument is passed to Xwayland to guarantee services (e.g. gsd-xsettings) startup before applications'
124166
)

0 commit comments

Comments
 (0)