Changeset View
Changeset View
Standalone View
Standalone View
multimedia/kooha/files/patch-build-aux_cargo.sh
- This file was added.
--- build-aux/cargo.sh.orig 2021-09-10 08:14:31 UTC | |||||
+++ build-aux/cargo.sh | |||||
@@ -8,13 +8,13 @@ export CARGO_HOME="$MESON_BUILD_ROOT"/cargo-home | |||||
if [ "$4" = "Devel" ] | |||||
then | |||||
echo "DEBUG MODE" | |||||
cargo build --manifest-path \ | |||||
"$MESON_SOURCE_ROOT"/Cargo.toml && \ | |||||
- cp "$CARGO_TARGET_DIR"/debug/$5 $3 | |||||
+ cp "$CARGO_TARGET_DIR"/$CARGO_BUILD_TARGET/debug/$5 $3 | |||||
else | |||||
echo "RELEASE MODE" | |||||
cargo build --manifest-path \ | |||||
"$MESON_SOURCE_ROOT"/Cargo.toml --release && \ | |||||
- cp "$CARGO_TARGET_DIR"/release/$5 $3 | |||||
+ cp "$CARGO_TARGET_DIR"/$CARGO_BUILD_TARGET/release/$5 $3 | |||||
fi | |||||