chore: convenient iOS build target for an optimized output

This commit is contained in:
eric
2021-09-10 16:26:07 +08:00
parent 7397c70b1b
commit 40e79fdb93

View File

@@ -6,6 +6,10 @@ 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:
RUSTFLAGS="-Z strip=symbols" 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