mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-24 15:25:42 +01:00
18 lines
776 B
Makefile
18 lines
776 B
Makefile
|
|
init:
|
|
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
|
|
rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
|
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
|
|
cargo install cbindgen
|
|
cargo install cargo-ndk
|
|
|
|
python:
|
|
rm -rf dist
|
|
pip install -r bindings-python/requirements.txt
|
|
cargo build --release
|
|
cargo run -p uniffi-bindgen generate src/cashu.udl --language python --no-format -o bindings-python/src/cashu/
|
|
cp ../../target/release/libcashu_ffi.so bindings-python/src/cashu/
|
|
cp ../../target/release/libcashu_ffi.dylib bindings-python/src/cashu/ | true
|
|
cd bindings-python && pip wheel --no-deps -w dist .
|
|
pip install ./bindings-python/dist/cashu_protocol*.whl --force-reinstall
|