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