summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-09-07 19:03:29 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-18 17:06:18 +0100
commit4a183f4d06f800f44e8a679dc2ae60149105e1ce (patch)
treea4b496e617eb002940287146bf8645a97ed84704
parent0607c5b1b051d32653f9ed91e109c08fbecfb4c1 (diff)
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>
-rw-r--r--src/loader/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/loader/SConscript b/src/loader/SConscript
index d98f11e3cf..c54e50a921 100644
--- a/src/loader/SConscript
+++ b/src/loader/SConscript
@@ -12,6 +12,10 @@ if env['udev']:
env.PkgUseModules('UDEV')
env.Append(CPPDEFINES = ['HAVE_LIBUDEV'])
+if env['drm']:
+ env.PkgUseModules('DRM')
+ env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
+
# parse Makefile.sources
sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')