summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/SConscript
Commit message (Collapse)AuthorAgeFilesLines
* scons: Add support for GLES.Chia-I Wu2011-01-221-0/+5
| | | | | | | | | | | | | | | | | | GLES can be enabled by running scons with $ scons gles=yes When gles=yes is given, the build is changed in three ways. First, libmesa.a will be built with FEATURE_ES1 and FEATURE_ES2. This makes DRI drivers and libEGL support and advertise GLES support. Second, GLES libraries will be created. They are libGLESv1_CM, libGLESv2, and libglapi. Last, libGL or opengl32 will link to libglapi. This change is required as _glapi_* will be declared as __declspec(dllimport) in libmesa.a on windows. libmesa.a expects those symbols to be defined in another DLL. Due to this change to GL, GLES support is marked experimental. Note that GLES requires libxml2-python to generate some of its sources.
* mapi: Clean up sources.mk.Chia-I Wu2010-12-181-1/+1
| | | | | | Rename MAPI_GLAPI_SOURCES to MAPI_UTIL_SOURCES. Rename macro MAPI_GLAPI_CURRENT to MAPI_MODE_UTIL. Update the comments to make it clear that mapi may be used in two ways and how.
* mapi: Clean up u_current interface.Chia-I Wu2010-12-181-0/+1
| | | | | Try not to use macros to make u_current.h appear to be glapi.h. Use u_current.h to implement glapi.h instead whenever possible.
* WIN32_THREADS -> WIN32José Fonseca2010-12-021-1/+0
| | | | | | | | | Fixes nasty bug where some parts of the code didn't define WIN32_THREADS and were using the integer mutex implementation, causing even confusion to the debuggers. And there is little interest of other thread implemenation on Win32 besides Win32 threads.
* scons: Revamp how to specify targets to build.José Fonseca2010-11-011-71/+72
| | | | | | | | | | | | | | | | | | | | | | Use scons target and dependency system instead of ad-hoc options. Now is simply a matter of naming what to build. For example: scons libgl-xlib scons libgl-gdi scons graw-progs scons llvmpipe and so on. And there is also the possibility of scepcified subdirs, e.g. scons src/gallium/drivers If nothing is specified then everything will be build. There might be some rough corners over the next days. Please bare with me.
* glapi: Generate PIC objects.José Fonseca2010-05-311-1/+1
| | | | Fixes fdo 28336.
* glapi: Update SConscript for Windows.Chia-I Wu2010-05-311-5/+15
| | | | | Define macros to enable dllexport and thread support. Adjust the output path of mapi sources.
* mapi: Add mapi and share the code with glapi.Chia-I Wu2010-05-071-2/+10
| | | | | | | | | | Specifically, move all or most of glapi/glapi.c to mapi/u_current.c, glapi/glapi_execmem.c to mapi/u_execmem.c, glapi/glthread.[ch] to mapi/u_thread.[ch] and remove their dependencies on core Mesa headers.
* glapi: Move to src/mapi/.Chia-I Wu2010-05-071-0/+64
Move glapi to src/mapi/{glapi,es1api,es2api}.