xref: /aosp_15_r20/external/mesa3d/src/mesa/main/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1# Copyright © 2017 Intel Corporation
2# SPDX-License-Identifier: MIT
3
4main_dispatch_h = custom_target(
5  'dispatch.h',
6  input : [files('../../mapi/glapi/gen/gl_table.py'), gl_and_es_api_files],
7  output : 'dispatch.h',
8  command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '-m', 'remap_table'],
9  depend_files : glapi_gen_depends,
10  capture : true,
11)
12
13main_marshal_generated_h = custom_target(
14  'marshal_generated.h',
15  input : [files('../../mapi/glapi/gen/gl_marshal_h.py'), gl_and_es_api_files],
16  output : 'marshal_generated.h',
17  command : [prog_python, '@INPUT0@', '@INPUT1@', sizeof_pointer],
18  depend_files : files('../../mapi/glapi/gen/marshal_XML.py') + glapi_gen_depends,
19  capture : true,
20)
21
22main_remap_helper_h = custom_target(
23  'remap_helper.h',
24  input : [files('../../mapi/glapi/gen/remap_helper.py'), gl_and_es_api_files],
25  output : 'remap_helper.h',
26  command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
27  depend_files : glapi_gen_depends,
28  capture : true,
29)
30
31if _shader_replacement != ''
32  # shader replacement
33  shader_replacement_h = custom_target(
34    'shader_replacement.h',
35    input: [files(_shader_replacement + '/process_shaders.py')],
36    output: 'shader_replacement.h',
37    command: [prog_python, '@INPUT0@', _shader_replacement, '@OUTPUT@'],
38    build_always: true,
39  )
40endif
41