subprojects: Add libdisplay-info dependency

This commit is contained in:
Joshua Ashton 2022-12-15 13:15:25 +00:00 committed by Joshie
parent 440f85e8d9
commit 703516c194
3 changed files with 12 additions and 1 deletions

3
.gitmodules vendored
View file

@ -7,3 +7,6 @@
[submodule "subprojects/vkroots"]
path = subprojects/vkroots
url = https://github.com/Joshua-Ashton/vkroots
[submodule "subprojects/libdisplay-info"]
path = subprojects/libdisplay-info
url = https://gitlab.freedesktop.org/emersion/libdisplay-info

View file

@ -60,6 +60,13 @@ wlroots_dep = dependency(
default_options: ['default_library=static', 'examples=false', 'xwayland=enabled', 'backends=libinput', 'renderers=[]', 'allocators=[]'],
)
displayinfo_dep = dependency(
'display-info',
version: ['>= 0.0.0', '< 0.1.0'],
fallback: ['libdisplay-info', 'di_dep'],
default_options: ['default_library=static'],
)
required_wlroots_features = ['xwayland', 'libinput_backend']
foreach feat : required_wlroots_features
if wlroots_dep.get_variable('have_' + feat) != 'true'
@ -153,7 +160,7 @@ executable(
dep_xxf86vm, dep_xres, drm_dep, wayland_server,
xkbcommon, thread_dep, sdl_dep, wlroots_dep,
vulkan_dep, liftoff_dep, dep_xtst, cap_dep, pipewire_dep, librt_dep,
stb_dep,
stb_dep, displayinfo_dep,
],
install: true,
)

@ -0,0 +1 @@
Subproject commit 8fbc366c7c56d584590db50fe5943b0f92b1f448