vulkan-overlay/meson: use install_data instead of configure_file

We don't want to copy the file into the build directory, we want to
install it. That's what install_data is for.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2924
Fixes: 56ccea58ae
       ("vulkan/overlay: Add basic overlay control script.")

Acked-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
This commit is contained in:
Dylan Baker 2020-05-20 18:00:14 -07:00 committed by Marge Bot
parent 138c003d22
commit fb62e642ae

View file

@ -53,9 +53,8 @@ install_data(
install_dir : join_paths(get_option('datadir'), 'vulkan', 'explicit_layer.d'),
)
configure_file(
input : files('mesa-overlay-control.py'),
output : '@PLAINNAME@',
configuration : configuration_data(), # only copy the file
install_dir: get_option('bindir'),
install_data(
'mesa-overlay-control.py',
install_dir : get_option('bindir'),
install_mode : 'r-xr-xr-x',
)