mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
20 lines
484 B
Bash
20 lines
484 B
Bash
ROOT=$PWD
|
|
rm libpikabinder -rf
|
|
mkdir libpikabinder
|
|
cargo build --release
|
|
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
|
|
cp target/release/libpikabinder.a libpikabinder
|
|
|
|
cd ../pikaByteCodeGen
|
|
cp ../pikaCompiler/libpikabinder . -r
|
|
rm pikascript/pikascript-core -r
|
|
cp ../../src pikascript/pikascript-core -r
|
|
rm build -rf
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make -j
|
|
cp pikaByteCodeGen $ROOT/rust-msc-latest-linux
|
|
cd $ROOT
|
|
chmod +x rust-msc-latest-linux
|