mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
- 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.
19 lines
788 B
Rust
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()
|
|
}
|