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:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user