gen: Add EXT_vertex_attrib_64bit.xml to dependency lists
[mesa.git] / src / mapi / glapi / gen / meson.build
1 # Copyright © 2017 Intel Corporation
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 gl_and_es_api_files = files('gl_and_es_API.xml')
22
23 api_xml_files = files(
24 'gl_API.xml',
25 'es_EXT.xml',
26 'gl_and_es_API.xml',
27 'gl_and_glX_API.xml',
28 'ARB_base_instance.xml',
29 'ARB_blend_func_extended.xml',
30 'ARB_bindless_texture.xml',
31 'ARB_clear_buffer_object.xml',
32 'ARB_clear_texture.xml',
33 'ARB_clip_control.xml',
34 'ARB_color_buffer_float.xml',
35 'ARB_compressed_texture_pixel_storage.xml',
36 'ARB_compute_shader.xml',
37 'ARB_compute_variable_group_size.xml',
38 'ARB_copy_buffer.xml',
39 'ARB_copy_image.xml',
40 'ARB_debug_output.xml',
41 'ARB_depth_buffer_float.xml',
42 'ARB_depth_clamp.xml',
43 'ARB_direct_state_access.xml',
44 'ARB_draw_buffers.xml',
45 'ARB_draw_buffers_blend.xml',
46 'ARB_draw_elements_base_vertex.xml',
47 'ARB_draw_indirect.xml',
48 'ARB_draw_instanced.xml',
49 'ARB_ES2_compatibility.xml',
50 'ARB_ES3_compatibility.xml',
51 'ARB_framebuffer_no_attachments.xml',
52 'ARB_framebuffer_object.xml',
53 'ARB_get_program_binary.xml',
54 'ARB_get_texture_sub_image.xml',
55 'ARB_gl_spirv.xml',
56 'ARB_gpu_shader_fp64.xml',
57 'ARB_gpu_shader_int64.xml',
58 'ARB_gpu_shader5.xml',
59 'ARB_indirect_parameters.xml',
60 'ARB_instanced_arrays.xml',
61 'ARB_internalformat_query.xml',
62 'ARB_internalformat_query2.xml',
63 'ARB_invalidate_subdata.xml',
64 'ARB_map_buffer_range.xml',
65 'ARB_multi_bind.xml',
66 'ARB_pipeline_statistics_query.xml',
67 'ARB_program_interface_query.xml',
68 'ARB_robustness.xml',
69 'ARB_sample_shading.xml',
70 'ARB_sampler_objects.xml',
71 'ARB_seamless_cube_map.xml',
72 'ARB_separate_shader_objects.xml',
73 'ARB_shader_atomic_counters.xml',
74 'ARB_shader_image_load_store.xml',
75 'ARB_shader_subroutine.xml',
76 'ARB_shader_storage_buffer_object.xml',
77 'ARB_sparse_buffer.xml',
78 'ARB_sync.xml',
79 'ARB_tessellation_shader.xml',
80 'ARB_texture_barrier.xml',
81 'ARB_texture_buffer_object.xml',
82 'ARB_texture_buffer_range.xml',
83 'ARB_texture_compression_rgtc.xml',
84 'ARB_texture_cube_map_array.xml',
85 'ARB_texture_float.xml',
86 'ARB_texture_gather.xml',
87 'ARB_texture_multisample.xml',
88 'ARB_texture_rgb10_a2ui.xml',
89 'ARB_texture_rg.xml',
90 'ARB_texture_storage_multisample.xml',
91 'ARB_texture_storage.xml',
92 'ARB_texture_view.xml',
93 'ARB_uniform_buffer_object.xml',
94 'ARB_vertex_array_object.xml',
95 'ARB_vertex_attrib_64bit.xml',
96 'ARB_vertex_attrib_binding.xml',
97 'ARB_viewport_array.xml',
98 'AMD_depth_clamp_separate.xml',
99 'AMD_draw_buffers_blend.xml',
100 'AMD_performance_monitor.xml',
101 'ARB_vertex_type_2_10_10_10_rev.xml',
102 'APPLE_object_purgeable.xml',
103 'APPLE_vertex_array_object.xml',
104 'EXT_draw_buffers2.xml',
105 'EXT_external_objects.xml',
106 'EXT_external_objects_fd.xml',
107 'EXT_framebuffer_object.xml',
108 'EXT_gpu_shader4.xml',
109 'EXT_packed_depth_stencil.xml',
110 'EXT_provoking_vertex.xml',
111 'EXT_separate_shader_objects.xml',
112 'EXT_texture_array.xml',
113 'EXT_texture_integer.xml',
114 'EXT_transform_feedback.xml',
115 'EXT_vertex_attrib_64bit.xml',
116 'EXT_window_rectangles.xml',
117 'GREMEDY_string_marker.xml',
118 'INTEL_performance_query.xml',
119 'KHR_debug.xml',
120 'KHR_context_flush_control.xml',
121 'KHR_robustness.xml',
122 'KHR_robustness_es.xml',
123 'KHR_texture_compression_astc.xml',
124 'NV_conditional_render.xml',
125 'NV_primitive_restart.xml',
126 'NV_texture_barrier.xml',
127 'NV_vdpau_interop.xml',
128 'OES_EGL_image.xml',
129 'OES_fixed_point.xml',
130 'OES_single_precision.xml',
131 'OES_texture_compression_astc.xml',
132 'GL3x.xml',
133 'GL4x.xml',
134 )
135
136 glapi_gen_depends = files(
137 'gl_XML.py',
138 'glX_XML.py',
139 'license.py',
140 'static_data.py',
141 'typeexpr.py',
142 ) + api_xml_files
143
144 glx_gen_depends = files(
145 'glX_API.xml',
146 'glX_XML.py',
147 'glX_proto_common.py',
148 ) + api_xml_files
149
150 glapi_mapi_tmp_h = custom_target(
151 'glapi_mapi_tmp.h',
152 input : [mapi_abi_py, 'gl_and_es_API.xml'],
153 output : 'glapi_mapi_tmp.h',
154 command : [prog_python, '@INPUT0@', '--printer', 'glapi', '@INPUT1@'],
155 depend_files : glapi_gen_depends,
156 capture : true,
157 )
158
159 glprocs_h = custom_target(
160 'glprocs.h',
161 input : ['gl_procs.py', 'gl_and_es_API.xml'],
162 output : 'glprocs.h',
163 command : [prog_python, '@INPUT0@', '-c', '-f', '@INPUT1@'],
164 depend_files : glapi_gen_depends,
165 capture : true,
166 )
167
168 glapitemp_h = custom_target(
169 'glapitemp.h',
170 input : ['gl_apitemp.py', 'gl_and_es_API.xml'],
171 output : 'glapitemp.h',
172 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
173 depend_files : glapi_gen_depends,
174 capture : true,
175 )
176
177 glapitable_h = custom_target(
178 'glapitable.h',
179 input : ['gl_table.py', 'gl_and_es_API.xml'],
180 output : 'glapitable.h',
181 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
182 depend_files : glapi_gen_depends,
183 capture : true,
184 )
185
186 glapi_gentable_c = custom_target(
187 'glapi_gentable.c',
188 input : ['gl_gentable.py', 'gl_and_es_API.xml'],
189 output : 'glapi_gentable.c',
190 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
191 depend_files : glapi_gen_depends,
192 capture : true,
193 )
194
195 main_enums_c = custom_target(
196 'enums.c',
197 input : ['gl_enums.py', files('../registry/gl.xml')],
198 output : 'enums.c',
199 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
200 capture : true,
201 )
202
203 main_api_exec_c = custom_target(
204 'api_exec.c',
205 input : ['gl_genexec.py', 'gl_and_es_API.xml'],
206 output : 'api_exec.c',
207 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
208 depend_files : files('apiexec.py') + glapi_gen_depends,
209 capture : true,
210 )
211
212 main_marshal_generated_c = custom_target(
213 'marshal_generated.c',
214 input : ['gl_marshal.py', 'gl_and_es_API.xml'],
215 output : 'marshal_generated.c',
216 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
217 depend_files : files('marshal_XML.py') + glapi_gen_depends,
218 capture : true,
219 )
220
221 glx_generated = []
222
223 foreach x : [['indirect.c', 'proto'], ['indirect.h', 'init_h'], ['indirect_init.c', 'init_c']]
224 glx_generated += custom_target(
225 x[0],
226 input : ['glX_proto_send.py', 'gl_API.xml'],
227 output : x[0],
228 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '-m', x[1]],
229 depend_files : glx_gen_depends,
230 capture : true,
231 )
232 endforeach
233
234 foreach x : [['indirect_size.h', ['-m', 'size_h', '--header-tag', '_INDIRECT_SIZE_H_']],
235 ['indirect_size.c', ['-m', 'size_c']]]
236 glx_generated += custom_target(
237 x[0],
238 input : ['glX_proto_size.py', 'gl_API.xml'],
239 output : x[0],
240 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '--only-set', x[1]],
241 depend_files : glx_gen_depends,
242 capture : true,
243 )
244 endforeach
245 glx_indirect_size_h = glx_generated[3]
246
247 glapi_x86_s = custom_target(
248 'glapi_x86.S',
249 input : ['gl_x86_asm.py', gl_and_es_api_files],
250 output : 'glapi_x86.S',
251 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
252 depend_files : glapi_gen_depends,
253 capture : true,
254 )
255
256 glapi_x86_64_s = custom_target(
257 'glapi_x86-64.S',
258 input : ['gl_x86-64_asm.py', gl_and_es_api_files],
259 output : 'glapi_x86-64.S',
260 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
261 depend_files : glapi_gen_depends,
262 capture : true,
263 )
264
265 glapi_sparc_s = custom_target(
266 'glapi_sparc.S',
267 input : ['gl_SPARC_asm.py', gl_and_es_api_files],
268 output : 'glapi_sparc.S',
269 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
270 depend_files : glapi_gen_depends,
271 capture : true,
272 )