From 32ef12e738e2c4766199f7255ba796b18a715f7e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 2 Nov 2021 10:18:13 +0100 Subject: [PATCH] meson: fix out of tree build Needed for gst-build integration. Thanks to Michael Farrell for the fix suggestion. Fix #171 --- cargo_wrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cargo_wrapper.py b/cargo_wrapper.py index fd86521e..3ab35ab7 100644 --- a/cargo_wrapper.py +++ b/cargo_wrapper.py @@ -47,6 +47,9 @@ else: print("Unknown command:", command) sys.exit(1) +cargo_cmd.extend( + ['--manifest-path', os.path.join(meson_current_source_dir, 'Cargo.toml')]) + cargo_cmd.extend(['--prefix', prefix, '--libdir', os.path.join(prefix, libdir)])