mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
I copied the code from egl_dri2.c, but the functionality was equivalent
between all the loaders other than their particular environment variables.
v2: Drop the logging function equivalent to loader_default_logger()
(requested by Eric, Emil). Move the SCons workaround across. Drop
the now-unused driGetDriverExtensions() declaration that was lost in a
rebase.
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> (v1)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v1)
26 lines
496 B
Python
26 lines
496 B
Python
Import('*')
|
|
|
|
env = env.Clone()
|
|
|
|
env.MSVC2013Compat()
|
|
|
|
env.Prepend(CPPPATH = [
|
|
'#include'
|
|
])
|
|
|
|
if env['drm']:
|
|
env.PkgUseModules('DRM')
|
|
env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
|
|
|
|
env.Append(CPPDEFINES = ['DEFAULT_DRIVER_DIR=\\"/usr/local/lib/dri\\"'])
|
|
|
|
# parse Makefile.sources
|
|
sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
|
|
|
|
libloader = env.ConvenienceLibrary(
|
|
target = 'libloader',
|
|
source = sources,
|
|
)
|
|
|
|
env.Alias('libloader', libloader)
|
|
Export('libloader')
|