mapi: Add mapi and share the code with glapi.

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.
This commit is contained in:
Chia-I Wu
2010-04-23 16:06:26 +08:00
parent 296adbd545
commit a73c6540d9
19 changed files with 797 additions and 746 deletions
+10 -2
View File
@@ -8,21 +8,29 @@ if env['platform'] != 'winddk':
env = env.Clone()
env.Append(CPPDEFINES = [
'MAPI_GLAPI_CURRENT',
])
env.Append(CPPPATH = [
'#/src/mapi',
'#/src/mesa',
])
glapi_sources = [
'glapi.c',
'glapi_dispatch.c',
'glapi_entrypoint.c',
'glapi_execmem.c',
'glapi_getproc.c',
'glapi_nop.c',
'glthread.c',
]
glapi_sources += [
'../mapi/u_current.c',
'../mapi/u_execmem.c',
'../mapi/u_thread.c',
]
#
# Assembly sources
#