diff options
author | Jose Fonseca <[email protected]> | 2015-11-21 21:19:57 +0000 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2015-11-21 21:20:12 +0000 |
commit | 02afbd247620bd51a5b1661ced9b01a865136484 (patch) | |
tree | 8e4c5e619ad2c9421502f82448e300e415b420bb /src | |
parent | 22aeb0c5684cec11fd8cb4a159b10edbcfe8d6ec (diff) |
scons: Conditionally use DRM module on pipe-loader.
Fixes non Linux builds.
Trivial.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/SConscript | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/SConscript b/src/gallium/auxiliary/pipe-loader/SConscript index 393b6021bee..c611fb892f8 100644 --- a/src/gallium/auxiliary/pipe-loader/SConscript +++ b/src/gallium/auxiliary/pipe-loader/SConscript @@ -17,12 +17,11 @@ env.Append(CPPDEFINES = [ source = env.ParseSourceList('Makefile.sources', 'COMMON_SOURCES') -#if HAVE_LIBDRM -source += env.ParseSourceList('Makefile.sources', 'DRM_SOURCES') +if env['HAVE_DRM']: + source += env.ParseSourceList('Makefile.sources', 'DRM_SOURCES') -env.PkgUseModules('DRM') -env.Append(LIBS = [libloader]) -#endif + env.PkgUseModules('DRM') + env.Append(LIBS = [libloader]) pipe_loader = env.ConvenienceLibrary( target = 'pipe_loader', |