chuniio-rs/build-all.sh

16 lines
659 B
Bash
Raw Normal View History

2023-12-27 12:59:09 +00:00
#!/bin/bash
mkdir -p dist/chusan
mkdir -p dist/chuni
2024-01-03 15:44:12 +00:00
for backend in tasoller_v1 tasoller_v2 laverita_v3
2023-12-27 12:59:09 +00:00
do
cargo build --target i686-pc-windows-msvc --release --features chusan,$backend
cargo build --target x86_64-pc-windows-msvc --release --features chusan,$backend
cp target/i686-pc-windows-msvc/release/chuniio_rs.dll dist/chusan/chuniio_${backend}_chusan.dll
cp target/x86_64-pc-windows-msvc/release/chuniio_rs.dll dist/chusan/chuniio_${backend}_amdaemon.dll
cargo build --target i686-pc-windows-msvc --release --features $backend
cp target/i686-pc-windows-msvc/release/chuniio_rs.dll dist/chuni/chuniio_${backend}.dll
done