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