forked from eycorsican/leaf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (29 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ios:
cargo lipo --release -p leaf-ffi
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/release/leaf.h
ios-dev:
cargo lipo -p leaf-ffi
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/debug/leaf.h
ios-opt:
cargo lipo --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/release/leaf.h
lib:
cargo build -p leaf-ffi --release
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/release/leaf.h
lib-dev:
cargo build -p leaf-ffi
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/debug/leaf.h
local:
cargo build -p leaf-bin --release
local-dev:
cargo build -p leaf-bin
mipsel:
./misc/build_cross.sh mipsel-unknown-linux-musl
mips:
./misc/build_cross.sh mips-unknown-linux-musl
test:
cargo test -p leaf -- --nocapture
# Force a re-generation of protobuf files.
proto-gen:
touch leaf/build.rs
PROTO_GEN=1 cargo build -p leaf