Files
openhuman/src-tauri/build.rs
T
Steven Enamakel b4dc9f0ea6 feat: enhance Android support with MediaPipe LLM integration
- Updated the pre-push hook to comment out formatting and lint checks for easier debugging.
- Simplified VSCode settings for default formatting across various file types.
- Introduced MediaPipe LLM Bridge for Android, enabling on-device LLM inference.
- Updated build scripts and dependencies to support MediaPipe integration.
- Refactored TDLib Bridge to indicate that TDLib is not available on Android, ensuring clarity in mobile platform capabilities.
- Enhanced model commands to include Android-specific functionality for LLM operations.
- Improved SocketManager to handle Android-specific socket connections and stubs.
- Updated documentation and comments to reflect changes in platform support and functionality.
2026-02-04 12:01:37 +05:30

19 lines
788 B
Rust

fn main() {
// Get the target OS from environment variable (set by Cargo during cross-compilation)
let target = std::env::var("TARGET").unwrap_or_default();
let is_mobile_target = target.contains("android") || target.contains("ios");
// TDLib build configuration (desktop only)
// The tdlib-rs crate with download-tdlib feature handles downloading and linking
// the prebuilt TDLib library automatically.
// Note: We check the TARGET env var because cfg() checks the HOST platform for build scripts.
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if !is_mobile_target {
// Download and link TDLib library
// Pass None to use default download location
tdlib_rs::build::build(None);
}
tauri_build::build()
}