es1_glapi_mapi_tmp_h = custom_target(
'es1_glapi_mapi_tmp.h',
- input : ['../mapi_abi.py', gl_and_es_api_files],
+ input : [mapi_abi_py, gl_and_es_api_files],
output : 'glapi_mapi_tmp.h',
command : [prog_python2, '@INPUT0@', '--printer', 'es1api', '@INPUT1@'],
depend_files : api_xml_files,
es2_glapi_mapi_tmp_h = custom_target(
'es2_glapi_mapi_tmp.h',
- input : ['../mapi_abi.py', gl_and_es_api_files],
+ input : [mapi_abi_py, gl_and_es_api_files],
output : 'glapi_mapi_tmp.h',
command : [prog_python2, '@INPUT0@', '--printer', 'es2api', '@INPUT1@'],
depend_files : api_xml_files,
glapi_mapi_tmp_h = custom_target(
'glapi_mapi_tmp.h',
- input : ['../../mapi_abi.py', 'gl_and_es_API.xml'],
+ input : [mapi_abi_py, 'gl_and_es_API.xml'],
output : 'glapi_mapi_tmp.h',
command : [prog_python2, '@INPUT0@', '--printer', 'glapi', '@INPUT1@'],
depend_files : glapi_gen_depends,
'u_execmem.h',
)
+mapi_abi_py = files('mapi_abi.py')
+
subdir('glapi')
if with_shared_glapi
subdir('shared-glapi')
shared_glapi_mapi_tmp_h = custom_target(
'shared_glapi_mapi_tmp.h',
- input : ['../mapi_abi.py', gl_and_es_api_files],
+ input : [mapi_abi_py, gl_and_es_api_files],
output : 'glapi_mapi_tmp.h',
command : [prog_python2, '@INPUT0@', '--printer', 'shared-glapi', '@INPUT1@'],
depend_files : api_xml_files,