| 1 | // Copyright 2022 The AccessKit Authors. All rights reserved. |
| 2 | // Licensed under the Apache License, Version 2.0 (found in |
| 3 | // the LICENSE-APACHE file). |
| 4 | |
| 5 | // Based loosely on winit's src/platform_impl/mod.rs. |
| 6 | |
| 7 | pub use self::platform::*; |
| 8 | |
| 9 | #[cfg (target_os = "windows" )] |
| 10 | #[path = "windows.rs" ] |
| 11 | mod platform; |
| 12 | |
| 13 | #[cfg (target_os = "macos" )] |
| 14 | #[path = "macos.rs" ] |
| 15 | mod platform; |
| 16 | |
| 17 | #[cfg (all( |
| 18 | feature = "accesskit_unix" , |
| 19 | any( |
| 20 | target_os = "linux" , |
| 21 | target_os = "dragonfly" , |
| 22 | target_os = "freebsd" , |
| 23 | target_os = "netbsd" , |
| 24 | target_os = "openbsd" |
| 25 | ) |
| 26 | ))] |
| 27 | #[path = "unix.rs" ] |
| 28 | mod platform; |
| 29 | |
| 30 | #[cfg (not(any( |
| 31 | target_os = "windows" , |
| 32 | target_os = "macos" , |
| 33 | all( |
| 34 | feature = "accesskit_unix" , |
| 35 | any( |
| 36 | target_os = "linux" , |
| 37 | target_os = "dragonfly" , |
| 38 | target_os = "freebsd" , |
| 39 | target_os = "netbsd" , |
| 40 | target_os = "openbsd" |
| 41 | ) |
| 42 | ) |
| 43 | )))] |
| 44 | #[path = "null.rs" ] |
| 45 | mod platform; |
| 46 | |