summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-09-07 19:03:29 +0100
committerEmil Velikov <[email protected]>2016-10-18 17:06:18 +0100
commit4a183f4d06f800f44e8a679dc2ae60149105e1ce (patch)
treea4b496e617eb002940287146bf8645a97ed84704 /src
parent0607c5b1b051d32653f9ed91e109c08fbecfb4c1 (diff)
scons: loader: use libdrm when available
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Axel Davy <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/loader/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/loader/SConscript b/src/loader/SConscript
index d98f11e3cf6..c54e50a921c 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')