fix: bridge compilation

This commit is contained in:
Kingtous 2022-05-25 14:30:19 +08:00
parent a364e7f808
commit a68520df08

View File

@ -82,11 +82,11 @@ fn main() {
hbb_common::gen_version();
install_oboe();
// there is problem with cfg(target_os) in build.rs, so use our workaround
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
if target_os == "android" || target_os == "ios" {
// let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
// if target_os == "android" || target_os == "ios" {
gen_flutter_rust_bridge();
return;
}
// return;
// }
#[cfg(all(windows, feature = "inline"))]
build_manifest();
#[cfg(windows)]