# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
+glapi_gen_gl_xml = files('../registry/gl.xml')
+glapi_gen_mapi_deps = [
+ glapi_gen_gl_xml,
+ genCommon_py,
+ glapi_gen_gl_xml,
+]
+
gl_and_es_api_files = files('gl_and_es_API.xml')
api_xml_files = files(
'ARB_framebuffer_object.xml',
'ARB_get_program_binary.xml',
'ARB_get_texture_sub_image.xml',
+ 'ARB_gl_spirv.xml',
'ARB_gpu_shader_fp64.xml',
'ARB_gpu_shader_int64.xml',
'ARB_gpu_shader5.xml',
'ARB_shader_subroutine.xml',
'ARB_shader_storage_buffer_object.xml',
'ARB_sparse_buffer.xml',
+ 'ARB_spirv_extensions.xml',
'ARB_sync.xml',
'ARB_tessellation_shader.xml',
'ARB_texture_barrier.xml',
'ARB_vertex_attrib_64bit.xml',
'ARB_vertex_attrib_binding.xml',
'ARB_viewport_array.xml',
+ 'AMD_depth_clamp_separate.xml',
'AMD_draw_buffers_blend.xml',
+ 'AMD_gpu_shader_int64.xml',
'AMD_performance_monitor.xml',
'ARB_vertex_type_2_10_10_10_rev.xml',
'APPLE_object_purgeable.xml',
'APPLE_vertex_array_object.xml',
+ 'EXT_direct_state_access.xml',
'EXT_draw_buffers2.xml',
'EXT_external_objects.xml',
'EXT_external_objects_fd.xml',
'EXT_framebuffer_object.xml',
'EXT_gpu_shader4.xml',
+ 'EXT_multisampled_render_to_texture.xml',
'EXT_packed_depth_stencil.xml',
'EXT_provoking_vertex.xml',
'EXT_separate_shader_objects.xml',
+ 'EXT_shader_image_load_store.xml',
'EXT_texture_array.xml',
'EXT_texture_integer.xml',
'EXT_transform_feedback.xml',
+ 'EXT_vertex_attrib_64bit.xml',
'EXT_window_rectangles.xml',
'GREMEDY_string_marker.xml',
'INTEL_performance_query.xml',
'KHR_robustness.xml',
'KHR_robustness_es.xml',
'KHR_texture_compression_astc.xml',
+ 'NV_alpha_to_coverage_dither_control.xml',
+ 'NV_copy_image.xml',
'NV_conditional_render.xml',
'NV_primitive_restart.xml',
'NV_texture_barrier.xml',
'NV_vdpau_interop.xml',
+ 'NV_viewport_swizzle.xml',
'OES_EGL_image.xml',
'OES_fixed_point.xml',
'OES_single_precision.xml',
'glapi_mapi_tmp.h',
input : [mapi_abi_py, 'gl_and_es_API.xml'],
output : 'glapi_mapi_tmp.h',
- command : [prog_python2, '@INPUT0@', '--printer', 'glapi', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '--printer', 'glapi', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)
'glprocs.h',
input : ['gl_procs.py', 'gl_and_es_API.xml'],
output : 'glprocs.h',
- command : [prog_python2, '@INPUT0@', '-c', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-c', '-f', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)
'glapitemp.h',
input : ['gl_apitemp.py', 'gl_and_es_API.xml'],
output : 'glapitemp.h',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)
'glapitable.h',
input : ['gl_table.py', 'gl_and_es_API.xml'],
output : 'glapitable.h',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)
'glapi_gentable.c',
input : ['gl_gentable.py', 'gl_and_es_API.xml'],
output : 'glapi_gentable.c',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)
'enums.c',
input : ['gl_enums.py', files('../registry/gl.xml')],
output : 'enums.c',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
capture : true,
)
'api_exec.c',
input : ['gl_genexec.py', 'gl_and_es_API.xml'],
output : 'api_exec.c',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
depend_files : files('apiexec.py') + glapi_gen_depends,
capture : true,
)
-main_marshal_generated_c = custom_target(
- 'marshal_generated.c',
- input : ['gl_marshal.py', 'gl_and_es_API.xml'],
- output : 'marshal_generated.c',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
- depend_files : files('marshal_XML.py') + glapi_gen_depends,
- 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@', '-f', '@INPUT1@', '-i', x, '-n', '8'],
+ depend_files : files('marshal_XML.py') + glapi_gen_depends,
+ capture : true,
+ )
+endforeach
glx_generated = []
x[0],
input : ['glX_proto_send.py', 'gl_API.xml'],
output : x[0],
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@', '-m', x[1]],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '-m', x[1]],
depend_files : glx_gen_depends,
capture : true,
)
x[0],
input : ['glX_proto_size.py', 'gl_API.xml'],
output : x[0],
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@', '--only-set', x[1]],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '--only-set', x[1]],
depend_files : glx_gen_depends,
capture : true,
)
'glapi_x86.S',
input : ['gl_x86_asm.py', gl_and_es_api_files],
output : 'glapi_x86.S',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)
'glapi_x86-64.S',
input : ['gl_x86-64_asm.py', gl_and_es_api_files],
output : 'glapi_x86-64.S',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)
'glapi_sparc.S',
input : ['gl_SPARC_asm.py', gl_and_es_api_files],
output : 'glapi_sparc.S',
- command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'],
+ command : [prog_python, '@INPUT0@', '-f', '@INPUT1@'],
depend_files : glapi_gen_depends,
capture : true,
)