aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-03 15:35:51 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-09-01 15:51:03 -0400
commitd9523faa7677ddcd7d93197b2f928e9e54421a9b (patch)
treeafa91b081d0478243c578f3fc004126cdd7ff291
parentee6c841d47e4ec50835ed5357fc812638b8c0454 (diff)
build: add subproject fallback for wayland
-rw-r--r--meson.build13
1 files changed, 11 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 1ce9fbf4..3e33c9de 100644
--- a/meson.build
+++ b/meson.build
@@ -96,8 +96,17 @@ internal_features = {
'xcb-errors': false,
}
-wayland_server = dependency('wayland-server', version: '>=1.19')
-wayland_client = dependency('wayland-client')
+wayland_project_options = ['tests=false', 'documentation=false']
+wayland_server = dependency('wayland-server',
+ version: '>=1.19',
+ fallback: ['wayland', 'wayland_server_dep'],
+ default_options: wayland_project_options,
+)
+wayland_client = dependency('wayland-client',
+ fallback: ['wayland', 'wayland_client_dep'],
+ default_options: wayland_project_options,
+)
+
drm = dependency('libdrm', version: '>=2.4.105')
gbm = dependency('gbm', version: '>=17.1.0')
xkbcommon = dependency('xkbcommon')