From: Jose Fonseca Date: Sat, 21 Nov 2015 21:19:57 +0000 (+0000) Subject: scons: Conditionally use DRM module on pipe-loader. X-Git-Tag: upstream/17.1.0~14316 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02afbd247620bd51a5b1661ced9b01a865136484;p=platform%2Fupstream%2Fmesa.git scons: Conditionally use DRM module on pipe-loader. Fixes non Linux builds. Trivial. --- diff --git a/src/gallium/auxiliary/pipe-loader/SConscript b/src/gallium/auxiliary/pipe-loader/SConscript index 393b602..c611fb8 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',