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/Makefile | |
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/Makefile')
-rw-r--r-- | src/gallium/state_trackers/vega/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vega/Makefile b/src/gallium/state_trackers/vega/Makefile index deafa39aa62..7342c124c28 100644 --- a/src/gallium/state_trackers/vega/Makefile +++ b/src/gallium/state_trackers/vega/Makefile @@ -42,4 +42,10 @@ C_SOURCES = \ shader.c \ shaders_cache.c +GENERATED_SOURCES := api_tmp.h + include ../../Makefile.template + +MAPI := $(TOP)/src/mapi +api_tmp.h: $(MAPI)/mapi/mapi_abi.py $(MAPI)/vgapi/vgapi.csv + $(PYTHON2) $< --printer vgapi --mode app $(MAPI)/vgapi/vgapi.csv > $@ |