aboutsummaryrefslogtreecommitdiffstats
path: root/examples/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/window.rs')
-rw-r--r--examples/window.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/window.rs b/examples/window.rs
index f184dc3..5621b3c 100644
--- a/examples/window.rs
+++ b/examples/window.rs
@@ -1,7 +1,16 @@
+#![feature(phase)]
+
+#[cfg(target_os = "android")]
+#[phase(plugin, link)]
+extern crate android_glue;
+
extern crate gl;
extern crate gl_init;
extern crate libc;
+#[cfg(target_os = "android")]
+android_start!(main)
+
fn main() {
let window = gl_init::Window::new().unwrap();