mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
examples/window_run_return: Enable on Android (#2321)
Android also supports `EventLoopExtRunReturn`. The user will still have to follow the README to turn this example into a `cdylib` and add the `ndk_glue::main()` initialization attribute, though.
This commit is contained in:
@@ -8,7 +8,8 @@
|
|||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "freebsd",
|
target_os = "freebsd",
|
||||||
target_os = "netbsd",
|
target_os = "netbsd",
|
||||||
target_os = "openbsd"
|
target_os = "openbsd",
|
||||||
|
target_os = "android",
|
||||||
))]
|
))]
|
||||||
fn main() {
|
fn main() {
|
||||||
use std::{thread::sleep, time::Duration};
|
use std::{thread::sleep, time::Duration};
|
||||||
@@ -59,7 +60,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(target_os = "ios", target_os = "android", target_arch = "wasm32"))]
|
#[cfg(any(target_os = "ios", target_arch = "wasm32"))]
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("This platform doesn't support run_return.");
|
println!("This platform doesn't support run_return.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user