mesa/src/mapi
Andreas Boll 5d4b20267d glapi: Build glapi_gentable.c only on Darwin
Removes the public symbol _glapi_create_table_from_handle from
libGL.so.1.2.0 on all platforms except Darwin.

Since the symbol is not used on other platforms it makes sense to
build glapi_gentable.c only on Darwin.

As a side effect it accelerates the build a bit and reduces the size
of libGL.so.1.2.0 as follows:

size lib/libGL.so.1.2.0 on my system shows
   text	   data	    bss	    dec	    hex	filename
 469211	  21848	   2720	 493779	  788d3	lib/libGL.so.1.2.0 before
 420988	  11240	   2720	 434948	  6a304	lib/libGL.so.1.2.0 after

A little bit of history:

_glapi_create_table_from_handle was introduced in

commit 85937f4c0d
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Thu Jun 9 16:59:49 2011 -0700

    glapi: Add API that can create a _glapi_table from a dlfcn handle

    Example usage:

    void *handle = dlopen(opengl_library_path, RTLD_LOCAL);
    struct _glapi_table *disp = _glapi_create_table_from_handle(handle,
"gl");

    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>

and the only user in mesa was added in

commit f35913b96e
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Thu Jun 9 17:29:51 2011 -0700

    apple: Use _glapi_create_table_from_handle to initialize our
dispatch table

    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>

gl_gentable.py was also used for XQuartz in xserver 1.11 - 1.14.

v2: Fix typos in commit message
    Add missing XORG_GLAPI_OUTPUTS += \ into src/mapi/glapi/gen/Makefile.am
    Add glapi_gentable.c to EXTRA_DIST for inclusion in the release
    tarball

v3: Fix commit message: s/gl_gentable.c/glapi_gentable.c/

Reported-by: Arlie Davis <arlied@google.com>
Cc: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-01-21 15:04:02 +01:00
..
es1api ABI-check: Use more portable bash invocation. 2015-08-27 23:48:43 -07:00
es2api ABI-check: Use more portable bash invocation. 2015-08-27 23:48:43 -07:00
glapi glapi: Build glapi_gentable.c only on Darwin 2016-01-21 15:04:02 +01:00
shared-glapi Fix invalid extern "C" around header inclusion. 2015-03-05 10:21:40 -08:00
.gitignore mapi: add glapi-test and shared-glapi-test to .gitignore 2014-12-16 13:51:09 +02:00
Android.mk android: fix the building rules for Android 5.0 2015-04-22 15:53:35 +01:00
entry.c mapi: remove u_macros.h 2015-03-05 06:59:43 -07:00
entry.h mapi: remove u_compiler.h 2015-03-04 08:33:48 -07:00
entry_x86-64_tls.h glapi: Inline x86_64_current_tls(). 2015-09-01 13:23:13 -07:00
entry_x86_tls.h mapi: remove u_macros.h 2015-03-05 06:59:43 -07:00
entry_x86_tsd.h mapi: remove u_macros.h 2015-03-05 06:59:43 -07:00
Makefile.am glapi: Build glapi_gentable.c only on Darwin 2016-01-21 15:04:02 +01:00
Makefile.sources mapi: remove u_thread.h 2015-03-05 06:59:43 -07:00
mapi.c mapi: remove u_thread.h 2015-03-05 06:59:43 -07:00
mapi.h mapi: remove u_compiler.h 2015-03-04 08:33:48 -07:00
mapi_abi.py st/vega: Remove. 2015-03-04 11:01:45 +00:00
mapi_glapi.c mapi: Make _glapi_get_stub work with "gl" or "mgl" prefix. 2015-10-02 13:23:18 +01:00
mapi_tmp.h mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
stub.c mapi: Make private copies of name strings provided by client. 2015-03-23 22:17:03 +00:00
stub.h mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
table.c mapi: add new _glapi_new_nop_table() and _glapi_set_nop_handler() 2015-03-18 09:01:50 -06:00
table.h mapi: add new _glapi_new_nop_table() and _glapi_set_nop_handler() 2015-03-18 09:01:50 -06:00
u_current.c mapi: remove u_thread.h 2015-03-05 06:59:43 -07:00
u_current.h mapi: remove u_compiler.h 2015-03-04 08:33:48 -07:00
u_execmem.c mapi: remove u_thread.h 2015-03-05 06:59:43 -07:00
u_execmem.h build: Move src/mapi/mapi/* to src/mapi/ 2013-04-15 12:04:25 -07:00