summaryrefslogtreecommitdiff
path: root/x11-wm/hyprland-devel/files/patch-system-wlroots
blob: 0f099fd8359daebd5227b93ee706d7e7594e2af0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Allow system wlroots to reduce maintenance (wlroots has tons of options)

--- meson.build.orig	2023-03-14 21:56:31 UTC
+++ meson.build
@@ -39,8 +39,8 @@ add_project_arguments(
   ],
   language: 'cpp')
 
-wlroots = subproject('wlroots', default_options: ['examples=false'])
-have_xwlr = wlroots.get_variable('features').get('xwayland')
+wlroots = dependency('wlroots', version: ['>=0.17.0', '<0.18.0'], default_options: ['examples=false'])
+have_xwlr = wlroots.get_variable(pkgconfig: 'have_xwayland', internal: 'have_xwayland') == 'true'
 xcb_dep = dependency('xcb', required: get_option('xwayland'))
 
 cmake = import('cmake')
--- src/meson.build.orig	2023-03-14 21:56:31 UTC
+++ src/meson.build
@@ -7,7 +7,7 @@ executable('Hyprland', src,
     server_protos,
     dependency('wayland-server'),
     dependency('wayland-client'),
-    wlroots.get_variable('wlroots'),
+    wlroots,
     dependency('cairo'),
     dependency('libdrm'),
     dependency('egl'),