diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-09-02 05:18:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-09-02 05:18:14 +0000 |
commit | 5f66494d31f735486b8222ecfa0a0c9046e92543 (patch) | |
tree | f699ac8d7f6d510c30bded04f96a1209344f6a47 /lib/mesa/src/vulkan/util/meson.build | |
parent | 17a5b543e3479aaa779cc68345c46d437edd05d8 (diff) |
Import Mesa 22.1.7
Diffstat (limited to 'lib/mesa/src/vulkan/util/meson.build')
-rw-r--r-- | lib/mesa/src/vulkan/util/meson.build | 116 |
1 files changed, 21 insertions, 95 deletions
diff --git a/lib/mesa/src/vulkan/util/meson.build b/lib/mesa/src/vulkan/util/meson.build index 234e7f1be..9d36965a1 100644 --- a/lib/mesa/src/vulkan/util/meson.build +++ b/lib/mesa/src/vulkan/util/meson.build @@ -22,82 +22,45 @@ # dependency tracking. vk_extensions_depend_files = [ ] -vk_extensions_gen_depend_files = [ +vk_entrypoints_depend_files = [ files('vk_extensions.py'), vk_extensions_depend_files, ] -vk_dispatch_table_gen_depend_files = [ +vk_extensions_gen_depend_files = [ files('vk_extensions.py'), vk_extensions_depend_files, ] -vk_entrypoints_gen_depend_files = [ - files('vk_dispatch_table_gen.py'), - vk_dispatch_table_gen_depend_files, +vk_dispatch_table_gen_depend_files = [ + files('vk_entrypoints.py'), + vk_entrypoints_depend_files, ] -vk_cmd_queue_gen_depend_files = [ - files('vk_dispatch_table_gen.py'), - vk_dispatch_table_gen_depend_files, +vk_dispatch_trampolines_gen_depend_files = [ + files('vk_entrypoints.py'), + vk_entrypoints_depend_files, ] -vk_commands_gen_depend_files = [ - files('vk_dispatch_table_gen.py'), - vk_dispatch_table_gen_depend_files, +vk_entrypoints_gen_depend_files = [ + files('vk_entrypoints.py'), + vk_entrypoints_depend_files, ] -vk_physical_device_features_gen_depend_files = [ +vk_cmd_queue_gen_depend_files = [ + files('vk_entrypoints.py'), + vk_entrypoints_depend_files, ] vk_entrypoints_gen = files('vk_entrypoints_gen.py') vk_extensions_gen = files('vk_extensions_gen.py') vk_icd_gen = files('vk_icd_gen.py') -vk_commands_gen = files('vk_commands_gen.py') +vk_cmd_queue_gen = files('vk_cmd_queue_gen.py') +vk_dispatch_trampolines_gen = files('vk_dispatch_trampolines_gen.py') files_vulkan_util = files( 'vk_alloc.c', 'vk_alloc.h', - 'vk_cmd_copy.c', - 'vk_command_buffer.c', - 'vk_command_buffer.h', - 'vk_debug_report.c', - 'vk_debug_report.h', - 'vk_debug_utils.c', - 'vk_debug_utils.h', - 'vk_deferred_operation.c', - 'vk_deferred_operation.h', - 'vk_descriptors.c', - 'vk_descriptors.h', - 'vk_device.c', - 'vk_device.h', 'vk_format.c', - 'vk_image.c', - 'vk_image.h', - 'vk_instance.c', - 'vk_instance.h', - 'vk_log.c', - 'vk_log.h', - 'vk_object.c', - 'vk_object.h', - 'vk_physical_device.c', - 'vk_physical_device.h', - 'vk_queue.c', - 'vk_queue.h', - 'vk_render_pass.c', - 'vk_shader_module.c', - 'vk_shader_module.h', - 'vk_synchronization2.c', 'vk_util.c', 'vk_util.h', ) -vk_common_entrypoints = custom_target( - 'vk_common_entrypoints', - input : [vk_entrypoints_gen, vk_api_xml], - output : ['vk_common_entrypoints.h', 'vk_common_entrypoints.c'], - command : [ - prog_python, '@INPUT0@', '--xml', '@INPUT1@', '--proto', '--weak', - '--out-h', '@OUTPUT0@', '--out-c', '@OUTPUT1@', '--prefix', 'vk_common', - ], - depend_files : vk_entrypoints_gen_depend_files, -) - vk_dispatch_table = custom_target( 'vk_dispatch_table', input : ['vk_dispatch_table_gen.py', vk_api_xml], @@ -130,36 +93,11 @@ vk_extensions = custom_target( depend_files : vk_extensions_gen_depend_files, ) -vk_cmd_queue = custom_target( - 'vk_cmd_queue', - input : ['vk_cmd_queue_gen.py', vk_api_xml], - output : ['vk_cmd_queue.c', 'vk_cmd_queue.h'], - command : [ - prog_python, '@INPUT0@', '--xml', '@INPUT1@', - '--out-c', '@OUTPUT0@', '--out-h', '@OUTPUT1@' - ], - depend_files : vk_cmd_queue_gen_depend_files, -) - -vk_physical_device_features = custom_target( - 'vk_physical_device_features', - input : ['vk_physical_device_features.py', vk_api_xml], - output : ['vk_physical_device_features.c'], - command : [ - prog_python, '@INPUT0@', '--xml', '@INPUT1@', - '--out-c', '@OUTPUT0@' - ], - depend_files : vk_physical_device_features_gen_depend_files, -) - libvulkan_util = static_library( 'vulkan_util', - [files_vulkan_util, vk_common_entrypoints, vk_dispatch_table, - vk_enum_to_str, vk_extensions, vk_cmd_queue, vk_physical_device_features], + [files_vulkan_util, vk_dispatch_table, vk_enum_to_str, vk_extensions], include_directories : [inc_include, inc_src, inc_gallium], dependencies : [vulkan_wsi_deps, idep_mesautil, idep_nir_headers], - # For glsl_type_singleton - link_with : libcompiler, c_args : [vulkan_wsi_args], gnu_symbol_visibility : 'hidden', build_by_default : false, @@ -170,19 +108,7 @@ idep_vulkan_util_headers = declare_dependency( include_directories : include_directories('.') ) -# This is likely a bug in the Meson VS backend, as MSVC with ninja works fine. -# See this discussion here: -# https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10506 -if get_option('backend').startswith('vs') - idep_vulkan_util = declare_dependency( - link_with : libvulkan_util, - dependencies : idep_vulkan_util_headers - ) -else - idep_vulkan_util = declare_dependency( - # Instruct users of this library to link with --whole-archive. Otherwise, - # our weak function overloads may not resolve properly. - link_whole : libvulkan_util, - dependencies : idep_vulkan_util_headers - ) -endif +idep_vulkan_util = declare_dependency( + link_with : libvulkan_util, + dependencies : idep_vulkan_util_headers +) |