mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-06 16:01:29 +00:00
26 lines
734 B
Makefile
26 lines
734 B
Makefile
ios:
|
|
cargo lipo -p leaf-ffi --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml
|
|
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/release/leaf.h
|
|
|
|
ios-dev:
|
|
cargo lipo -p leaf-ffi --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml
|
|
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/debug/leaf.h
|
|
|
|
lib:
|
|
cargo build -p leaf-ffi --release
|
|
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/release/leaf.h
|
|
|
|
local:
|
|
cargo build -p leaf-bin --release
|
|
|
|
local-dev:
|
|
cargo build -p leaf-bin
|
|
|
|
test:
|
|
cargo test -p leaf
|
|
|
|
# Force a re-generation of protobuf files.
|
|
proto-gen:
|
|
touch leaf/build.rs
|
|
PROTO_GEN=1 cargo build -p leaf
|