summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen/glX_proto_common.py
Commit message (Collapse)AuthorAgeFilesLines
* mapi/glapi: Use ElementTree instead of libxml2.José Fonseca2014-03-261-8/+5
| | | | | | | | | | | | | | | | | | | | | | It is quite hard to meet the dependency of the libxml2 python bindings outside Linux, and in particularly on MacOSX; whereas ElementTree is part of Python's standard library. ElementTree is more limited than libxml2: no DTD verification, defaults from DTD, or XInclude support, but none of these limitations is serious enough to justify using libxml2. In fact, it was easier to refactor the code to use ElementTree than to try to get libxml2 python bindings. In the process, gl_item_factory class was refactored so that there is one method for each kind of object to be created, as it simplifies things substantially. I confirmed that precisely the same output is generated for GL/GLX/GLES. v2: Remove m4/ax_python_module.m4 as suggested by Matt Turner. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
* glapi: Reformat python code generation scripts to use 4-space indentation.Paul Berry2012-10-101-44/+44
| | | | | | | | | | | | This brings us into accordance with the official Python style guide (http://www.python.org/dev/peps/pep-0008/#indentation). To preserve the indentation of the c code that is generated by these scripts, I've avoided re-indenting triple-quoted strings (unless those strings appear to be docstrings). Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
* glapi: Move to src/mapi/.Chia-I Wu2010-05-071-0/+95
Move glapi to src/mapi/{glapi,es1api,es2api}.