diff options
Diffstat (limited to 'src/platform')
-rw-r--r-- | src/platform/android/mod.rs | 3 | ||||
-rw-r--r-- | src/platform/linux/mod.rs | 3 | ||||
-rw-r--r-- | src/platform/macos/mod.rs | 3 | ||||
-rw-r--r-- | src/platform/mod.rs | 17 | ||||
-rw-r--r-- | src/platform/windows/mod.rs | 3 |
5 files changed, 29 insertions, 0 deletions
diff --git a/src/platform/android/mod.rs b/src/platform/android/mod.rs new file mode 100644 index 0000000..c90d8ce --- /dev/null +++ b/src/platform/android/mod.rs @@ -0,0 +1,3 @@ +#![cfg(target_os = "android")] + +pub use api::android::*; diff --git a/src/platform/linux/mod.rs b/src/platform/linux/mod.rs new file mode 100644 index 0000000..df3a318 --- /dev/null +++ b/src/platform/linux/mod.rs @@ -0,0 +1,3 @@ +#![cfg(target_os = "linux")] + +pub use api::x11::*; diff --git a/src/platform/macos/mod.rs b/src/platform/macos/mod.rs new file mode 100644 index 0000000..1d253a0 --- /dev/null +++ b/src/platform/macos/mod.rs @@ -0,0 +1,3 @@ +#![cfg(target_os = "macos")] + +pub use api::cocoa::*; diff --git a/src/platform/mod.rs b/src/platform/mod.rs new file mode 100644 index 0000000..68ddfcc --- /dev/null +++ b/src/platform/mod.rs @@ -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; diff --git a/src/platform/windows/mod.rs b/src/platform/windows/mod.rs new file mode 100644 index 0000000..c13f4f5 --- /dev/null +++ b/src/platform/windows/mod.rs @@ -0,0 +1,3 @@ +#![cfg(target_os = "windows")] + +pub use api::win32::*; |