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:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user