diff options
author | Chia-I Wu <[email protected]> | 2010-12-06 10:27:39 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-12-06 15:40:37 +0800 |
commit | 8f2a974cf2c9b6c00dfac11be4316a7d121dfbb4 (patch) | |
tree | 33f4139d4adb57568a9e020a06a696ffdb3922f2 /src/gallium/state_trackers/vega/SConscript | |
parent | 5ae4b6693a8254236435960ef84701fe405fe59b (diff) |
mapi: Rewrite mapi_abi.py to get rid of preprocessor magic.
The preprocessor magic in mapi was nothing but obfuscation. Rewrite
mapi_abi.py to generate real C code.
This commit removes the hack added in
43121f20866bb89e8dac92bd92ec85a943704b7e.
Diffstat (limited to 'src/gallium/state_trackers/vega/SConscript')
-rw-r--r-- | src/gallium/state_trackers/vega/SConscript | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/SConscript b/src/gallium/state_trackers/vega/SConscript index a62783ab18e..4900135a1c5 100644 --- a/src/gallium/state_trackers/vega/SConscript +++ b/src/gallium/state_trackers/vega/SConscript @@ -3,6 +3,8 @@ Import('*') +from sys import executable as python_cmd + env = env.Clone() env.Append(CPPPATH = [ @@ -40,10 +42,16 @@ vega_sources = [ 'mask.c', 'shader.c', 'shaders_cache.c', + 'text.c', ] -# vgapi_header must be generated first -env.Depends(vega_sources, vgapi_header) +api_tmp = env.CodeGenerate( + target = '#/src/gallium/state_trackers/vega/api_tmp.h', + script = '#src/mapi/mapi/mapi_abi.py', + source = '#src/mapi/vgapi/vgapi.csv', + command = python_cmd + ' $SCRIPT --printer vgapi --mode app $SOURCE > $TARGET' +) +env.Depends(vega_sources, api_tmp) st_vega = env.ConvenienceLibrary( target = 'st_vega', |