From 82f3853d69f7c8c8f72abd7fe3081043525ce4e4 Mon Sep 17 00:00:00 2001 From: Xtr126 <80520774+Xtr126@users.noreply.github.com> Date: Thu, 25 Apr 2024 23:41:12 +0530 Subject: [PATCH] refactor: embedding wlroots --- .gitignore | 1 + .gitmodules | 3 +++ meson.build | 7 ++++++- subprojects/wlroots | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 160000 subprojects/wlroots diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..357804a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.cache/ \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8c9ffd9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "subprojects/wlroots"] + path = subprojects/wlroots + url = https://gitlab.freedesktop.org/wlroots/wlroots.git diff --git a/meson.build b/meson.build index 45b3f91..e3d5362 100644 --- a/meson.build +++ b/meson.build @@ -35,7 +35,12 @@ if is_freebsd ) endif -wlroots = dependency('wlroots', version: '>= 0.17.0', fallback: ['wlroots', 'wlroots']) +wlroots_proj = subproject( + 'wlroots', + default_options: ['examples=false', 'xwayland=disabled'], +) + +wlroots = wlroots_proj.get_variable('wlroots') wayland_protos = dependency('wayland-protocols', version: '>=1.14') wayland_server = dependency('wayland-server') xkbcommon = dependency('xkbcommon') diff --git a/subprojects/wlroots b/subprojects/wlroots new file mode 160000 index 0000000..6dce6ae --- /dev/null +++ b/subprojects/wlroots @@ -0,0 +1 @@ +Subproject commit 6dce6ae2ed92544b9758b194618e21f4c97f1d6b