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