scons: Conditionally use DRM module on pipe-loader.
Fixes non Linux builds. Trivial.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user