From fb5c13bbf3dd34978673be6b0b66cbef48ab7e96 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Tue, 12 Dec 2023 15:25:10 +0100 Subject: Detect Nvidia proprietary driver via drmGetVersion() This is less punishing for users with the Nvidia driver loaded but not used by Sway (e.g. for CUDA). --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index adf49c19..e65723b6 100644 --- a/meson.build +++ b/meson.build @@ -77,8 +77,7 @@ pixman = dependency('pixman-1') libevdev = dependency('libevdev') libinput = wlroots_features['libinput_backend'] ? dependency('libinput', version: '>=1.21.0') : null_dep xcb = dependency('xcb', required: get_option('xwayland')) -drm_full = dependency('libdrm') # only needed for drm_fourcc.h -drm = drm_full.partial_dependency(compile_args: true, includes: true) +drm = dependency('libdrm') libudev = wlroots_features['libinput_backend'] ? dependency('libudev') : null_dep math = cc.find_library('m') rt = cc.find_library('rt') -- cgit v1.2.3