include custom env in devenv

now you can just meson devenv -C build and run whatever cargo commands in there
manually instead of needing a run_command for each
This commit is contained in:
psykose 2024-11-04 00:39:50 +01:00
parent 6483f3dd17
commit 56a43b466b

View file

@ -52,6 +52,7 @@ endif
cargo = find_program('cargo') cargo = find_program('cargo')
cargo_env = environment() cargo_env = environment()
cargo_env.set('MESON_BUILD_ROOT', meson.project_build_root()) cargo_env.set('MESON_BUILD_ROOT', meson.project_build_root())
meson.add_devenv(cargo_env)
custom_target( custom_target(
'cargo-build', 'cargo-build',