mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
It has been broken since 2011 with commit c98ea26e16b(egl: Make egl_dri2 and egl_glx built-in drivers.). When the backends got merged into the main library each entry point was guarded by a _EGL_BUILT_IN_DRIVER_* define. As the define was missing, the linker kindly removed the whole of the dri2 backend, thus we did not notice any errors due to the unresolved link to xcb and friends. Cc: Chia-I Wu <olv@lunarg.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
Import('*')
|
|
|
|
|
|
if env['platform'] == 'windows':
|
|
SConscript('getopt/SConscript')
|
|
|
|
SConscript('util/SConscript')
|
|
SConscript('glsl/SConscript')
|
|
|
|
if env['hostonly']:
|
|
# We are just compiling the things necessary on the host for cross
|
|
# compilation
|
|
Return()
|
|
|
|
if env['platform'] != 'windows':
|
|
SConscript('loader/SConscript')
|
|
|
|
# When env['gles'] is set, the targets defined in mapi/glapi/SConscript are not
|
|
# used. libgl-xlib and libgl-gdi adapt themselves to use the targets defined
|
|
# in mapi/glapi-shared/SConscript. mesa/SConscript also adapts itself to
|
|
# enable OpenGL ES support.
|
|
SConscript('mapi/glapi/gen/SConscript')
|
|
SConscript('mapi/glapi/SConscript')
|
|
|
|
# Haiku C++ libGL dispatch (renderers depend on libgl)
|
|
if env['platform'] in ['haiku']:
|
|
SConscript('hgl/SConscript')
|
|
|
|
SConscript('mesa/SConscript')
|
|
|
|
if not env['embedded']:
|
|
if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'windows'):
|
|
SConscript('glx/SConscript')
|
|
if env['platform'] == 'haiku':
|
|
SConscript('egl/drivers/haiku/SConscript')
|
|
SConscript('egl/main/SConscript')
|
|
|
|
if env['gles']:
|
|
SConscript('mapi/shared-glapi/SConscript')
|
|
|
|
SConscript('gallium/SConscript')
|
|
|