pikapython/tools/pikaCompiler/cross-build.sh
2022-05-06 12:57:33 +08:00

20 lines
501 B
Bash

ROOT=$PWD
# clean
rm libpikabinder -rf
mkdir libpikabinder
cargo build --release --target=i686-pc-windows-gnu
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
cp target/i686-pc-windows-gnu/release/libpikabinder.a libpikabinder
cd ../pikaByteCodeGen
cp ../pikaCompiler/libpikabinder . -r
rm pikascript/pikascript-core -r
cp ../../src pikascript/pikascript-core -r
sh cross-win.sh
cp build-win/pikaByteCodeGen.exe $ROOT/rust-msc-latest-win10-dev.exe
cd $ROOT