change build script for ios
This commit is contained in:
parent
2908cbf9f2
commit
464612819a
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# building
|
# building
|
||||||
# cbindgen src/lib.rs -l c > rustwallet.h
|
cbindgen src/lib.rs -l c > rustwallet.h
|
||||||
cargo lipo --release
|
cargo lipo --release
|
||||||
|
|
||||||
# moving files to the ios project
|
# moving files to the ios project
|
||||||
@ -13,5 +13,7 @@ rm -rf ${inc} ${libs}
|
|||||||
mkdir ${inc}
|
mkdir ${inc}
|
||||||
mkdir ${libs}
|
mkdir ${libs}
|
||||||
|
|
||||||
cp rustwallet.h ${inc}
|
targetBase=~/Documents/workspace/cocos/cocos2d-x/external/ios
|
||||||
cp target/universal/release/librustwallet.a ${libs}
|
|
||||||
|
cp rustwallet.h ${targetBase}/include/rustwallet/rustwallet.h
|
||||||
|
cp target/universal/release/librustwallet.a ${targetBase}/libs/librustwallet.a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user