Add basic support for Android

This commit is contained in:
Tomaka17 2014-09-11 18:13:50 +02:00
parent d870fa7ffa
commit 0bb82e8467
11 changed files with 505 additions and 1 deletions

View file

@ -1,9 +1,18 @@
#![feature(phase)]
#[cfg(target_os = "android")]
#[phase(plugin, link)]
extern crate android_glue;
extern crate gl;
extern crate gl_init;
extern crate libc;
use std::io::stdio::stdin;
#[cfg(target_os = "android")]
android_start!(main)
fn main() {
// enumerating monitors
let monitor = {