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
43121f2086.
This commit is contained in:
Chia-I Wu
2010-12-06 10:27:39 +08:00
parent 5ae4b6693a
commit 8f2a974cf2
13 changed files with 349 additions and 398 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ if env['platform'] != 'winddk':
target = '#src/mapi/vgapi/vgapi_tmp.h',
script = '../mapi/mapi_abi.py',
source = 'vgapi.csv',
command = python_cmd + ' $SCRIPT -i vgapi/vgapi_defines.h $SOURCE > $TARGET'
command = python_cmd + ' $SCRIPT --printer vgapi --mode lib $SOURCE > $TARGET'
)
env.Append(CPPDEFINES = [
@@ -53,4 +53,4 @@ if env['platform'] != 'winddk':
vgapi = [env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')]
Export(['vgapi', 'vgapi_header'])
Export(['vgapi'])