treewide: Update meson.builds for the changes in the modesetting driver

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2026-02-06 22:57:05 +02:00
committed by Enrico Weigelt
parent 0ac903f4b9
commit 0a2568ab3a
3 changed files with 4 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ symbol_test_args += join_paths(xorg_build_root, 'dixmods', 'libshadow.so')
if build_glx
symbol_test_args += join_paths(xorg_build_root, 'dixmods', 'libglx.so')
endif
if gbm_dep.found()
if build_glamor
symbol_test_args += join_paths(xorg_build_root, 'glamor_egl', 'libglamoregl.so')
endif
symbol_test_args += join_paths(xorg_build_root, 'drivers', 'video', 'modesetting', 'modesetting_drv.so')

View File

@@ -118,7 +118,7 @@ xserver_exec = executable(
subdir('dixmods')
subdir('exa')
subdir('fbdevhw')
if gbm_dep.found()
if build_glamor and gbm_dep.found()
subdir('glamor_egl')
endif
if int10 != 'false'

View File

@@ -365,10 +365,9 @@ else
build_glamor = glamor_option == 'true'
endif
gbm_dep = dependency('', required: false)
gbm_dep = dependency('gbm', version: gbm_req, required: false)
epoxy_dep = dependency('', required: false)
if build_glamor
gbm_dep = dependency('gbm', version: gbm_req, required: false)
epoxy_dep = dependency('epoxy', required: false)
endif
@@ -532,7 +531,7 @@ if not libdrm_dep.found() and libdrm_required
error('DRI requested, but LIBDRM not found')
endif
build_modesetting = libdrm_dep.found() and dri2proto_dep.found()
build_modesetting = libdrm_dep.found() and dri2proto_dep.found() and gbm_dep.found()
build_vgahw = false
if get_option('vgahw') == 'auto'