fix: bridge compilation
This commit is contained in:
parent
a364e7f808
commit
a68520df08
8
build.rs
8
build.rs
@ -82,11 +82,11 @@ fn main() {
|
|||||||
hbb_common::gen_version();
|
hbb_common::gen_version();
|
||||||
install_oboe();
|
install_oboe();
|
||||||
// there is problem with cfg(target_os) in build.rs, so use our workaround
|
// 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();
|
// let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
|
||||||
if target_os == "android" || target_os == "ios" {
|
// if target_os == "android" || target_os == "ios" {
|
||||||
gen_flutter_rust_bridge();
|
gen_flutter_rust_bridge();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
#[cfg(all(windows, feature = "inline"))]
|
#[cfg(all(windows, feature = "inline"))]
|
||||||
build_manifest();
|
build_manifest();
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user