-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (26 loc) · 787 Bytes
/
Makefile
File metadata and controls
29 lines (26 loc) · 787 Bytes
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
build_date = `date +%Y%m%d%H%M`
commit = `git rev-parse HEAD`
version = `git rev-parse --short HEAD`
build:
make build_android
make build_ios
clean:
cargo clean
build_android:
rustup component add rust-src
cargo install --version 0.21.0 uniffi_bindgen
rustup target add armv7-linux-androideabi
rustup target add aarch64-apple-darwin
rustup target add i686-linux-android
rustup target add x86_64-linux-android
rustup target add aarch64-linux-android
cd sdk-android && ./gradlew clean && ./gradlew build
build_ios:
rustup component add rust-src
cargo install --version 0.21.0 uniffi_bindgen
rustup target add aarch64-apple-ios
rustup target add aarch64-apple-ios-sim
rustup target add x86_64-apple-ios
cd sdk-ios && ./build-xcframework.sh
test:
cargo test --verbose