63528416e7
Our workaround for getting meson and cargo working together included a separate 'release' target that replaced 'ninja dist' so that we could vendor dependencies. Now we use meson's add_dist_script to vendor the dependencies as part of 'ninja dist', so we no longer need the 'release' target.
9 lines
237 B
Bash
9 lines
237 B
Bash
#!/bin/sh
|
|
export SOURCE_ROOT="$1"
|
|
export DIST="$2"
|
|
|
|
cd "$SOURCE_ROOT"
|
|
mkdir "$DIST"/.cargo
|
|
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > $DIST/.cargo/config
|
|
# Move vendor into dist tarball directory
|
|
mv vendor "$DIST"
|