summaryrefslogtreecommitdiff
path: root/src/mapi/glapi/SConscript
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-04-23 16:06:26 +0800
committerChia-I Wu <olv@lunarg.com>2010-05-07 10:41:11 +0800
commita73c6540d9a7f6e26d8568ba2fc522cb865f0a6c (patch)
treeedeb695b6ed24d3cb0016fbabadea48931de779f /src/mapi/glapi/SConscript
parent296adbd545b8efd38c9ed508166b2de2764a444b (diff)
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.
Diffstat (limited to 'src/mapi/glapi/SConscript')
-rw-r--r--src/mapi/glapi/SConscript12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mapi/glapi/SConscript b/src/mapi/glapi/SConscript
index 1ace2e6b2c..15c08255c3 100644
--- a/src/mapi/glapi/SConscript
+++ b/src/mapi/glapi/SConscript
@@ -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
#