mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Create reorganization
This commit is contained in:
3
src/platform/android/mod.rs
Normal file
3
src/platform/android/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
#![cfg(target_os = "android")]
|
||||
|
||||
pub use api::android::*;
|
||||
3
src/platform/linux/mod.rs
Normal file
3
src/platform/linux/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
#![cfg(target_os = "linux")]
|
||||
|
||||
pub use api::x11::*;
|
||||
3
src/platform/macos/mod.rs
Normal file
3
src/platform/macos/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
#![cfg(target_os = "macos")]
|
||||
|
||||
pub use api::cocoa::*;
|
||||
17
src/platform/mod.rs
Normal file
17
src/platform/mod.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
pub use self::platform::*;
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
#[path="windows/mod.rs"]
|
||||
mod platform;
|
||||
#[cfg(target_os = "linux")]
|
||||
#[path="linux/mod.rs"]
|
||||
mod platform;
|
||||
#[cfg(target_os = "macos")]
|
||||
#[path="macos/mod.rs"]
|
||||
mod platform;
|
||||
#[cfg(target_os = "android")]
|
||||
#[path="android/mod.rs"]
|
||||
mod platform;
|
||||
|
||||
#[cfg(all(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android")))]
|
||||
use this_platform_is_not_supported;
|
||||
3
src/platform/windows/mod.rs
Normal file
3
src/platform/windows/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
#![cfg(target_os = "windows")]
|
||||
|
||||
pub use api::win32::*;
|
||||
Reference in New Issue
Block a user