t/steamvr: Fix build on meson 0.61.0

Context: https://github.com/mesonbuild/meson/issues/4717
Using a directory directory as input in a custom_target was deprecated and printed the message
"This will become a hard error in the future."
It did become a hard error now.

Fixes error
../src/xrt/targets/steamvr_drv/meson.build:52:0: ERROR: File resources does not exist.
on meson 0.61.0
This commit is contained in:
Christoph Haag 2022-01-11 20:23:39 +01:00
parent 2b456da531
commit cce2094290

View file

@ -52,9 +52,8 @@ fake_driver_manifest = custom_target(
fake_driver_resources = custom_target(
'driver_resources_copy',
depends : driver_monado,
input : 'resources', # https://github.com/mesonbuild/meson/issues/4717
output : 'fake_driver_resources',
command : [copy_asset, 'DIRECTORY', '@INPUT@', resources_dir],
output : 'resources',
command : [copy_asset, 'DIRECTORY', join_paths(meson.current_source_dir(), 'resources'), resources_dir],
build_by_default : true
)