30 lines
1.2 KiB
TOML
30 lines
1.2 KiB
TOML
# Cross-compilation target aliases
|
|
# Usage: cargo build-ios / cargo build-android-arm64 etc.
|
|
[alias]
|
|
build-ios = "build --target aarch64-apple-ios"
|
|
build-ios-sim = "build --target aarch64-apple-ios-sim"
|
|
build-android-arm64 = "build --target aarch64-linux-android"
|
|
build-android-x64 = "build --target x86_64-linux-android"
|
|
build-macos-arm64 = "build --target aarch64-apple-darwin"
|
|
build-macos-x64 = "build --target x86_64-apple-darwin"
|
|
build-all-apple = "build --target aarch64-apple-ios --target aarch64-apple-darwin --target x86_64-apple-darwin"
|
|
|
|
# Link flags for Apple targets (needed when linking wolfSSL static lib)
|
|
[target.aarch64-apple-ios]
|
|
rustflags = ["-C", "link-arg=-lc++"]
|
|
|
|
[target.aarch64-apple-darwin]
|
|
rustflags = ["-C", "link-arg=-lc++"]
|
|
|
|
[target.x86_64-apple-darwin]
|
|
rustflags = ["-C", "link-arg=-lc++"]
|
|
|
|
# Android NDK sysroot — set ANDROID_NDK_HOME in your environment.
|
|
# cargokit (used by flutter_rust_bridge) handles this automatically during
|
|
# `flutter build apk` / `flutter build appbundle`.
|
|
[target.aarch64-linux-android]
|
|
linker = "aarch64-linux-android21-clang"
|
|
|
|
[target.x86_64-linux-android]
|
|
linker = "x86_64-linux-android21-clang"
|