diff options
author | Chia-I Wu <[email protected]> | 2010-04-26 12:56:44 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-05-07 10:41:11 +0800 |
commit | 296adbd545b8efd38c9ed508166b2de2764a444b (patch) | |
tree | b146a292769007902a0aca98cfdd9d8ce7c44b59 /src/mapi/glapi/SConscript | |
parent | 73ded0624de66bc83ae990530febb129d950d04b (diff) |
glapi: Move to src/mapi/.
Move glapi to src/mapi/{glapi,es1api,es2api}.
Diffstat (limited to 'src/mapi/glapi/SConscript')
-rw-r--r-- | src/mapi/glapi/SConscript | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/mapi/glapi/SConscript b/src/mapi/glapi/SConscript new file mode 100644 index 00000000000..1ace2e6b2cd --- /dev/null +++ b/src/mapi/glapi/SConscript @@ -0,0 +1,64 @@ +####################################################################### +# SConscript for Mesa + + +Import('*') + +if env['platform'] != 'winddk': + + env = env.Clone() + + 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', + ] + + # + # Assembly sources + # + if gcc and env['machine'] == 'x86': + env.Append(CPPDEFINES = [ + 'USE_X86_ASM', + 'USE_MMX_ASM', + 'USE_3DNOW_ASM', + 'USE_SSE_ASM', + ]) + glapi_sources += [ + 'glapi_x86.S', + ] + elif gcc and env['machine'] == 'x86_64': + env.Append(CPPDEFINES = [ + 'USE_X86_64_ASM', + ]) + glapi_sources += [ + 'glapi_x86-64.S' + ] + elif gcc and env['machine'] == 'ppc': + env.Append(CPPDEFINES = [ + 'USE_PPC_ASM', + 'USE_VMX_ASM', + ]) + glapi_sources += [ + ] + elif gcc and env['machine'] == 'sparc': + glapi_sources += [ + 'glapi_sparc.S' + ] + else: + pass + + glapi = env.ConvenienceLibrary( + target = 'glapi', + source = glapi_sources, + ) + Export('glapi') |