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;
|
|
|
|
|
#[cfg(target_os = "emscripten")]
|
2019-06-03 22:51:01 -07:00
|
|
|
#[path = "emscripten/mod.rs"]
|
2019-02-05 10:30:33 -05:00
|
|
|
mod platform;
|
2019-02-12 20:47:31 -05:00
|
|
|
#[cfg(feature = "stdweb")]
|
2019-06-03 22:51:01 -07:00
|
|
|
#[path = "stdweb/mod.rs"]
|
|
|
|
|
mod platform;
|
2019-06-24 18:31:56 +02:00
|
|
|
#[cfg(feature = "web_sys")]
|
2019-06-03 22:51:01 -07:00
|
|
|
#[path = "web_sys/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"),
|
|
|
|
|
not(target_os = "emscripten"),
|
|
|
|
|
not(feature = "stdweb"),
|
2019-06-24 18:31:56 +02:00
|
|
|
not(feature = "web_sys")
|
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");
|