mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 08:01:26 +00:00
17 lines
548 B
Makefile
17 lines
548 B
Makefile
ios:
|
|
cargo lipo -p leaf-mobile --release --targets aarch64-apple-ios && cp target/universal/release/libleaf.a /tmp/ && cbindgen leaf-mobile/src/lib.rs -l c > /tmp/leaf.h
|
|
|
|
ios-dev:
|
|
cargo lipo -p leaf-mobile --targets aarch64-apple-ios && cp target/universal/debug/libleaf.a /tmp/ && cbindgen leaf-mobile/src/lib.rs -l c > /tmp/leaf.h
|
|
|
|
local:
|
|
cargo build -p leaf-bin --release
|
|
|
|
local-dev:
|
|
cargo build -p leaf-bin
|
|
|
|
# Force a re-generation of protobuf files and C bindings.
|
|
gen:
|
|
touch leaf/build.rs
|
|
PROTO_GEN=1 BINDINGS_GEN=1 cargo build -p leaf
|