2019-02-06 02:30:33 +11:00
|
|
|
pub use self::platform::*;
|
|
|
|
|
|
|
|
#[cfg(target_os = "windows")]
|
2019-06-04 15:51:01 +10:00
|
|
|
#[path = "windows/mod.rs"]
|
2019-02-06 02:30:33 +11:00
|
|
|
mod platform;
|
2019-06-04 15:51:01 +10:00
|
|
|
#[cfg(any(
|
|
|
|
target_os = "linux",
|
|
|
|
target_os = "dragonfly",
|
|
|
|
target_os = "freebsd",
|
|
|
|
target_os = "netbsd",
|
|
|
|
target_os = "openbsd"
|
|
|
|
))]
|
|
|
|
#[path = "linux/mod.rs"]
|
2019-02-06 02:30:33 +11:00
|
|
|
mod platform;
|
|
|
|
#[cfg(target_os = "macos")]
|
2019-06-04 15:51:01 +10:00
|
|
|
#[path = "macos/mod.rs"]
|
2019-02-06 02:30:33 +11:00
|
|
|
mod platform;
|
|
|
|
#[cfg(target_os = "android")]
|
2019-06-04 15:51:01 +10:00
|
|
|
#[path = "android/mod.rs"]
|
2019-02-06 02:30:33 +11:00
|
|
|
mod platform;
|
|
|
|
#[cfg(target_os = "ios")]
|
2019-06-04 15:51:01 +10:00
|
|
|
#[path = "ios/mod.rs"]
|
2019-02-06 02:30:33 +11:00
|
|
|
mod platform;
|
|
|
|
#[cfg(target_os = "emscripten")]
|
2019-06-04 15:51:01 +10:00
|
|
|
#[path = "emscripten/mod.rs"]
|
2019-02-06 02:30:33 +11:00
|
|
|
mod platform;
|
2019-06-25 11:15:34 +10:00
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
|
|
#[path = "web/mod.rs"]
|
2019-02-13 12:47:31 +11:00
|
|
|
mod platform;
|
2019-02-06 02:30:33 +11:00
|
|
|
|
2019-06-04 15:51:01 +10:00
|
|
|
#[cfg(all(
|
|
|
|
not(target_os = "ios"),
|
|
|
|
not(target_os = "windows"),
|
|
|
|
not(target_os = "linux"),
|
|
|
|
not(target_os = "macos"),
|
|
|
|
not(target_os = "android"),
|
|
|
|
not(target_os = "dragonfly"),
|
|
|
|
not(target_os = "freebsd"),
|
|
|
|
not(target_os = "netbsd"),
|
|
|
|
not(target_os = "openbsd"),
|
|
|
|
not(target_os = "emscripten"),
|
2019-06-25 11:15:34 +10:00
|
|
|
not(target_arch = "wasm32"),
|
2019-06-04 15:51:01 +10:00
|
|
|
))]
|
2019-02-06 02:30:33 +11:00
|
|
|
compile_error!("The platform you're compiling for is not supported by winit");
|