From 2e92d3381988a85b2a6dcc8d8a8d7158ace9f348 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Fri, 27 Mar 2020 15:07:32 +0000 Subject: scons: Prune out unnecessary targets. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This prunes out all targets except libgl-gdi, libgl-xlib, and svga, as suggested by Marek Olšák. libgl-xlib will be remove once I have had time to confirm no automated tests we have rely upon it. There are also a bunch of Makefile.sources which become orphaned as result, that are not taken care of in this change. v2: Prune remainders of swr support. Tested-by: Marge Bot Part-of: --- src/glx/SConscript | 137 ----------------------------------------------------- 1 file changed, 137 deletions(-) delete mode 100644 src/glx/SConscript (limited to 'src/glx') diff --git a/src/glx/SConscript b/src/glx/SConscript deleted file mode 100644 index ce25a1faa84..00000000000 --- a/src/glx/SConscript +++ /dev/null @@ -1,137 +0,0 @@ -Import('*') - -if not env['x11'] or not env['xcb'] or not env['drm']: - Return() - -from sys import executable as python_cmd - -env = env.Clone() - -env.Prepend(CPPPATH = [ - '.', # the build//glx/ directory - '#include', - '#include/GL/internal', - '#src/', - '#src/loader', - '#src/mesa', - '#src/mapi', - '#src/mapi/glapi', - #$(LIBDRM_CFLAGS) - #$(DRI2PROTO_CFLAGS) - #$(GLPROTO_CFLAGS) - #$(X11_INCLUDES) -]) - -env.Append(CPPDEFINES = [ - '_REENTRANT', -]) - -env.Prepend(LIBS = [ - libloader, - mesautil, - glapi -]) - -env.PkgUseModules('X11') -env.PkgUseModules('XCB') -env.PkgUseModules('DRM') -env.PkgUseModules('XF86VIDMODE') - -sources = [ - 'clientattrib.c', - 'clientinfo.c', - 'create_context.c', - 'compsize.c', - 'eval.c', - 'glx_error.c', - 'glxconfig.c', - 'glxcmds.c', - 'glxcurrent.c', - 'glxext.c', - 'glxextensions.c', - 'indirect_glx.c', - 'indirect.c', - 'indirect_init.c', - 'indirect_size.c', - 'indirect_window_pos.c', - 'indirect_texture_compression.c', - 'indirect_transpose_matrix.c', - 'indirect_vertex_array.c', - 'indirect_vertex_program.c', - 'pixel.c', - 'pixelstore.c', - 'query_renderer.c', - 'render2.c', - 'renderpix.c', - 'single2.c', - 'singlepix.c', - 'vertarr.c', - 'xfont.c', - 'glx_pbuffer.c', - 'glx_query.c', - 'drisw_glx.c', - 'dri_common.c', - 'dri_glx.c', - 'XF86dri.c', - 'glxhash.c', - 'dri2_glx.c', - 'dri2.c', - 'dri_common_query_renderer.c', - 'dri_common_interop.c', - #'dri3_glx.c', - 'applegl_glx.c', -] - -libgl = env.SharedLibrary( - target ='GL', - source = sources, -) - - -# Generate GLX-specific .c and .h files here. Other GL API-related -# files are used, but they're generated in mapi/glapi/gen/ since they're -# used by other targets as well. - -GLAPI = '#src/mapi/glapi/' -sources = [GLAPI + 'gen/gl_API.xml'] + env.Glob(GLAPI + 'gen/*.xml') - -env.CodeGenerate( - target = 'indirect.c', - script = GLAPI + 'gen/glX_proto_send.py', - source = sources, - command = python_cmd + ' $SCRIPT -f $SOURCE -m proto > $TARGET' - ) - -env.CodeGenerate( - target = 'indirect_size.c', - script = GLAPI + 'gen/glX_proto_size.py', - source = sources, - command = python_cmd + ' $SCRIPT -f $SOURCE -m size_c --only-set > $TARGET' -) - -env.CodeGenerate( - target = 'indirect_init.c', - script = GLAPI + 'gen/glX_proto_send.py', - source = sources, - command = python_cmd + ' $SCRIPT -f $SOURCE -m init_c > $TARGET' -) - -env.CodeGenerate( - target = 'indirect_size.h', - script = GLAPI + 'gen/glX_proto_size.py', - source = sources, - command = python_cmd + ' $SCRIPT -f $SOURCE -m size_h --only-set --header-tag _INDIRECT_SIZE_H > $TARGET' -) - -env.CodeGenerate( - target = 'indirect.h', - script = GLAPI + 'gen/glX_proto_send.py', - source = sources, - command = python_cmd + ' $SCRIPT -m init_h -f $SOURCE > $TARGET', - ) - - -libgl = env.InstallSharedLibrary(libgl, version=(1, 2)) - -env.Alias('glx', libgl) -env.Alias('libgl', libgl) -- cgit v1.2.3