aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-09-11 18:13:50 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-09-11 18:28:07 +0200
commit0bb82e8467f4f0acde0ba434cbc214ea9a4af476 (patch)
tree4038a9160fc43833712a6f75fea4ce8158469ff1 /src/lib.rs
parentd870fa7ffa1ff5e7a6a13048ada943aea51a04a6 (diff)
downloadglutin-0bb82e8467f4f0acde0ba434cbc214ea9a4af476.tar.gz
glutin-0bb82e8467f4f0acde0ba434cbc214ea9a4af476.zip
Add basic support for Android
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a27337f..cfaf875 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -31,6 +31,8 @@ use win32 as winimpl;
use x11 as winimpl;
#[cfg(target_os = "macos")]
use osx as winimpl;
+#[cfg(target_os = "android")]
+use android as winimpl;
#[cfg(target_os = "windows")]
mod win32;
@@ -38,13 +40,15 @@ mod win32;
mod x11;
#[cfg(target_os = "macos")]
mod osx;
+#[cfg(target_os = "android")]
+mod android;
#[allow(dead_code)]
//mod egl;
mod events;
-#[cfg(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"))]
+#[cfg(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android"))]
compile_error!("Only the `windows`, `linux` and `macos` platforms are supported")
/// Identifier for a monitor.