exclude ui module (sciter) for flutter

This commit is contained in:
rustdesk
2023-02-10 17:09:31 +08:00
parent 9d88a06cdf
commit be09728bf5
9 changed files with 123 additions and 201 deletions

View File

@@ -2,6 +2,7 @@
// Requires Rust 1.18.
//#![windows_subsystem = "windows"]
#[cfg(not(feature = "flutter"))]
use librustdesk::*;
#[cfg(any(target_os = "android", target_os = "ios"))]
@@ -16,7 +17,12 @@ fn main() {
common::global_clean();
}
#[cfg(not(any(target_os = "android", target_os = "ios", feature = "cli")))]
#[cfg(not(any(
target_os = "android",
target_os = "ios",
feature = "cli",
feature = "flutter"
)))]
fn main() {
if !common::global_init() {
return;
@@ -27,6 +33,11 @@ fn main() {
common::global_clean();
}
#[cfg(feature = "flutter")]
fn main() {
hbb_common::log::info!("Hello world!");
}
#[cfg(feature = "cli")]
fn main() {
if !common::global_init() {