mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
scons: loader: use libdrm when available
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
0607c5b1b0
commit
4a183f4d06
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,10 @@ if env['udev']:
|
||||||
env.PkgUseModules('UDEV')
|
env.PkgUseModules('UDEV')
|
||||||
env.Append(CPPDEFINES = ['HAVE_LIBUDEV'])
|
env.Append(CPPDEFINES = ['HAVE_LIBUDEV'])
|
||||||
|
|
||||||
|
if env['drm']:
|
||||||
|
env.PkgUseModules('DRM')
|
||||||
|
env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
|
||||||
|
|
||||||
# parse Makefile.sources
|
# parse Makefile.sources
|
||||||
sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
|
sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue