Skip to content

Instantly share code, notes, and snippets.

@1480c1
Created June 27, 2021 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1480c1/b15c1f6c13d1d4ee8eb16ea99f3caf15 to your computer and use it in GitHub Desktop.
Save 1480c1/b15c1f6c13d1d4ee8eb16ea99f3caf15 to your computer and use it in GitHub Desktop.
cargo-c+rav1e stuff
#!/usr/bin/bash
pacman -Syu --noconfirm
pacman -S --noconfirm $MINGW_PACKAGE_PREFIX-rust
git clone https://github.com/lu-zero/cargo-c.git
git -C cargo-c pull origin master
cargo install --target x86_64-pc-windows-gnu --jobs="$(nproc)" --path=cargo-c
git clone https://github.com/xiph/rav1e.git
git -C rav1e pull origin master
cd rav1e
cargo capi install --release --jobs "$(nproc)" --prefix /local --destdir "$PWD/install"
find install -name "rav1e.pc" -exec cat {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment