mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-11 14:08:19 +02:00
28 lines
462 B
Text
28 lines
462 B
Text
|
|
Import('*')
|
||
|
|
|
||
|
|
if not env['drm']:
|
||
|
|
Return()
|
||
|
|
|
||
|
|
env = env.Clone()
|
||
|
|
|
||
|
|
env.Prepend(CPPPATH = [
|
||
|
|
'#include'
|
||
|
|
])
|
||
|
|
|
||
|
|
env.PkgUseModules('DRM')
|
||
|
|
|
||
|
|
if env['udev']:
|
||
|
|
env.PkgUseModules('UDEV')
|
||
|
|
env.Append(CPPDEFINES = ['HAVE_LIBUDEV'])
|
||
|
|
|
||
|
|
# parse Makefile.sources
|
||
|
|
sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
|
||
|
|
|
||
|
|
libloader = env.ConvenienceLibrary(
|
||
|
|
target = 'libloader',
|
||
|
|
source = sources,
|
||
|
|
)
|
||
|
|
|
||
|
|
env.Alias('libloader', libloader)
|
||
|
|
Export('libloader')
|