meson: rename cargo.py to cargo_wrapper.py

Fix 'cargo build' on Windows as its $PATH includes $PWD, it seems to
pick our script rather than the actual cargo.
This commit is contained in:
Guillaume Desmottes 2020-01-02 21:37:47 +05:30
parent e2a2a17f09
commit e158f4ef88
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ else
endif endif
cargo = find_program('cargo', version:'>=1.39') cargo = find_program('cargo', version:'>=1.39')
cargo_script = find_program('cargo.py') cargo_wrapper = find_program('cargo_wrapper.py')
system = build_machine.system() system = build_machine.system()
if system == 'windows' if system == 'windows'
@ -88,7 +88,7 @@ rs_plugins = custom_target('gst-plugins-rs',
install: false, install: false,
build_always_stale: true, build_always_stale: true,
depends: depends, depends: depends,
command: [cargo_script, command: [cargo_wrapper,
meson.current_build_dir(), meson.current_build_dir(),
meson.current_source_dir(), meson.current_source_dir(),
meson.build_root(), meson.build_root(),