mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
divide build and cross-build.sh, cross-build not ok, cannot find fun
This commit is contained in:
parent
34bb6183be
commit
8c48a8f720
@ -1,14 +1,18 @@
|
|||||||
ROOT=$PWD
|
ROOT=$PWD
|
||||||
cargo build --release --target=x86_64-pc-windows-gnu
|
rm libpikabinder -rf
|
||||||
|
mkdir libpikabinder
|
||||||
|
cargo build --release
|
||||||
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
|
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
|
||||||
cp target/x86_64-pc-windows-gnu/release/libpikabinder.a libpikabinder
|
cp target/release/libpikabinder.a libpikabinder
|
||||||
|
|
||||||
cd ../pikaByteCodeGen
|
cd ../pikaByteCodeGen
|
||||||
cp ../pikaCompiler/libpikabinder . -r
|
cp ../pikaCompiler/libpikabinder . -r
|
||||||
cp ../../src pikascript/pikascript-core -r
|
cp ../../src pikascript/pikascript-core -r
|
||||||
|
rm build -rf
|
||||||
sh cross-win.sh
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make -j
|
||||||
cp pikaByteCodeGen $ROOT/rust-msc-latest-linux
|
cp pikaByteCodeGen $ROOT/rust-msc-latest-linux
|
||||||
cd $ROOT
|
cd $ROOT
|
||||||
chmod +x rust-msc-latest-linux
|
chmod +x rust-msc-latest-linux
|
||||||
|
19
tools/pikaCompiler/cross-build.sh
Normal file
19
tools/pikaCompiler/cross-build.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
ROOT=$PWD
|
||||||
|
|
||||||
|
# clean
|
||||||
|
rm libpikabinder -rf
|
||||||
|
mkdir libpikabinder
|
||||||
|
|
||||||
|
cargo build --release --target=x86_64-pc-windows-gnu
|
||||||
|
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
|
||||||
|
cp target/x86_64-pc-windows-gnu/release/libpikabinder.a libpikabinder
|
||||||
|
|
||||||
|
cd ../pikaByteCodeGen
|
||||||
|
cp ../pikaCompiler/libpikabinder . -r
|
||||||
|
cp ../../src pikascript/pikascript-core -r
|
||||||
|
|
||||||
|
sh cross-win.sh
|
||||||
|
|
||||||
|
cp pikaByteCodeGen $ROOT/rust-msc-latest-linux
|
||||||
|
cd $ROOT
|
||||||
|
chmod +x rust-msc-latest-linux
|
Loading…
x
Reference in New Issue
Block a user