3fc52ac0e0
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>
184 lines
5.2 KiB
Meson
184 lines
5.2 KiB
Meson
# Copyright © 2017 Intel Corporation
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
glapi_mapi_tmp_h = custom_target(
|
|
'glapi_mapi_tmp.h',
|
|
input : ['../../mapi_abi.py', 'gl_and_es_API.xml'],
|
|
output : 'glapi_mapi_tmp.h',
|
|
command : [prog_python, '@INPUT0@', '--printer', 'glapi', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
glprocs_h = custom_target(
|
|
'glprocs.h',
|
|
input : ['gl_procs.py', 'gl_and_es_API.xml'],
|
|
output : 'glprocs.h',
|
|
command : [prog_python, '@INPUT0@', '-c', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
glapitemp_h = custom_target(
|
|
'glapitemp.h',
|
|
input : ['gl_apitemp.py', 'gl_and_es_API.xml'],
|
|
output : 'glapitemp.h',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
glapitable_h = custom_target(
|
|
'glapitable.h',
|
|
input : ['gl_table.py', 'gl_and_es_API.xml'],
|
|
output : 'glapitable.h',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
glapi_gentable_c = custom_target(
|
|
'glapi_gentable.c',
|
|
input : ['gl_gentable.py', 'gl_and_es_API.xml'],
|
|
output : 'glapi_gentable.c',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_enums_c = custom_target(
|
|
'enums.c',
|
|
input : ['gl_enums.py', files('../registry/gl.xml')],
|
|
output : 'enums.c',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
capture : true,
|
|
)
|
|
|
|
main_api_exec_c = custom_target(
|
|
'api_exec_init.c',
|
|
input : ['api_exec_init.py', 'gl_and_es_API.xml'],
|
|
output : 'api_exec_init.c',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_api_exec_decl_h = custom_target(
|
|
'api_exec_decl.h',
|
|
input : ['api_exec_decl_h.py', 'gl_and_es_API.xml'],
|
|
output : 'api_exec_decl.h',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_api_save_init_h = custom_target(
|
|
'api_save_init.h',
|
|
input : ['api_save_init_h.py', 'gl_and_es_API.xml'],
|
|
output : 'api_save_init.h',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_api_save_h = custom_target(
|
|
'api_save.h',
|
|
input : ['api_save_h.py', 'gl_and_es_API.xml'],
|
|
output : 'api_save.h',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_api_beginend_init_h = custom_target(
|
|
'api_beginend_init.h',
|
|
input : ['api_beginend_init_h.py', 'gl_and_es_API.xml'],
|
|
output : 'api_beginend_init.h',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_api_hw_select_init_h = custom_target(
|
|
'api_hw_select_init.h',
|
|
input : ['api_hw_select_init_h.py', 'gl_API.xml'],
|
|
output : 'api_hw_select_init.h',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_unmarshal_table_c = custom_target(
|
|
'unmarshal_table.c',
|
|
input : ['gl_unmarshal_table.py', 'gl_and_es_API.xml'],
|
|
output : 'unmarshal_table.c',
|
|
command : [prog_python, '@INPUT0@', '@INPUT1@', sizeof_pointer],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
main_marshal_generated_c = []
|
|
foreach x : ['0', '1', '2', '3', '4', '5', '6', '7']
|
|
main_marshal_generated_c += custom_target(
|
|
'marshal_generated' + x + '.c',
|
|
input : ['gl_marshal.py', 'gl_and_es_API.xml'],
|
|
output : 'marshal_generated' + x + '.c',
|
|
command : [prog_python, '@INPUT0@', '@INPUT1@', x, '8', sizeof_pointer],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
endforeach
|
|
|
|
glx_generated = []
|
|
|
|
foreach x : [['indirect.c', 'proto'], ['indirect.h', 'init_h'], ['indirect_init.c', 'init_c']]
|
|
glx_generated += custom_target(
|
|
x[0],
|
|
input : ['glX_proto_send.py', 'gl_API.xml'],
|
|
output : x[0],
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '-m', x[1]],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
endforeach
|
|
|
|
foreach x : [['indirect_size.h', ['-m', 'size_h', '--header-tag', '_INDIRECT_SIZE_H_']],
|
|
['indirect_size.c', ['-m', 'size_c']]]
|
|
glx_generated += custom_target(
|
|
x[0],
|
|
input : ['glX_proto_size.py', 'gl_API.xml'],
|
|
output : x[0],
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '--only-set', x[1]],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
endforeach
|
|
glx_indirect_size_h = glx_generated[3]
|
|
|
|
glapi_x86_s = custom_target(
|
|
'glapi_x86.S',
|
|
input : ['gl_x86_asm.py', 'gl_and_es_API.xml'],
|
|
output : 'glapi_x86.S',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
glapi_x86_64_s = custom_target(
|
|
'glapi_x86-64.S',
|
|
input : ['gl_x86-64_asm.py', 'gl_and_es_API.xml'],
|
|
output : 'glapi_x86-64.S',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|
|
|
|
glapi_sparc_s = custom_target(
|
|
'glapi_sparc.S',
|
|
input : ['gl_SPARC_asm.py', 'gl_and_es_API.xml'],
|
|
output : 'glapi_sparc.S',
|
|
command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
|
|
depend_files : glapi_xml_py_deps,
|
|
capture : true,
|
|
)
|