glapi: fix build dependencies by putting all xml/py files into a single list

This fixes missing script dependencies that didn't trigger rebuilds when
those files were changed. To keep it simple stupid, all xml and python
files used by python scripts indirectly are now in a single global list.

All variables holding file names are also inlined, so that we use file
paths everywhere.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33634>
This commit is contained in:
Marek Olšák
2025-01-25 13:20:04 -05:00
committed by Marge Bot
parent 11364cd133
commit 3fc52ac0e0
8 changed files with 180 additions and 188 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
es2_glapi_mapi_tmp_h = custom_target(
'es2_glapi_mapi_tmp.h',
input : [glapi_gen_mapi_py, glapi_gen_gl_xml],
input : ['../new/gen_gldispatch_mapi.py', '../glapi/registry/gl.xml'],
output : 'glapi_mapi_tmp.h',
command : [prog_python, '@INPUT0@', 'glesv2', '@INPUT1@'],
depend_files : glapi_gen_mapi_deps,
depend_files : glapi_xml_py_deps,
capture : true,
)