mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
meson: include VkLayer_MESA_device_select in the devenv
See https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderLayerInterface.md#linux-layer-discovery Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35650>
This commit is contained in:
parent
6b11a53a3a
commit
294d8ce80a
2 changed files with 14 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"layer" : {
|
"layer" : {
|
||||||
"name": "VK_LAYER_MESA_device_select",
|
"name": "VK_LAYER_MESA_device_select",
|
||||||
"type": "GLOBAL",
|
"type": "GLOBAL",
|
||||||
"library_path": "libVkLayer_MESA_device_select.so",
|
"library_path": "@library_path@",
|
||||||
"api_version": "1.4.303",
|
"api_version": "1.4.303",
|
||||||
"implementation_version": "1",
|
"implementation_version": "1",
|
||||||
"description": "Linux device selection layer",
|
"description": "Linux device selection layer",
|
||||||
|
|
@ -20,7 +20,7 @@ if with_platform_wayland
|
||||||
vklayer_deps += dep_wayland_client
|
vklayer_deps += dep_wayland_client
|
||||||
endif
|
endif
|
||||||
|
|
||||||
shared_library(
|
vklayer_mesa_device_select = shared_library(
|
||||||
'VkLayer_MESA_device_select',
|
'VkLayer_MESA_device_select',
|
||||||
vklayer_files,
|
vklayer_files,
|
||||||
c_args : [no_override_init_args, vklayer_flags],
|
c_args : [no_override_init_args, vklayer_flags],
|
||||||
|
|
@ -34,8 +34,18 @@ shared_library(
|
||||||
install : true
|
install : true
|
||||||
)
|
)
|
||||||
|
|
||||||
install_data(
|
configure_file(
|
||||||
files('VkLayer_MESA_device_select.json'),
|
configuration : {'library_path' : 'libVkLayer_MESA_device_select.so'},
|
||||||
|
input : 'VkLayer_MESA_device_select.json.in',
|
||||||
|
output : '@BASENAME@',
|
||||||
|
install : true,
|
||||||
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
|
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
|
||||||
install_tag : 'runtime',
|
install_tag : 'runtime',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
configuration : {'library_path' : vklayer_mesa_device_select.full_path()},
|
||||||
|
input : 'VkLayer_MESA_device_select.json.in',
|
||||||
|
output : '@PLAINNAME@_dev.json',
|
||||||
|
)
|
||||||
|
devenv.append('VK_ADD_LAYER_PATH', meson.current_build_dir())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue