aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gl_offsets.py
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2009-10-16 16:04:06 +0800
committerBrian Paul <[email protected]>2009-10-23 09:10:04 -0600
commit6e99e6ddbf488f6955e34ef0bc438fdcb4d90f74 (patch)
tree75831ddbde201f3ccee8a6f62a24151c66391a53 /src/mesa/glapi/gl_offsets.py
parent22884db174b9fb0736cec1c6a192f8b9a97500c1 (diff)
glapi: Always build libglapi.a.
This is made possible by making glapioffsets.h and glapidispatch.h internal headers of glapi. They should only be included indirectly through dispatch.h by mesa. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/mesa/glapi/gl_offsets.py')
-rw-r--r--src/mesa/glapi/gl_offsets.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/glapi/gl_offsets.py b/src/mesa/glapi/gl_offsets.py
index 59f8d372b0e..ca6c90ffd8e 100644
--- a/src/mesa/glapi/gl_offsets.py
+++ b/src/mesa/glapi/gl_offsets.py
@@ -43,6 +43,9 @@ class PrintGlOffsets(gl_XML.gl_print_base):
def printBody(self, api):
abi = [ "1.0", "1.1", "1.2", "GL_ARB_multitexture" ]
+ print '/* this file should not be included directly in mesa */'
+ print ''
+
functions = []
abi_functions = []
count = 0
@@ -60,7 +63,7 @@ class PrintGlOffsets(gl_XML.gl_print_base):
last_static = f.offset
print ''
- print '#if !defined(IN_DRI_DRIVER)'
+ print '#if !defined(_GLAPI_USE_REMAP_TABLE)'
print ''
for [f, index] in functions:
@@ -76,7 +79,7 @@ class PrintGlOffsets(gl_XML.gl_print_base):
print '#define _gloffset_%s driDispatchRemapTable[%s_remap_index]' % (f.name, f.name)
print ''
- print '#endif /* !defined(IN_DRI_DRIVER) */'
+ print '#endif /* !defined(_GLAPI_USE_REMAP_TABLE) */'
return