From 02c7e06d5484b6519b280615aed9e32e028e42b2 Mon Sep 17 00:00:00 2001 From: Lars Bergstrom Date: Fri, 27 May 2016 13:51:09 -0500 Subject: [PATCH] Remove the gonk port --- README.md | 2 +- components/util/opts.rs | 14 +- docs/ORGANIZATION.md | 2 - ports/gonk/.cargo/config | 3 - ports/gonk/Cargo.lock | 2456 ------------------------- ports/gonk/Cargo.toml | 29 - ports/gonk/README.md | 89 - ports/gonk/build.rs | 16 - ports/gonk/fake-ld.sh | 8 - ports/gonk/makefile.cargo | 25 - ports/gonk/src/input.rs | 251 --- ports/gonk/src/main.rs | 88 - ports/gonk/src/native_window_glue.cpp | 74 - ports/gonk/src/window.rs | 883 --------- python/servo/build_commands.py | 38 - python/servo/command_base.py | 65 +- python/servo/devenv_commands.py | 3 +- python/tidy/servo_tidy/tidy.py | 1 - servobuild.example | 8 - 19 files changed, 5 insertions(+), 4050 deletions(-) delete mode 100644 ports/gonk/.cargo/config delete mode 100644 ports/gonk/Cargo.lock delete mode 100644 ports/gonk/Cargo.toml delete mode 100644 ports/gonk/README.md delete mode 100644 ports/gonk/build.rs delete mode 100755 ports/gonk/fake-ld.sh delete mode 100644 ports/gonk/makefile.cargo delete mode 100644 ports/gonk/src/input.rs delete mode 100644 ports/gonk/src/main.rs delete mode 100644 ports/gonk/src/native_window_glue.cpp delete mode 100644 ports/gonk/src/window.rs diff --git a/README.md b/README.md index 09d06b11f13..2ee881ecce2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Servo is a prototype web browser engine written in the [Rust](https://github.com/rust-lang/rust) language. It is currently developed on -64bit OS X, 64bit Linux, Android, and Gonk (Firefox OS). +64bit OS X, 64bit Linux, and Android. Servo welcomes contribution from everyone. See [`CONTRIBUTING.md`](CONTRIBUTING.md) and [`HACKING_QUICKSTART.md`](docs/HACKING_QUICKSTART.md) diff --git a/components/util/opts.rs b/components/util/opts.rs index 33d5ee5c1ac..fd806491347 100644 --- a/components/util/opts.rs +++ b/components/util/opts.rs @@ -414,7 +414,6 @@ pub fn multiprocess() -> bool { enum UserAgent { Desktop, Android, - Gonk, } #[derive(Clone, Debug, Eq, Deserialize, PartialEq, Serialize)] @@ -453,21 +452,13 @@ fn default_user_agent_string(agent: UserAgent) -> String { UserAgent::Android => { "Mozilla/5.0 (Android; Mobile; rv:37.0) Servo/1.0 Firefox/37.0" } - UserAgent::Gonk => { - "Mozilla/5.0 (Mobile; rv:37.0) Servo/1.0 Firefox/37.0" - } }.to_owned() } #[cfg(target_os = "android")] const DEFAULT_USER_AGENT: UserAgent = UserAgent::Android; -// FIXME: This requires https://github.com/servo/servo/issues/7138 to provide the -// correct string in Gonk builds (i.e., it will never be chosen today). -#[cfg(target_os = "gonk")] -const DEFAULT_USER_AGENT: UserAgent = UserAgent::Gonk; - -#[cfg(not(any(target_os = "android", target_os = "gonk")))] +#[cfg(not(target_os = "android"))] const DEFAULT_USER_AGENT: UserAgent = UserAgent::Desktop; pub fn default_opts() -> Opts { @@ -561,7 +552,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult { opts.optopt("", "resolution", "Set window resolution.", "800x600"); opts.optopt("u", "user-agent", - "Set custom user agent string (or android / gonk / desktop for platform default)", + "Set custom user agent string (or android / desktop for platform default)", "NCSA Mosaic/1.0 (X11;SunOS 4.1.4 sun4m)"); opts.optflag("M", "multiprocess", "Run in multiprocess mode"); opts.optflag("S", "sandbox", "Run in a sandbox if multiprocess"); @@ -743,7 +734,6 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult { let user_agent = match opt_match.opt_str("u") { Some(ref ua) if ua == "android" => default_user_agent_string(UserAgent::Android), - Some(ref ua) if ua == "gonk" => default_user_agent_string(UserAgent::Gonk), Some(ref ua) if ua == "desktop" => default_user_agent_string(UserAgent::Desktop), Some(ua) => ua, None => default_user_agent_string(DEFAULT_USER_AGENT), diff --git a/docs/ORGANIZATION.md b/docs/ORGANIZATION.md index 0aa15ffc570..4aec8b4491d 100644 --- a/docs/ORGANIZATION.md +++ b/docs/ORGANIZATION.md @@ -55,8 +55,6 @@ * Embedding implementation for the Chrome Embedding Framework (CEF) API. * glutin * Embedding implementation for the `glutin` windowing library. - * gonk - * Embedding implementation for the Firefox OS devices. * python * servo * Implementations of servo-specific mach commands. diff --git a/ports/gonk/.cargo/config b/ports/gonk/.cargo/config deleted file mode 100644 index a447c48b997..00000000000 --- a/ports/gonk/.cargo/config +++ /dev/null @@ -1,3 +0,0 @@ -[target.arm-linux-androideabi] -ar = "arm-linux-androideabi-ar" -linker = "./fake-ld.sh" diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock deleted file mode 100644 index 056f2c398fd..00000000000 --- a/ports/gonk/Cargo.lock +++ /dev/null @@ -1,2456 +0,0 @@ -[root] -name = "b2s" -version = "0.0.1" -dependencies = [ - "compositing 0.0.1", - "devtools 0.0.1", - "env_logger 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "errno 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx 0.0.1", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "layers 0.2.5 (git+https://github.com/servo/rust-layers)", - "layout 0.0.1", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "profile 0.0.1", - "script 0.0.1", - "script_traits 0.0.1", - "servo 0.0.1", - "servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "style_traits 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", -] - -[[package]] -name = "aho-corasick" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "android_glue" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "angle" -version = "0.1.0" -source = "git+https://github.com/emilio/angle?branch=servo#eefe3506ae13e8ace811ca544fd6b4a5f0db0a04" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "app_units" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "arrayvec" -version = "0.3.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "nodrop 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", - "odds 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "aster" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "azure" -version = "0.4.5" -source = "git+https://github.com/servo/rust-azure#a7177c8df81554352bc51de2f5b77cbb47ec2635" -dependencies = [ - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "core-graphics 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "core-text 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "freetype 0.1.0 (git+https://github.com/servo/rust-freetype)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-freetype-sys 2.4.11 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-skia 0.20130412.9 (registry+https://github.com/rust-lang/crates.io-index)", - "x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "backtrace" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "backtrace-sys 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "dbghelp-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "backtrace-sys" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "bincode" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "bitflags" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "block" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "blurz" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "dbus 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "brotli" -version = "0.3.23" -source = "git+https://github.com/ende76/brotli-rs#d8507fd07e9fa57ed8251d5dc500dcd62df62c7c" - -[[package]] -name = "browserhtml" -version = "0.1.7" -source = "git+https://github.com/browserhtml/browserhtml?branch=gh-pages#73ecaf4b8048f10ce131d0b9b341c3146a880d74" - -[[package]] -name = "byteorder" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "canvas" -version = "0.0.1" -dependencies = [ - "azure 0.4.5 (git+https://github.com/servo/rust-azure)", - "canvas_traits 0.0.1", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx_traits 0.0.1", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "util 0.0.1", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "canvas_traits" -version = "0.0.1" -dependencies = [ - "azure 0.4.5 (git+https://github.com/servo/rust-azure)", - "cssparser 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx_traits 0.0.1", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "plugins 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "caseless" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "regex 0.1.71 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-normalization 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "cfg-if" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "cgl" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "clipboard" -version = "0.1.2" -source = "git+https://github.com/aweinstock314/rust-clipboard#f4c5c1d3c1759f0a167091405d11af1f9584fb1f" -dependencies = [ - "clipboard-win 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", - "objc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "objc-foundation 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "objc_id 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "clipboard-win" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "user32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "windows-error 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "cmake" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "cocoa" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "core-graphics 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "objc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "color_quant" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "compositing" -version = "0.0.1" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "azure 0.4.5 (git+https://github.com/servo/rust-azure)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx 0.0.1", - "gfx_traits 0.0.1", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "image 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "layers 0.2.5 (git+https://github.com/servo/rust-layers)", - "layout_traits 0.0.1", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "plugins 0.0.1", - "profile_traits 0.0.1", - "script_traits 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "style_traits 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "webrender 0.1.0 (git+https://github.com/servo/webrender)", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "constellation" -version = "0.0.1" -dependencies = [ - "canvas 0.0.1", - "canvas_traits 0.0.1", - "clipboard 0.1.2 (git+https://github.com/aweinstock314/rust-clipboard)", - "compositing 0.0.1", - "devtools_traits 0.0.1", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gaol 0.0.1 (git+https://github.com/servo/gaol)", - "gfx 0.0.1", - "gfx_traits 0.0.1", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "layers 0.2.5 (git+https://github.com/servo/rust-layers)", - "layout_traits 0.0.1", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "offscreen_gl_context 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "profile_traits 0.0.1", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "script_traits 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "style_traits 0.0.1", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "cookie" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "openssl 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "core-foundation" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "core-foundation-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "core-foundation-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "core-graphics" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "core-text" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "core-graphics 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "crossbeam" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "cssparser" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "dbghelp-sys" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "dbus" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "debug_unreachable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "deque" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "device" -version = "0.0.1" -source = "git+https://github.com/servo/devices#3c39846a019eeed939eb7090096631254e6b5efc" -dependencies = [ - "blurz 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "devtools" -version = "0.0.1" -dependencies = [ - "devtools_traits 0.0.1", - "hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "plugins 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", -] - -[[package]] -name = "devtools_traits" -version = "0.0.1" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "msg 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "dlib" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libloading 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "dwmapi-sys" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "dylib" -version = "0.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "encoding" -version = "0.2.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding-index-japanese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", - "encoding-index-korean 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", - "encoding-index-simpchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", - "encoding-index-singlebyte 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", - "encoding-index-tradchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "encoding-index-japanese" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "encoding-index-korean" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "encoding-index-simpchinese" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "encoding-index-singlebyte" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "encoding-index-tradchinese" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "encoding_index_tests" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "enum_primitive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "env_logger" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.1.71 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "errno" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "euclid" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "expat-sys" -version = "2.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "make-cmd 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "flate2" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "miniz-sys 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "fnv" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "freetype" -version = "0.1.0" -source = "git+https://github.com/servo/rust-freetype#d564ff90a3c69d987f5c015d7ec034cfaee21aff" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "fs2" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "futf" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "debug_unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "mac 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "gaol" -version = "0.0.1" -source = "git+https://github.com/servo/gaol#545c703ebfe7a3a0d7129eb40981527f5d680860" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "gcc" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "gdi32-sys" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "getopts" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "gfx" -version = "0.0.1" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "azure 0.4.5 (git+https://github.com/servo/rust-azure)", - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "core-graphics 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "core-text 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "fnv 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "freetype 0.1.0 (git+https://github.com/servo/rust-freetype)", - "gfx_traits 0.0.1", - "harfbuzz-sys 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "layers 0.2.5 (git+https://github.com/servo/rust-layers)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "plugins 0.0.1", - "profile_traits 0.0.1", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "range 0.0.1", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-fontconfig 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-skia 0.20130412.9 (registry+https://github.com/rust-lang/crates.io-index)", - "simd 0.1.0 (git+https://github.com/huonw/simd)", - "smallvec 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", - "style 0.0.1", - "style_traits 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-script 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", - "xi-unicode 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "gfx_traits" -version = "0.0.1" -dependencies = [ - "azure 0.4.5 (git+https://github.com/servo/rust-azure)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "layers 0.2.5 (git+https://github.com/servo/rust-layers)", - "msg 0.0.1", - "plugins 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "gif" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "color_quant 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "lzw 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "gl_generator" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "khronos_api 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "xml-rs 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "gleam" -version = "0.2.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gl_generator 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "glob" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "glx" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gl_generator 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "khronos_api 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "harfbuzz-sys" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "hbs-builder" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cmake 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "hbs-common-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "hbs-pow" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "hbs-pow-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "hbs-pow-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "hbs-builder 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "hbs-common-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "heapsize" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "heapsize_plugin" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "hpack" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "html5ever" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mac 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "phf 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_codegen 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", - "tendril 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "httparse" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "hyper" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cookie 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "httparse 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "num_cpus 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl-verify 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "solicit 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "traitobject 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)", - "typeable 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "idna" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-bidi 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-normalization 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "image" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "enum_primitive 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "gif 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", - "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "jpeg-decoder 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "num-iter 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-rational 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "png 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "immeta" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "arrayvec 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "inflate" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "io-surface" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "leaky-cow 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "ipc-channel" -version = "0.2.2" -source = "git+https://github.com/servo/ipc-channel#10bed82904d635b2ff6a916872130868cb69b104" -dependencies = [ - "bincode 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "uuid 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "jpeg-decoder" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "num-rational 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rayon 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "js" -version = "0.1.3" -source = "git+https://github.com/servo/rust-mozjs#fae7efd0adf42c0dde517382b83734525e11c6cc" -dependencies = [ - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mozjs_sys 0.0.0 (git+https://github.com/servo/mozjs)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "kernel32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "khronos_api" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "language-tags" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "layers" -version = "0.2.5" -source = "git+https://github.com/servo/rust-layers#0a44672108ff33dc9675e4b72a398801c74ee6fe" -dependencies = [ - "azure 0.4.5 (git+https://github.com/servo/rust-azure)", - "cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "glx 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "io-surface 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-skia 0.20130412.9 (registry+https://github.com/rust-lang/crates.io-index)", - "x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "layout" -version = "0.0.1" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "azure 0.4.5 (git+https://github.com/servo/rust-azure)", - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "canvas_traits 0.0.1", - "cssparser 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "fnv 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx 0.0.1", - "gfx_traits 0.0.1", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "layout_traits 0.0.1", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "plugins 0.0.1", - "profile_traits 0.0.1", - "range 0.0.1", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "script 0.0.1", - "script_traits 0.0.1", - "selectors 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", - "style 0.0.1", - "style_traits 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-bidi 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-script 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "layout_traits" -version = "0.0.1" -dependencies = [ - "gfx 0.0.1", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "msg 0.0.1", - "net_traits 0.0.1", - "profile_traits 0.0.1", - "script_traits 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "lazy_static" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "lazy_static" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "leak" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "leaky-cow" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "leak 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "libc" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "libloading" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "libressl-pnacl-sys" -version = "2.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "pnacl-build-helper 1.4.10 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "libz-sys" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "log" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "lzw" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "mac" -version = "0.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "make-cmd" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "malloc_buf" -version = "0.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "matches" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "memchr" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "memmap" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "fs2 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "mime" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "mime_guess" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "mime 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "phf 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_codegen 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "miniz-sys" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "mozjs_sys" -version = "0.0.0" -source = "git+https://github.com/servo/mozjs#2af5849a97a9f18acd482940ba3fa0c6797ed7eb" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "libz-sys 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "msg" -version = "0.0.1" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "layers 0.2.5 (git+https://github.com/servo/rust-layers)", - "plugins 0.0.1", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "net" -version = "0.0.1" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "brotli 0.3.23 (git+https://github.com/ende76/brotli-rs)", - "cookie 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "device 0.0.1 (git+https://github.com/servo/devices)", - "devtools_traits 0.0.1", - "flate2 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", - "immeta 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "mime_guess 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "openssl 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl-verify 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "profile_traits 0.0.1", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "threadpool 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "tinyfiledialogs 0.1.0 (git+https://github.com/jdm/tinyfiledialogs)", - "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "uuid 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", - "websocket 0.17.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "net2" -version = "0.2.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cfg-if 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "net_traits" -version = "0.0.1" -dependencies = [ - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", - "image 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "uuid 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "websocket 0.17.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "nodrop" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "odds 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "num" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num-integer 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-iter 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "num-bigint" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num-integer 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "num-integer" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "num-iter" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num-integer 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "num-rational" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num-bigint 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-integer 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "num-traits" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "num_cpus" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "objc" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "objc-foundation" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "block 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "objc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "objc_id 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "objc_id" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "objc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "odds" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "offscreen_gl_context" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gl_generator 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "khronos_api 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "open" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "openssl" -version = "0.7.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl-sys 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl-sys-extras 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "openssl-sys" -version = "0.7.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gdi32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "libressl-pnacl-sys 2.1.6 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", - "user32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "openssl-sys-extras" -version = "0.7.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl-sys 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "openssl-verify" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "openssl 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "osmesa-sys" -version = "0.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "shared_library 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "phf" -version = "0.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "phf_shared 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "phf_codegen" -version = "0.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "phf_generator 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_shared 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "phf_generator" -version = "0.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "phf_shared 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "phf_macros" -version = "0.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "phf_generator 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_shared 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "phf_shared" -version = "0.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "pkg-config" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "plugins" -version = "0.0.1" -dependencies = [ - "tenacious 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "pnacl-build-helper" -version = "1.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "tempdir 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "png" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "flate2 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", - "inflate 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "num-iter 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "profile" -version = "0.0.1" -dependencies = [ - "hbs-pow 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "profile_traits 0.0.1", - "regex 0.1.71 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "task_info 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", -] - -[[package]] -name = "profile_traits" -version = "0.0.1" -dependencies = [ - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "plugins 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "quasi" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "quasi_codegen" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "aster 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "quasi_macros" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "quasi_codegen 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "quickersort" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "rand" -version = "0.3.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "range" -version = "0.0.1" -dependencies = [ - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "rayon" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "deque 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", - "num_cpus 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "ref_filter_map" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "ref_slice" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "regex" -version = "0.1.71" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "aho-corasick 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", - "regex-syntax 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "thread_local 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", - "utf8-ranges 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "regex-syntax" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "rustc-serialize" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "rustc_version" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "semver 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "scoped_threadpool" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "script" -version = "0.0.1" -dependencies = [ - "angle 0.1.0 (git+https://github.com/emilio/angle?branch=servo)", - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "canvas 0.0.1", - "canvas_traits 0.0.1", - "caseless 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "devtools_traits 0.0.1", - "encoding 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "fnv 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx_traits 0.0.1", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "html5ever 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", - "image 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "js 0.1.3 (git+https://github.com/servo/rust-mozjs)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "open 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "phf 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_macros 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "profile_traits 0.0.1", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "ref_filter_map 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", - "ref_slice 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.1.71 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "script_traits 0.0.1", - "selectors 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", - "style 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "tinyfiledialogs 0.1.0 (git+https://github.com/jdm/tinyfiledialogs)", - "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "uuid 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", - "websocket 0.17.1 (registry+https://github.com/rust-lang/crates.io-index)", - "xml5ever 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "script_traits" -version = "0.0.1" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "canvas_traits 0.0.1", - "devtools_traits 0.0.1", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx_traits 0.0.1", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net_traits 0.0.1", - "offscreen_gl_context 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "profile_traits 0.0.1", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "style_traits 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", -] - -[[package]] -name = "selectors" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "fnv 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "quickersort 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "semver" -version = "0.1.20" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "serde" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "serde_codegen" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "aster 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", - "quasi 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", - "quasi_macros 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "serde_json" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "num 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "serde_macros" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "serde_codegen 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "servo" -version = "0.0.1" -dependencies = [ - "android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", - "browserhtml 0.1.7 (git+https://github.com/browserhtml/browserhtml?branch=gh-pages)", - "canvas 0.0.1", - "canvas_traits 0.0.1", - "compositing 0.0.1", - "constellation 0.0.1", - "devtools 0.0.1", - "devtools_traits 0.0.1", - "env_logger 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gaol 0.0.1 (git+https://github.com/servo/gaol)", - "gfx 0.0.1", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "layout 0.0.1", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "msg 0.0.1", - "net 0.0.1", - "net_traits 0.0.1", - "profile 0.0.1", - "profile_traits 0.0.1", - "script 0.0.1", - "script_traits 0.0.1", - "style 0.0.1", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "webrender 0.1.0 (git+https://github.com/servo/webrender)", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "servo-egl" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "servo-fontconfig" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-fontconfig-sys 2.11.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "servo-fontconfig-sys" -version = "2.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "expat-sys 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-freetype-sys 2.4.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "servo-freetype-sys" -version = "2.4.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "servo-glutin" -version = "0.4.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", - "cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "cocoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "core-graphics 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "dwmapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "gdi32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "gl_generator 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "image 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "objc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "osmesa-sys 0.0.5 (registry+https://github.com/rust-lang/crates.io-index)", - "shared_library 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "shell32-sys 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "user32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "wayland-client 0.5.12 (registry+https://github.com/rust-lang/crates.io-index)", - "wayland-kbd 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "wayland-window 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "x11-dl 2.4.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "servo-skia" -version = "0.20130412.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "expat-sys 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "glx 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "io-surface 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-fontconfig 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-freetype-sys 2.4.11 (registry+https://github.com/rust-lang/crates.io-index)", - "servo-glutin 0.4.22 (registry+https://github.com/rust-lang/crates.io-index)", - "x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "shared_library" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "shell32-sys" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "simd" -version = "0.1.0" -source = "git+https://github.com/huonw/simd#03de1cd0a278ab902b4beb402d57505f3797ea56" - -[[package]] -name = "smallvec" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "solicit" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "hpack 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "string_cache" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "debug_unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_generator 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_shared 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "style" -version = "0.0.1" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "encoding 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "fnv 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "selectors 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", - "style_traits 0.0.1", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", - "walkdir 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "style_traits" -version = "0.0.1" -dependencies = [ - "cssparser 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "util 0.0.1", -] - -[[package]] -name = "task_info" -version = "0.0.1" -dependencies = [ - "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tempdir" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tempfile" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tenacious" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "tendril" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", - "futf 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "mac 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "utf-8 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "thread-id" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "thread_local" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "thread-id 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "threadpool" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "time" -version = "0.1.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tinyfiledialogs" -version = "0.1.0" -source = "git+https://github.com/jdm/tinyfiledialogs#3a30f8f95686195cb3bcecfc77ff77277a624a53" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "traitobject" -version = "0.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "typeable" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "unicase" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "unicode-bidi" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "unicode-normalization" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "unicode-script" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "harfbuzz-sys 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "unreachable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "url" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "encoding 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "idna 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "user32-sys" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "utf-8" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "utf8-ranges" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "util" -version = "0.0.1" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "backtrace 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "deque 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize_plugin 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "num_cpus 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", - "plugins 0.0.1", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "xdg 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "uuid" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "walkdir" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "wayland-client" -version = "0.5.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "crossbeam 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", - "dlib 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "wayland-scanner 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)", - "wayland-sys 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "wayland-kbd" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "dlib 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", - "memmap 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", - "wayland-client 0.5.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "wayland-scanner" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "xml-rs 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "wayland-sys" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "dlib 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "wayland-window" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tempfile 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)", - "wayland-client 0.5.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "webrender" -version = "0.1.0" -source = "git+https://github.com/servo/webrender#02bfa59b3f15145cfc559684deba8153dc33a5af" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "core-graphics 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "core-text 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "fnv 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "freetype 0.1.0 (git+https://github.com/servo/rust-freetype)", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "scoped_threadpool 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", - "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", -] - -[[package]] -name = "webrender_traits" -version = "0.1.0" -source = "git+https://github.com/servo/webrender_traits#f74a744614b4c0c2fc64d39916386848124f4d52" -dependencies = [ - "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "core-graphics 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", - "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", - "offscreen_gl_context 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_macros 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "websocket" -version = "0.17.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", - "net2 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "winapi" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "windows-error" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "ws2_32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "x11" -version = "2.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "x11-dl" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "dylib 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "xdg" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "xi-unicode" -version = "0.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "xml-rs" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "xml5ever" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mac 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "phf 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_codegen 0.7.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", - "tendril 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", -] - diff --git a/ports/gonk/Cargo.toml b/ports/gonk/Cargo.toml deleted file mode 100644 index ca4401c53f1..00000000000 --- a/ports/gonk/Cargo.toml +++ /dev/null @@ -1,29 +0,0 @@ -[package] -name = "b2s" -version = "0.0.1" -authors = ["The Servo Project Developers"] - -build = "build.rs" - -[dependencies] -compositing = {path = "../../components/compositing"} -layers = {git = "https://github.com/servo/rust-layers", features = ["plugins"]} -msg = {path = "../../components/msg"} -script = {path = "../../components/script"} -script_traits = {path = "../../components/script_traits"} -style_traits = {path = "../../components/style_traits"} -net_traits = {path = "../../components/net_traits"} -gfx = {path = "../../components/gfx"} -layout = {path = "../../components/layout"} -devtools = {path = "../../components/devtools"} -servo = {path = "../../components/servo", default-features = false} -profile = {path = "../../components/profile"} -util = {path = "../../components/util"} -env_logger = "0.3" -url = {version = "1.0.0", features = ["heap_size"]} -time = "0.1.17" -errno = "0.1" -libc = "0.2" -euclid = {version = "0.6.4", features = ["plugins"]} -gleam = "0.2.8" -servo-egl = "0.2" diff --git a/ports/gonk/README.md b/ports/gonk/README.md deleted file mode 100644 index 0309b036983..00000000000 --- a/ports/gonk/README.md +++ /dev/null @@ -1,89 +0,0 @@ -# Instructions for building the Gonk port - -## Set up an android toolchain and NDK - -Follow the steps [here](https://github.com/servo/servo/wiki/Building-for-Android) for setting up the Android NDK -and toolchain. - -## Bootstrap B2G - -We have a bootstrap of the require B2G prebuilt binaries, assuming that you are targeting a Flame device. - -``` -curl https://servo-rust.s3.amazonaws.com/B2G/B2G.tgz -tar zxvf B2G.tgz -``` - -## Build B2G - -If you are not using a Flame or just would like to have a local build of the binaries, you can also build B2G locally. Note: this will take a long time and will take around 20GB of space - -Disable the screen timeout on the device, and connect to wifi. Also connect it to your computer -with remote debugging enabled. - -``` -git clone https://github.com/mozilla-b2g/B2G -./config.sh flame-kk -``` - -If behind a firewall, put the following in your gitconfig: - -``` -[url "https://github"] - insteadOf = git://github -[url "https://git.mozilla.org/external/caf"] - insteadOf = git://codeaurora.org -``` -Then run - -``` -./build.sh libssl libsuspend libz libGLESv2 toolbox libhardware -``` - -## Build B2S - -Either set the corresponding `b2g` key in `.servobuild` to the path to the B2G bootstrap or clone (along with), or set the `$GONKDIR` environment variable. - -Do the same for the `ndk` and `toolchain` keys (`$ANDROID_NDK` and `$ANDROID_TOOLCHAIN` respectively) - -Run `./mach build-gonk` from the root directory - - -## Copy the files to the Flame - -To reduce the size of libmozjs.so (`target/arm-linux-androideabi/build/mozjs-sys-*/out/libmozjs.so`), -you can run `strip` on it. Use the one in your toolchain (`$ANDROID_TOOLCHAIN/bin/arm-linux-androideabi-strip libmozjs.so`). - -Make sure the device is on, connected to wifi, with high or no screen timeout. - -``` -# Switch to a read-write system -adb remount - -# Copy mozjs -adb push /path/to/stripped/mozjs.so system/lib - -# Copy b2s -adb push target/arm-linux-androideabi system/bin - -# Copy resources -adb shell mkdir sdcard/servo -adb push resources sdcard/servo -``` - - -## Run B2S - -Make sure you're still connected to wifi - -``` -adb shell stop b2g -adb shell "echo 127 > /sys/class/leds/lcd-backlight/brightness” -adb shell start b2g -``` - -Now run `adb shell`, `cd` to `system/bin`, and run `./b2s ` - -If the screen keeps alternating between B2G and B2S, run `adb shell stop b2g` (you can restart it later). - - diff --git a/ports/gonk/build.rs b/ports/gonk/build.rs deleted file mode 100644 index ae700674ec0..00000000000 --- a/ports/gonk/build.rs +++ /dev/null @@ -1,16 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -use std::env; -use std::process::Command; - -fn main() { - let out_dir = env::var("OUT_DIR").unwrap(); - let result = Command::new("make") - .args(&["-f", "makefile.cargo"]) - .status() - .unwrap(); - assert!(result.success()); - println!("cargo:rustc-flags=-L native={}", out_dir); -} diff --git a/ports/gonk/fake-ld.sh b/ports/gonk/fake-ld.sh deleted file mode 100755 index e8423b624b4..00000000000 --- a/ports/gonk/fake-ld.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# Add the position-independent executable flag if not building a shared lib. -if echo $@ | grep -qv " -shared" -then - PIE_FLAG="-pie" -fi -arm-linux-androideabi-g++ $@ $LDFLAGS $PIE_FLAG -lGLESv2 -L$GONKDIR/backup-flame/system/lib/ diff --git a/ports/gonk/makefile.cargo b/ports/gonk/makefile.cargo deleted file mode 100644 index 3c1dea6ad66..00000000000 --- a/ports/gonk/makefile.cargo +++ /dev/null @@ -1,25 +0,0 @@ -ifeq (androideabi,$(findstring androideabi,$(TARGET))) - -CXX := $(TARGET)-g++ -AR := $(TARGET)-ar -CFLAGS := -fPIC -O2 - -else - -CXX ?= g++ -AR ?= ar - -endif - -CSRC := src/native_window_glue.cpp - -OBJS := $(CSRC:%.cpp=$(OUT_DIR)/%.o) - -.PHONY: all -all: $(OUT_DIR)/libnative_window_glue.a - -$(OUT_DIR)/%.o: %.cpp - mkdir -p `dirname $@` && $(CXX) $< -o $@ -c $(CXXFLAGS) $(CPPFLAGS) - -$(OUT_DIR)/libnative_window_glue.a: $(OBJS) - $(AR) rcs $@ $< diff --git a/ports/gonk/src/input.rs b/ports/gonk/src/input.rs deleted file mode 100644 index fd6ee3a14fc..00000000000 --- a/ports/gonk/src/input.rs +++ /dev/null @@ -1,251 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -use compositing::windowing::{WindowEvent, MouseWindowEvent}; -use errno::errno; -use euclid::point::Point2D; -use libc::{c_int, c_long, time_t}; -use script_traits::{MouseButton, TouchEventType}; -use std::fs::File; -use std::io::Read; -use std::mem::{size_of, transmute, zeroed}; -use std::os::unix::io::AsRawFd; -use std::path::Path; -use std::sync::mpsc::Sender; -use std::thread; - - -extern { - // XXX: no variadic form in std libs? - fn ioctl(fd: c_int, req: c_int, ...) -> c_int; -} - -#[repr(C)] -struct linux_input_event { - sec: time_t, - msec: c_long, - evt_type: u16, - code: u16, - value: i32, -} - -#[repr(C)] -struct linux_input_absinfo { - value: i32, - minimum: i32, - maximum: i32, - fuzz: i32, - flat: i32, - resolution: i32, -} - -const IOC_NONE: c_int = 0; -const IOC_WRITE: c_int = 1; -const IOC_READ: c_int = 2; - -fn ioc(dir: c_int, ioctype: c_int, nr: c_int, size: c_int) -> c_int { - dir << 30 | size << 16 | ioctype << 8 | nr -} - -fn ev_ioc_g_abs(abs: u16) -> c_int { - ioc(IOC_READ, 'E' as c_int, (0x40 + abs) as i32, size_of::() as i32) -} - -const EV_SYN: u16 = 0; -const EV_ABS: u16 = 3; - -const EV_REPORT: u16 = 0; - -const ABS_MT_SLOT: u16 = 0x2F; -const ABS_MT_TOUCH_MAJOR: u16 = 0x30; -const ABS_MT_TOUCH_MINOR: u16 = 0x31; -const ABS_MT_WIDTH_MAJOR: u16 = 0x32; -const ABS_MT_WIDTH_MINOR: u16 = 0x33; -const ABS_MT_ORIENTATION: u16 = 0x34; -const ABS_MT_POSITION_X: u16 = 0x35; -const ABS_MT_POSITION_Y: u16 = 0x36; -const ABS_MT_TRACKING_ID: u16 = 0x39; - -struct InputSlot { - tracking_id: i32, - x: i32, - y: i32, -} - -fn dist(x1: i32, x2: i32, y1: i32, y2: i32) -> f32 { - let deltaX = (x2 - x1) as f32; - let deltaY = (y2 - y1) as f32; - (deltaX * deltaX + deltaY * deltaY).sqrt() -} - -fn read_input_device(device_path: &Path, - sender: &Sender) { - let mut device = match File::open(device_path) { - Ok(dev) => dev, - Err(e) => { - println!("Couldn't open device! {}", e); - return; - }, - }; - let fd = device.as_raw_fd(); - - let mut x_info: linux_input_absinfo = unsafe { zeroed() }; - let mut y_info: linux_input_absinfo = unsafe { zeroed() }; - unsafe { - let ret = ioctl(fd, ev_ioc_g_abs(ABS_MT_POSITION_X), &mut x_info); - if ret < 0 { - println!("Couldn't get ABS_MT_POSITION_X info {} {}", ret, errno()); - } - } - unsafe { - let ret = ioctl(fd, ev_ioc_g_abs(ABS_MT_POSITION_Y), &mut y_info); - if ret < 0 { - println!("Couldn't get ABS_MT_POSITION_Y info {} {}", ret, errno()); - } - } - - let touchWidth = x_info.maximum - x_info.minimum; - let touchHeight = y_info.maximum - y_info.minimum; - - println!("xMin: {}, yMin: {}, touchWidth: {}, touchHeight: {}", - x_info.minimum, y_info.minimum, touchWidth, touchHeight); - - // XXX: Why isn't size_of treated as constant? - // let buf: [u8; (16 * size_of::())]; - let mut buf: [u8; (16 * 16)] = unsafe { zeroed() }; - let mut slots: [InputSlot; 10] = unsafe { zeroed() }; - for slot in slots.iter_mut() { - slot.tracking_id = -1; - } - - let mut last_x = 0; - let mut last_y = 0; - let mut first_x = 0; - let mut first_y = 0; - - let mut last_dist: f32 = 0f32; - let mut touch_count: i32 = 0; - let mut current_slot: usize = 0; - // XXX: Need to use the real dimensions of the screen - let screen_dist = dist(0, 480, 854, 0); - loop { - let read = match device.read(&mut buf) { - Ok(count) => { - assert!(count % size_of::() == 0, - "Unexpected input device read length!"); - count - }, - Err(e) => { - println!("Couldn't read device! {}", e); - return; - } - }; - - let count = read / size_of::(); - let events: *mut linux_input_event = unsafe { transmute(buf.as_mut_ptr()) }; - let mut tracking_updated = false; - for idx in 0..(count as isize) { - let event: &linux_input_event = unsafe { transmute(events.offset(idx)) }; - match (event.evt_type, event.code) { - (EV_SYN, EV_REPORT) => { - let slotA = &slots[0]; - if tracking_updated { - tracking_updated = false; - if slotA.tracking_id == -1 { - println!("Touch up"); - let delta_x = slotA.x - first_x; - let delta_y = slotA.y - first_y; - let dist = delta_x * delta_x + delta_y * delta_y; - if dist < 16 { - let click_pt = Point2D::typed(slotA.x as f32, slotA.y as f32); - println!("Dispatching click!"); - sender.send( - WindowEvent::MouseWindowEventClass( - MouseWindowEvent::MouseDown(MouseButton::Left, click_pt))).ok().unwrap(); - sender.send( - WindowEvent::MouseWindowEventClass( - MouseWindowEvent::MouseUp(MouseButton::Left, click_pt))).ok().unwrap(); - sender.send( - WindowEvent::MouseWindowEventClass( - MouseWindowEvent::Click(MouseButton::Left, click_pt))).ok().unwrap(); - } - } else { - println!("Touch down"); - last_x = slotA.x; - last_y = slotA.y; - first_x = slotA.x; - first_y = slotA.y; - if touch_count >= 2 { - let slotB = &slots[1]; - last_dist = dist(slotA.x, slotB.x, slotA.y, slotB.y); - } - } - } else { - println!("Touch move x: {}, y: {}", slotA.x, slotA.y); - sender.send( - WindowEvent::Scroll(Point2D::typed((slotA.x - last_x) as f32, (slotA.y - last_y) as f32), - Point2D::typed(slotA.x, slotA.y), - TouchEventType::Move)).ok().unwrap(); - last_x = slotA.x; - last_y = slotA.y; - if touch_count >= 2 { - let slotB = &slots[1]; - let cur_dist = dist(slotA.x, slotB.x, slotA.y, slotB.y); - println!("Zooming {} {} {} {}", - cur_dist, last_dist, screen_dist, - ((screen_dist + (cur_dist - last_dist)) / screen_dist)); - sender.send( - WindowEvent::Zoom((screen_dist + (cur_dist - last_dist)) / - screen_dist)).ok().unwrap(); - last_dist = cur_dist; - } - } - }, - (EV_SYN, _) => println!("Unknown SYN code {}", event.code), - (EV_ABS, ABS_MT_SLOT) => { - if (event.value as usize) < slots.len() { - current_slot = event.value as usize; - } else { - println!("Invalid slot! {}", event.value); - } - }, - (EV_ABS, ABS_MT_TOUCH_MAJOR) => (), - (EV_ABS, ABS_MT_TOUCH_MINOR) => (), - (EV_ABS, ABS_MT_WIDTH_MAJOR) => (), - (EV_ABS, ABS_MT_WIDTH_MINOR) => (), - (EV_ABS, ABS_MT_ORIENTATION) => (), - (EV_ABS, ABS_MT_POSITION_X) => { - slots[current_slot].x = event.value - x_info.minimum; - }, - (EV_ABS, ABS_MT_POSITION_Y) => { - slots[current_slot].y = event.value - y_info.minimum; - }, - (EV_ABS, ABS_MT_TRACKING_ID) => { - let current_id = slots[current_slot].tracking_id; - if current_id != event.value && - (current_id == -1 || event.value == -1) { - tracking_updated = true; - if event.value == -1 { - touch_count -= 1; - } else { - touch_count += 1; - } - } - slots[current_slot].tracking_id = event.value; - }, - (EV_ABS, _) => println!("Unknown ABS code {}", event.code), - (_, _) => println!("Unknown event type {}", event.evt_type), - } - } - } -} - -pub fn run_input_loop(event_sender: &Sender) { - let sender = event_sender.clone(); - thread::spawn(move || { - // XXX need to scan all devices and read every one. - let touchinputdev = Path::new("/dev/input/event0"); - read_input_device(&touchinputdev, &sender); - }); -} diff --git a/ports/gonk/src/main.rs b/ports/gonk/src/main.rs deleted file mode 100644 index 6d10a3ac833..00000000000 --- a/ports/gonk/src/main.rs +++ /dev/null @@ -1,88 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#![deny(unused_imports)] -#![deny(unused_variables)] - -#![feature(box_syntax)] -#![feature(convert)] -// For FFI -#![allow(non_snake_case, dead_code)] - -//! The `servo` test application. -//! -//! Creates a `Browser` instance with a simple implementation of -//! the compositor's `WindowMethods` to create a working web browser. -//! -//! This browser's implementation of `WindowMethods` is built on top -//! of [glutin], the cross-platform OpenGL utility and windowing -//! library. -//! -//! For the engine itself look next door in lib.rs. -//! -//! [glutin]: https://github.com/tomaka/glutin - -extern crate compositing; -extern crate egl; -extern crate env_logger; -extern crate errno; -extern crate euclid; -extern crate gleam; -extern crate layers; -extern crate libc; -extern crate msg; -extern crate net_traits; -extern crate script_traits; -extern crate servo; -extern crate style_traits; -extern crate time; -extern crate url; -extern crate util; - -#[link(name = "stlport")] -extern {} - -use compositing::windowing::WindowEvent; -use servo::Browser; -use std::env; -use util::opts; -use util::panicking; - -mod input; -mod window; - -struct BrowserWrapper { - browser: Browser, -} - -fn main() { - env_logger::init().unwrap(); - - // Parse the command line options and store them globally - opts::from_cmdline_args(env::args().collect::>().as_slice()); - - panicking::initiate_panic_hook(); - - let window = window::Window::new(); - - // Our wrapper around `Browser` that also implements some - // callbacks required by the glutin window implementation. - let mut browser = BrowserWrapper { - browser: Browser::new(window.clone()), - }; - - input::run_input_loop(&window.event_send); - - browser.browser.handle_events(vec![WindowEvent::InitializeCompositing]); - - // Feed events from the window to the browser until the browser - // says to stop. - loop { - let events = window.wait_events(); - let should_continue = browser.browser.handle_events(events); - if !should_continue { - break - } - } -} diff --git a/ports/gonk/src/native_window_glue.cpp b/ports/gonk/src/native_window_glue.cpp deleted file mode 100644 index 434f47f81d3..00000000000 --- a/ports/gonk/src/native_window_glue.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include -#include -#include "system/window.h" - -struct GonkNativeWindow { - ANativeWindow window; - int (*set_usage)(struct ANativeWindow* window, int usage); - int (*set_format)(struct ANativeWindow* window, int format); - int (*set_transform)(struct ANativeWindow* window, int transform); - int (*set_dimensions)(struct ANativeWindow* window, int w, int h); - int (*api_connect)(struct ANativeWindow* window, int api); - int (*api_disconnect)(struct ANativeWindow* window, int api); -}; - -// Rust doesn't support implementing variadic functions, so handle that here - -extern "C" int -gnw_perform(struct ANativeWindow* window, int op, ...) { - GonkNativeWindow *gnw = (GonkNativeWindow *)window; - va_list ap; - - switch (op) { - case NATIVE_WINDOW_SET_USAGE: { - int usage; - va_start(ap, op); - usage = va_arg(ap, int); - va_end(ap); - return gnw->set_usage(window, usage); - } - case NATIVE_WINDOW_SET_BUFFERS_FORMAT: { - int format; - va_start(ap, op); - format = va_arg(ap, int); - va_end(ap); - return gnw->set_format(window, format); - } - case NATIVE_WINDOW_SET_BUFFERS_TRANSFORM: { - int transform; - va_start(ap, op); - transform = va_arg(ap, int); - va_end(ap); - return gnw->set_transform(window, transform); - } - case NATIVE_WINDOW_SET_BUFFERS_DIMENSIONS: { - int w, h; - va_start(ap, op); - w = va_arg(ap, int); - h = va_arg(ap, int); - va_end(ap); - return gnw->set_dimensions(window, w, h); - } - case NATIVE_WINDOW_API_CONNECT: { - int api; - va_start(ap, op); - api = va_arg(ap, int); - va_end(ap); - return gnw->api_connect(window, api); - } - case NATIVE_WINDOW_API_DISCONNECT: { - int api; - va_start(ap, op); - api = va_arg(ap, int); - va_end(ap); - return gnw->api_disconnect(window, api); - } - default: - printf("Unsupported GonkNativeWindow operation! %d\n", op); - return -1; - } -} diff --git a/ports/gonk/src/window.rs b/ports/gonk/src/window.rs deleted file mode 100644 index 676e07d696c..00000000000 --- a/ports/gonk/src/window.rs +++ /dev/null @@ -1,883 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -//! A windowing implementation using gonk interfaces. - -use compositing::compositor_thread::{self, CompositorProxy, CompositorReceiver}; -use compositing::windowing::{WindowEvent, WindowMethods}; -use egl::egl; -use egl::egl::EGLConfig; -use egl::egl::EGLContext; -use egl::egl::EGLDisplay; -use egl::egl::EGLSurface; -use egl::egl::EGLint; -use euclid::point::Point2D; -use euclid::scale_factor::ScaleFactor; -use euclid::size::{Size2D, TypedSize2D}; -use gleam::gl; -use layers::geometry::DevicePixel; -use layers::platform::surface::NativeDisplay; -use libc::c_char; -use libc::c_int; -use libc::c_void; -use libc::close; -use libc::size_t; -use msg::constellation_msg::{Key, KeyModifiers}; -use net_traits::net_error_list::NetError; -use std::ffi::CString; -use std::mem::{transmute, size_of, zeroed}; -use std::ptr; -use std::rc::Rc; -use std::sync::mpsc::{channel, Sender, Receiver}; -use style_traits::cursor::Cursor; -use url::Url; -use util::geometry::ScreenPx; - -const GRALLOC_USAGE_HW_TEXTURE: c_int = 0x00000100; -const GRALLOC_USAGE_HW_RENDER: c_int = 0x00000200; -const GRALLOC_USAGE_HW_2D: c_int = 0x00000400; -const GRALLOC_USAGE_HW_COMPOSER: c_int = 0x00000800; -const GRALLOC_USAGE_HW_FB: c_int = 0x00001000; - -// system/core/include/cutils/native_handle.h - -#[repr(C)] -pub struct native_handle { - version: c_int, - numFds: c_int, - numInts: c_int, - data: [c_int; 0], -} - -// system/core/include/system/window.h - -#[repr(C)] -pub struct ANativeBase { - magic: u32, - version: u32, - reserved: [isize; 4], - incRef: extern fn(*mut ANativeBase), - decRef: extern fn(*mut ANativeBase), -} - -#[repr(C)] -pub struct ANativeWindowBuffer { - common: ANativeBase, - width: c_int, - height: c_int, - stride: c_int, - format: c_int, - usage: c_int, - reserved: [*mut c_void; 2], - handle: *const native_handle, - reserved_proc: [*mut c_void; 8], -} - -#[repr(C)] -pub struct ANativeWindow { - common: ANativeBase, - flags: u32, - minSwapInterval: c_int, - maxSwapInterval: c_int, - xdpi: f32, - ydpi: f32, - oem: [isize; 4], - setSwapInterval: extern fn(*mut ANativeWindow, c_int) -> c_int, - //dequeueBuffer_DEPRECATED: extern fn(*mut ANativeWindow, *mut *mut ANativeWindowBuffer) -> c_int, - //lockBuffer_DEPRECATED: extern fn(*mut ANativeWindow, *mut ANativeWindowBuffer) -> c_int, - //queueBuffer_DEPRECATED: extern fn(*mut ANativeWindow, *mut ANativeWindowBuffer) -> c_int, - dequeueBuffer_DEPRECATED: *const c_void, - lockBuffer_DEPRECATED: *const c_void, - queueBuffer_DEPRECATED: *const c_void, - query: extern fn(*const ANativeWindow, c_int, *mut c_int) -> c_int, - perform: extern fn(*mut ANativeWindow, c_int, ...) -> c_int, - //cancelBuffer_DEPRECATED: extern fn(*mut ANativeWindow, *mut ANativeWindowBuffer) -> c_int, - cancelBuffer_DEPRECATED: *const c_void, - dequeueBuffer: extern fn(*mut ANativeWindow, *mut *mut ANativeWindowBuffer, *mut c_int) -> c_int, - queueBuffer: extern fn(*mut ANativeWindow, *mut ANativeWindowBuffer, c_int) -> c_int, - cancelBuffer: extern fn(*mut ANativeWindow, *mut ANativeWindowBuffer, c_int) -> c_int, -} - -// hardware/libhardware/include/hardware/hardware.h - -#[repr(C)] -pub struct hw_module_methods { - open: extern fn(*const hw_module, *const c_char, *mut *const hw_device) -> c_int, -} - -#[repr(C)] -pub struct hw_module { - tag: u32, - module_api_version: u16, - hal_api_version: u16, - id: *const c_char, - name: *const c_char, - author: *const c_char, - methods: *mut hw_module_methods, - dso: *mut u32, - reserved: [u32; (32 - 7)], -} - -#[repr(C)] -pub struct hw_device { - tag: u32, - version: u32, - module: *mut hw_module, - reserved: [u32; 12], - close: extern fn(*mut hw_device) -> c_int, -} - -#[link(name = "hardware")] -extern { - fn hw_get_module(id: *const c_char, module: *mut *const hw_module) -> c_int; -} - -// hardware/libhardware/include/hardware/hwcomposer.h - -#[repr(C)] -pub struct hwc_color { - r: u8, - g: u8, - b: u8, - a: u8, -} - -#[repr(C)] -#[derive(Copy, Clone)] -pub struct hwc_rect { - left: c_int, - top: c_int, - right: c_int, - bottom: c_int, -} - -#[repr(C)] -pub struct hwc_region { - numRects: i32, - rects: *const hwc_rect, -} - -const HWC_FRAMEBUFFER: i32 = 0; -const HWC_OVERLAY: i32 = 1; -const HWC_BACKGROUND: i32 = 2; -const HWC_FRAMEBUFFER_TARGET: i32 = 3; -const HWC_BLIT: i32 = 4; - -const HWC_SKIP_LAYER: u32 = 1; - -#[repr(C)] -pub struct hwc_layer { - compositionType: i32, - hints: u32, - flags: u32, - handle: *const native_handle, - transform: u32, - blending: i32, - sourceCrop: hwc_rect, // If HWC 1.3, then this takes floats - displayFrame: hwc_rect, - visibleRegionScreen: hwc_region, - acquireFenceFd: c_int, - releaseFenceFd: c_int, - planeAlpha: u8, - pad: [u8; 3], - reserved: [i32; (24 - 19)], -} - -#[repr(C)] -pub struct hwc_display_contents { - retireFenceFd: c_int, - // HWC 1.0 not supported - outbuf: *const u32, - outbufAcquireFenceFd: c_int, - flags: u32, - numHwLayers: size_t, - hwLayers: [hwc_layer; 2], -} - -#[repr(C)] -pub struct hwc_procs { - invalidate: extern fn(*const hwc_procs), - vsync: extern fn(*const hwc_procs, c_int, i64), - hotplug: extern fn(*const hwc_procs, c_int, c_int), -} - -const HWC_DISPLAY_NO_ATTRIBUTE: u32 = 0; -const HWC_DISPLAY_VSYNC_PERIOD: u32 = 1; -const HWC_DISPLAY_WIDTH: u32 = 2; -const HWC_DISPLAY_HEIGHT: u32 = 3; -const HWC_DISPLAY_DPI_X: u32 = 4; -const HWC_DISPLAY_DPI_Y: u32 = 5; - -#[repr(C)] -pub struct hwc_composer_device { - common: hw_device, - prepare: extern fn(*mut hwc_composer_device, size_t, *mut *mut hwc_display_contents) -> c_int, - set: extern fn(*mut hwc_composer_device, size_t, *mut *mut hwc_display_contents) -> c_int, - eventControl: extern fn(*mut hwc_composer_device, c_int, c_int, c_int) -> c_int, - blank: extern fn(*mut hwc_composer_device, c_int, c_int) -> c_int, - query: extern fn(*mut hwc_composer_device, c_int, *mut c_int) -> c_int, - registerProcs: extern fn(*mut hwc_composer_device, *const hwc_procs), - dump: extern fn(*mut hwc_composer_device, *const c_char, c_int), - getDisplayConfigs: extern fn(*mut hwc_composer_device, c_int, *mut u32, *mut size_t) -> c_int, - getDisplayAttributes: extern fn(*mut hwc_composer_device, c_int, u32, *const u32, *mut i32) -> c_int, - reserved: [*mut c_void; 4], -} - -// system/core/include/system/graphics.h - -#[repr(C)] -pub struct android_ycbcr { - y: *mut c_void, - cb: *mut c_void, - cr: *mut c_void, - ystride: size_t, - cstride: size_t, - chroma_step: size_t, - reserved: [u32; 8], -} - -// hardware/libhardware/include/hardware/gralloc.h - -#[repr(C)] -pub struct gralloc_module { - common: hw_module, - registerBuffer: extern fn(*const gralloc_module, *const native_handle) -> c_int, - unregisterBuffer: extern fn(*const gralloc_module, *const native_handle) -> c_int, - lock: extern fn(*const gralloc_module, *const native_handle, c_int, c_int, c_int, c_int, - *mut *mut c_void) -> c_int, - unlock: extern fn(*const gralloc_module, *const native_handle) -> c_int, - perform: extern fn(*const gralloc_module, c_int, ...) -> c_int, - lock_ycbcr: extern fn(*const gralloc_module, *const native_handle, c_int, c_int, c_int, c_int, - c_int, *mut android_ycbcr) -> c_int, - reserved: [*mut c_void; 6], -} - -#[repr(C)] -pub struct alloc_device { - common: hw_device, - allocSize: extern fn(*mut alloc_device, c_int, c_int, c_int, c_int, *mut *const native_handle, - *mut c_int, c_int) -> c_int, - alloc: extern fn(*mut alloc_device, c_int, c_int, c_int, c_int, *mut *const native_handle, - *mut c_int) -> c_int, - free: extern fn(*mut alloc_device, *const native_handle) -> c_int, - dump: Option, - reserved: [*mut c_void; 7], -} - -#[repr(C)] -pub struct GonkNativeWindow { - window: ANativeWindow, - set_usage: extern fn(*mut GonkNativeWindow, c_int) -> c_int, - set_format: extern fn(*mut GonkNativeWindow, c_int) -> c_int, - set_transform: extern fn(*mut GonkNativeWindow, c_int) -> c_int, - set_dimensions: extern fn(*mut GonkNativeWindow, c_int, c_int) -> c_int, - api_connect: extern fn(*mut GonkNativeWindow, c_int) -> c_int, - api_disconnect: extern fn(*mut GonkNativeWindow, c_int) -> c_int, - count: i32, - alloc_dev: *mut alloc_device, - hwc_dev: *mut hwc_composer_device, - width: i32, - height: i32, - format: c_int, - usage: c_int, - last_fence: c_int, - last_idx: i32, - bufs: [Option<*mut GonkNativeWindowBuffer>; 2], - fences: [c_int; 2], -} - -impl ANativeBase { - fn magic(a: char, b: char, c: char, d: char) -> u32 { - (a as u32) << 24 | (b as u32) << 16 | (c as u32) << 8 | d as u32 - } -} - -#[repr(C)] -pub struct GonkNativeWindowBuffer { - buffer: ANativeWindowBuffer, - count: i32, -} - -#[link(name = "native_window_glue", kind = "static")] -extern { - fn gnw_perform(win: *mut ANativeWindow, op: c_int, ...) -> c_int; -} - -#[link(name = "suspend")] -extern { - fn autosuspend_disable(); -} - -#[allow(unused_variables)] -extern fn setSwapInterval(base: *mut ANativeWindow, - interval: c_int) -> c_int { - 0 -} - -const NATIVE_WINDOW_WIDTH: c_int = 0; -const NATIVE_WINDOW_HEIGHT: c_int = 1; -const NATIVE_WINDOW_FORMAT: c_int = 2; -const NATIVE_WINDOW_DEFAULT_WIDTH: c_int = 6; -const NATIVE_WINDOW_DEFAULT_HEIGHT: c_int = 7; -const NATIVE_WINDOW_TRANSFORM_HINT: c_int = 8; - -extern fn query(base: *const ANativeWindow, - what: c_int, value: *mut c_int) -> c_int { - unsafe { - let window: &GonkNativeWindow = transmute(base); - match what { - NATIVE_WINDOW_WIDTH => { *value = window.width; 0 } - NATIVE_WINDOW_HEIGHT => { *value = window.height; 0 } - NATIVE_WINDOW_FORMAT => { *value = window.format; 0 } - NATIVE_WINDOW_DEFAULT_WIDTH => { *value = window.width; 0 } - NATIVE_WINDOW_DEFAULT_HEIGHT => { *value = window.height; 0 } - NATIVE_WINDOW_TRANSFORM_HINT => { *value = 0; 0 } - _ => { println!("Unsupported query - {}", what); -1 } - } - } -} - -extern fn dequeueBuffer(base: *mut ANativeWindow, buf: *mut *mut ANativeWindowBuffer, fence: *mut c_int) -> c_int { - unsafe { - let window: &mut GonkNativeWindow = transmute(base); - for idx in 0..window.bufs.len() { - if idx == window.last_idx as usize { - continue; - } - match window.bufs[idx] { - Some(entry) => { - (*buf) = transmute(entry); - window.bufs[idx] = None; - *fence = window.fences[idx]; - window.fences[idx] = -1; - return 0; - }, - None => (), - } - } - } - -1 -} - -extern fn queueBuffer(base: *mut ANativeWindow, buf: *mut ANativeWindowBuffer, fence: c_int) -> c_int { - unsafe { - let window: &mut GonkNativeWindow = transmute(base); - for idx in 0..window.bufs.len() { - match window.bufs[idx] { - Some(_) => (), - None => { - window.last_idx = idx as i32; - window.bufs[idx] = Some(transmute(buf)); - window.fences[idx] = window.draw(buf, fence); - return 0; - }, - } - } - } - -1 -} - -extern fn cancelBuffer(base: *mut ANativeWindow, buf: *mut ANativeWindowBuffer, fence: c_int) -> c_int { - unsafe { - let window: &mut GonkNativeWindow = transmute(base); - for idx in 0..window.bufs.len() { - match window.bufs[idx] { - Some(_) => (), - None => { - window.bufs[idx] = Some(transmute(buf)); - window.fences[idx] = -1; - close(fence); - return 0; - }, - } - } - } - -1 -} - -extern fn set_usage(window: *mut GonkNativeWindow, - usage: c_int) -> c_int { - println!("Setting usage flags to {}", usage); - unsafe { - (*window).usage = usage; - (*window).bufs[0] = Some(GonkNativeWindowBuffer::new( - (*window).alloc_dev, (*window).width, (*window).height, - (*window).format, (*window).usage)); - (*window).bufs[1] = Some(GonkNativeWindowBuffer::new( - (*window).alloc_dev, (*window).width, (*window).height, - (*window).format, (*window).usage)); - } - 0 -} - -extern fn set_format(window: *mut GonkNativeWindow, - format: c_int) -> c_int { - println!("Setting format to {}", format); - unsafe { - (*window).format = format; - } - 0 -} - -extern fn set_transform(_: *mut GonkNativeWindow, - _: c_int) -> c_int { - 0 -} - -extern fn set_dimensions(_: *mut GonkNativeWindow, - _: c_int, _: c_int) -> c_int { - 0 -} - -#[allow(unused_variables)] -extern fn api_connect(window: *mut GonkNativeWindow, - api: c_int) -> c_int { - 0 -} - -#[allow(unused_variables)] -extern fn api_disconnect(window: *mut GonkNativeWindow, - api: c_int) -> c_int { - 0 -} - -extern fn gnw_incRef(base: *mut ANativeBase) { - let win: &mut GonkNativeWindow = unsafe { transmute(base) }; - win.count += 1; -} - -extern fn gnw_decRef(base: *mut ANativeBase) { - let win: &mut GonkNativeWindow = unsafe { transmute(base) }; - win.count -= 1; - if win.count == 0 { - unsafe { transmute::<_, Box>(base) }; - } -} - -impl GonkNativeWindow { - pub fn new(alloc_dev: *mut alloc_device, hwc_dev: *mut hwc_composer_device, width: i32, - height: i32, usage: c_int) -> *mut GonkNativeWindow { - let win = box GonkNativeWindow { - window: ANativeWindow { - common: ANativeBase { - magic: ANativeBase::magic('_', 'w', 'n', 'd'), - version: size_of::() as u32, - reserved: unsafe { zeroed() }, - incRef: gnw_incRef, - decRef: gnw_decRef, - }, - flags: 0, - minSwapInterval: 0, - maxSwapInterval: 0, - xdpi: 0f32, - ydpi: 0f32, - oem: unsafe { zeroed() }, - setSwapInterval: setSwapInterval, - dequeueBuffer_DEPRECATED: ptr::null(), - lockBuffer_DEPRECATED: ptr::null(), - queueBuffer_DEPRECATED: ptr::null(), - query: query, - perform: unsafe { transmute(gnw_perform) }, - cancelBuffer_DEPRECATED: ptr::null(), - dequeueBuffer: dequeueBuffer, - queueBuffer: queueBuffer, - cancelBuffer: cancelBuffer, - }, - set_usage: set_usage, - set_format: set_format, - set_transform: set_transform, - set_dimensions: set_dimensions, - api_connect: api_connect, - api_disconnect: api_disconnect, - count: 1, - alloc_dev: alloc_dev, - hwc_dev: hwc_dev, - width: width, - height: height, - format: 0, - usage: usage, - last_fence: -1, - last_idx: -1, - bufs: unsafe { zeroed() }, - fences: [-1, -1], - }; - - unsafe { transmute(win) } - } - - fn draw(&mut self, buf: *mut ANativeWindowBuffer, fence: c_int) -> c_int { - let gonkbuf: &mut GonkNativeWindowBuffer = unsafe { transmute(buf) }; - let rect = hwc_rect { - left: 0, top: 0, right: gonkbuf.buffer.width, bottom: gonkbuf.buffer.height - }; - let mut list = hwc_display_contents { - retireFenceFd: -1, - outbuf: ptr::null(), - outbufAcquireFenceFd: -1, - flags: 1, /* HWC_GEOMETRY_CHANGED */ - numHwLayers: 2, - hwLayers: [ - hwc_layer { - compositionType: HWC_FRAMEBUFFER, - hints: 0, - flags: HWC_SKIP_LAYER, - handle: ptr::null(), - transform: 0, - blending: 0, - sourceCrop: hwc_rect { - left: 0, top: 0, right: 0, bottom: 0 - }, - displayFrame: hwc_rect { - left: 0, top: 0, right: 0, bottom: 0 - }, - visibleRegionScreen: hwc_region { - numRects: 0, - rects: ptr::null(), - }, - acquireFenceFd: -1, - releaseFenceFd: -1, - planeAlpha: 0xFF, - pad: [0, 0, 0], - reserved: [0, 0, 0, 0, 0], - }, - hwc_layer { - compositionType: HWC_FRAMEBUFFER_TARGET, - hints: 0, - flags: 0, - handle: gonkbuf.buffer.handle, - transform: 0, - blending: 0, - sourceCrop: rect, - displayFrame: rect, - visibleRegionScreen: hwc_region { - numRects: 1, - rects: &rect, - }, - acquireFenceFd: fence, - releaseFenceFd: -1, - planeAlpha: 0xFF, - pad: [0, 0, 0], - reserved: [0, 0, 0, 0, 0], - }, - ], - }; - unsafe { - let mut displays: [*mut hwc_display_contents; 3] = [ &mut list, ptr::null_mut(), ptr::null_mut(), ]; - let _ = ((*self.hwc_dev).prepare)(self.hwc_dev, - displays.len() as size_t, - transmute(displays.as_mut_ptr())); - let _ = ((*self.hwc_dev).set)(self.hwc_dev, displays.len() as size_t, transmute(displays.as_mut_ptr())); - if list.retireFenceFd >= 0 { - close(list.retireFenceFd); - } - } - list.hwLayers[1].releaseFenceFd - } -} - -extern fn gnwb_incRef(base: *mut ANativeBase) { - let buf: &mut GonkNativeWindowBuffer = unsafe { transmute(base) }; - buf.count += 1; -} - -extern fn gnwb_decRef(base: *mut ANativeBase) { - let buf: &mut GonkNativeWindowBuffer = unsafe { transmute(base) }; - buf.count -= 1; - if buf.count == 0 { - unsafe { transmute::<_, Box>(base) }; - } -} - -impl GonkNativeWindowBuffer { - pub fn new(dev: *mut alloc_device, - width: i32, - height: i32, - format: c_int, usage: c_int) -> *mut GonkNativeWindowBuffer { - let mut buf = box GonkNativeWindowBuffer { - buffer: ANativeWindowBuffer { - common: ANativeBase { - magic: ANativeBase::magic('_', 'b', 'f', 'r'), - version: size_of::() as u32, - reserved: unsafe { zeroed() }, - incRef: gnwb_incRef, - decRef: gnwb_decRef, - }, - width: width, - height: height, - stride: 0, - format: format, - usage: usage, - reserved: unsafe { zeroed() }, - handle: ptr::null(), - reserved_proc: unsafe { zeroed() }, - }, - count: 1, - }; - - let ret = unsafe { - ((*dev).alloc)(dev, width, height, format, usage, - &mut buf.buffer.handle, &mut buf.buffer.stride) - }; - assert!(ret == 0, "Failed to allocate gralloc buffer!"); - - unsafe { transmute(buf) } - } -} - -/// The type of a window. -pub struct Window { - event_recv: Receiver, - pub event_send: Sender, - width: i32, - height: i32, - native_window: *mut GonkNativeWindow, - dpy: EGLDisplay, - ctx: EGLContext, - surf: EGLSurface, -} - -impl Window { - /// Creates a new window. - pub fn new() -> Rc { - let mut hwc_mod = ptr::null(); - unsafe { - let cstr = CString::new("hwcomposer").unwrap(); - let ret = hw_get_module(cstr.as_ptr(), &mut hwc_mod); - assert!(ret == 0, "Failed to get HWC module!"); - } - - let hwc_device: *mut hwc_composer_device; - unsafe { - let mut device = ptr::null(); - let cstr = CString::new("composer").unwrap(); - let ret = ((*(*hwc_mod).methods).open)(hwc_mod, cstr.as_ptr(), &mut device); - assert!(ret == 0, "Failed to get HWC device!"); - hwc_device = transmute(device); - // Require HWC 1.1 or newer - // XXX add HAL version function/macro - assert!((*hwc_device).common.version > (1 << 8), "HWC too old!"); - } - - let attrs: [u32; 4] = [ - HWC_DISPLAY_WIDTH, - HWC_DISPLAY_HEIGHT, - HWC_DISPLAY_DPI_X, - HWC_DISPLAY_NO_ATTRIBUTE]; - let mut values: [i32; 4] = [0, 0, 0, 0]; - unsafe { - // In theory, we should check the return code. - // However, there are HALs which implement this wrong. - let _ = ((*hwc_device).getDisplayAttributes)(hwc_device, 0, 0, attrs.as_ptr(), values.as_mut_ptr()); - } - - let mut gralloc_mod = ptr::null(); - let alloc_dev: *mut alloc_device; - unsafe { - let mut device = ptr::null(); - let cstr = CString::new("gralloc").unwrap(); - let ret1 = hw_get_module(cstr.as_ptr(), &mut gralloc_mod); - assert!(ret1 == 0, "Failed to get gralloc moudle!"); - let cstr2 = CString::new("gpu0").unwrap(); - let ret2 = ((*(*gralloc_mod).methods).open)(gralloc_mod, cstr2.as_ptr(), &mut device); - assert!(ret2 == 0, "Failed to get gralloc moudle!"); - alloc_dev = transmute(device); - } - - let width = values[0]; - let height = values[1]; - let dpy = egl::GetDisplay(unsafe { transmute(egl::EGL_DEFAULT_DISPLAY) }); - - let ret1 = { - let mut major: i32 = 0; - let mut minor: i32 = 0; - egl::Initialize(dpy, &mut major, &mut minor) - }; - - assert!(ret1 == 1, "Failed to initialize EGL!"); - - let conf_attr = - [egl::EGL_SURFACE_TYPE, egl::EGL_WINDOW_BIT, - egl::EGL_RENDERABLE_TYPE, egl::EGL_OPENGL_ES2_BIT, - egl::EGL_RED_SIZE, 8, - egl::EGL_GREEN_SIZE, 8, - egl::EGL_BLUE_SIZE, 8, - egl::EGL_ALPHA_SIZE, 0, - egl::EGL_NONE, 0]; - - let mut config: EGLConfig = unsafe { transmute(0isize) }; - let mut num_config: EGLint = 0; - - let ret2 = unsafe { - egl::ChooseConfig(dpy, transmute(conf_attr.as_ptr()), &mut config, 1, &mut num_config) - }; - - assert!(ret2 == 1, "Failed to choose a config"); - - let usage = GRALLOC_USAGE_HW_FB | GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_COMPOSER; - let native_window = GonkNativeWindow::new(alloc_dev, hwc_device, width, height, usage); - let eglwindow = unsafe { egl::CreateWindowSurface(dpy, config, transmute(native_window), ptr::null()) }; - - let ctx_attr = - [egl::EGL_CONTEXT_CLIENT_VERSION, 2, - egl::EGL_NONE, 0]; - - let ctx = unsafe { - egl::CreateContext(dpy, config, transmute(egl::EGL_NO_CONTEXT), transmute(ctx_attr.as_ptr())) - }; - - if ctx == unsafe { transmute(egl::EGL_NO_CONTEXT) } { panic!("Failed to create a context!") } - - unsafe { - autosuspend_disable(); - ((*hwc_device).blank)(hwc_device, 0, 0); - } - - let ret3 = egl::MakeCurrent(dpy, eglwindow, eglwindow, ctx); - - assert!(ret3 == 1, "Failed to make current!"); - - unsafe { - autosuspend_disable(); - ((*hwc_device).blank)(hwc_device, 0, 0); - } - - unsafe { - gl::ClearColor(1f32, 1f32, 1f32, 1f32); - gl::Clear(gl::COLOR_BUFFER_BIT); - } - egl::SwapBuffers(dpy, eglwindow); - - let (tx, rx) = channel(); - - // Create our window object. - let window = Window { - event_recv: rx, - event_send: tx, - width: width, - height: height, - native_window: native_window, - dpy: dpy, - ctx: ctx, - surf: eglwindow, - }; - - Rc::new(window) - } - - pub fn wait_events(&self) -> Vec { - vec![self.event_recv.recv().unwrap()] - } -} - -impl Drop for Window { - fn drop (&mut self) { - unsafe { - ((*self.native_window).window.common.decRef)(&mut (*self.native_window).window.common); - } - } -} - -impl WindowMethods for Window { - /// Returns the size of the window in hardware pixels. - fn framebuffer_size(&self) -> TypedSize2D { - Size2D::typed(self.width as u32, self.height as u32) - } - - /// Returns the size of the window in density-independent "px" units. - fn size(&self) -> TypedSize2D { - Size2D::typed(self.width as f32, self.height as f32) - } - - fn client_window(&self) -> (Size2D, Point2D) { - let width = self.width as u32; - let height = self.height as u32; - (Size2D::new(width, height), Point2D::zero()) - } - - fn set_inner_size(&self, _: Size2D) { - } - - fn set_position(&self, _: Point2D) { - } - - /// Presents the window to the screen (perhaps by page flipping). - fn present(&self) { - let _ = egl::SwapBuffers(self.dpy, self.surf); - } - - fn set_page_title(&self, _: Option) { - } - - fn set_page_url(&self, _: Url) { - } - - fn status(&self, _: Option) { - } - - fn load_start(&self, _: bool, _: bool) { - } - - fn load_end(&self, _: bool, _: bool, _: bool) { - } - - fn load_error(&self, _: NetError, _: String) { - } - - fn head_parsed(&self) { - } - - fn hidpi_factor(&self) -> ScaleFactor { - ScaleFactor::new(1.0) - } - - fn native_display(&self) -> NativeDisplay { - NativeDisplay::new_with_display(self.dpy) - } - - fn handle_key(&self, _: Key, _: KeyModifiers) { - } - - fn create_compositor_channel(&self) - -> (Box, Box) { - let (sender, receiver) = channel(); - (box GonkCompositorProxy { - sender: sender, - event_sender: self.event_send.clone(), - } as Box, - box receiver as Box) - } - - fn set_cursor(&self, _: Cursor) { - } - - fn set_favicon(&self, _: Url) { - } - - fn prepare_for_composite(&self, _width: usize, _height: usize) -> bool { - true - } - - fn supports_clipboard(&self) -> bool { - true - } -} - -struct GonkCompositorProxy { - sender: Sender, - event_sender: Sender, -} - -impl CompositorProxy for GonkCompositorProxy { - fn send(&self, msg: compositor_thread::Msg) { - // Send a message and kick the OS event loop awake. - self.sender.send(msg).ok().unwrap(); - self.event_sender.send(WindowEvent::Idle).ok().unwrap(); - } - fn clone_compositor_proxy(&self) -> Box { - box GonkCompositorProxy { - sender: self.sender.clone(), - event_sender: self.event_sender.clone(), - } as Box - } -} diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 817dd6f66f1..7e2845b598f 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -325,44 +325,6 @@ class MachCommands(CommandBase): return ret - @Command('build-gonk', - description='Build the Gonk port', - category='build') - @CommandArgument('--jobs', '-j', - default=None, - help='Number of jobs to run in parallel') - @CommandArgument('--verbose', '-v', - action='store_true', - help='Print verbose output') - @CommandArgument('--release', '-r', - action='store_true', - help='Build in release mode') - def build_gonk(self, jobs=None, verbose=False, release=False): - target = "arm-linux-androideabi" - self.ensure_bootstrapped(target=target) - - opts = [] - if jobs is not None: - opts += ["-j", jobs] - if verbose: - opts += ["-v"] - if release: - opts += ["--release"] - - opts += ["--target", self.config["android"]["target"]] - env = self.build_env(gonk=True) - build_start = time() - with cd(path.join("ports", "gonk")): - ret = call(["cargo", "build"] + opts, env=env, verbose=verbose) - elapsed = time() - build_start - - # Generate Desktop Notification if elapsed-time > some threshold value - notify_build_done(elapsed) - - print("Gonk build completed in %s" % format_duration(elapsed)) - - return ret - @Command('clean', description='Clean the build directory.', category='build') diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 0fb5d86955d..497717ea9b2 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -181,10 +181,6 @@ class CommandBase(object): self.config["android"].setdefault("platform", "android-18") self.config["android"].setdefault("target", "arm-linux-androideabi") - self.config.setdefault("gonk", {}) - self.config["gonk"].setdefault("b2g", "") - self.config["gonk"].setdefault("product", "flame") - _rust_path = None _cargo_build_id = None @@ -257,7 +253,7 @@ class CommandBase(object): " --release" if release else "")) sys.exit() - def build_env(self, gonk=False, hosts_file_path=None, target=None): + def build_env(self, hosts_file_path=None, target=None): """Return an extended environment dictionary.""" env = os.environ.copy() if sys.platform == "win32" and type(env['PATH']) == unicode: @@ -322,65 +318,6 @@ class CommandBase(object): if self.config["android"]["platform"]: env["ANDROID_PLATFORM"] = self.config["android"]["platform"] - if gonk: - if self.config["gonk"]["b2g"]: - env["GONKDIR"] = self.config["gonk"]["b2g"] - if "GONKDIR" not in env: - # Things can get pretty opaque if this hasn't been set - print("Please set $GONKDIR in your environment or .servobuild file") - sys.exit(1) - if self.config["gonk"]["product"]: - env["GONK_PRODUCT"] = self.config["gonk"]["product"] - - env["ARCH_DIR"] = "arch-arm" - env["CPPFLAGS"] = ( - "-DANDROID -DTARGET_OS_GONK " - "-DANDROID_VERSION=19 " - "-DGR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1 " - "-isystem %(gonkdir)s/bionic/libc/%(archdir)s/include " - "-isystem %(gonkdir)s/bionic/libc/include/ " - "-isystem %(gonkdir)s/bionic/libc/kernel/common " - "-isystem %(gonkdir)s/bionic/libc/kernel/%(archdir)s " - "-isystem %(gonkdir)s/bionic/libm/include " - "-I%(gonkdir)s/system " - "-I%(gonkdir)s/system/core/include " - "-I%(gonkdir)s/frameworks/native/opengl/include " - "-I%(gonkdir)s/external/zlib " - ) % {"gonkdir": env["GONKDIR"], "archdir": env["ARCH_DIR"]} - env["CXXFLAGS"] = ( - "-O2 -mandroid -fPIC " - "-isystem %(gonkdir)s/api/cpp/include " - "-isystem %(gonkdir)s/external/stlport/stlport " - "-isystem %(gonkdir)s/bionic " - "-isystem %(gonkdir)s/bionic/libstdc++/include " - "%(cppflags)s" - ) % {"gonkdir": env["GONKDIR"], "cppflags": env["CPPFLAGS"]} - env["CFLAGS"] = ( - "%(cxxflags)s" - ) % {"cxxflags": env["CXXFLAGS"]} - - another_extra_path = path.join( - env["GONKDIR"], "prebuilts", "gcc", "linux-x86", "arm", "arm-linux-androideabi-4.7", "bin") - - env["gonkdir"] = env["GONKDIR"] - env["gonk_toolchain_prefix"] = ( - "%(toolchain)s/arm-linux-androideabi-" - ) % {"toolchain": another_extra_path} - - env["PATH"] = "%s%s%s" % (another_extra_path, os.pathsep, env["PATH"]) - env["LDFLAGS"] = ( - "-mandroid -L%(gonkdir)s/out/target/product/%(gonkproduct)s/obj/lib " - "-Wl,-rpath-link=%(gonkdir)s/out/target/product/%(gonkproduct)s/obj/lib " - "--sysroot=%(gonkdir)s/out/target/product/%(gonkproduct)s/obj/" - ) % {"gonkdir": env["GONKDIR"], "gonkproduct": env["GONK_PRODUCT"]} - - # Not strictly necessary for a vanilla build, but might be when tweaking the openssl build - openssl_dir = ( - "%(gonkdir)s/out/target/product/%(gonkproduct)s/obj/lib" - ) % {"gonkdir": env["GONKDIR"], "gonkproduct": env["GONK_PRODUCT"]} - env["OPENSSL_LIB_DIR"] = openssl_dir - env['OPENSSL_INCLUDE_DIR'] = path.join(env["GONKDIR"], "external/openssl/include") - # These are set because they are the variable names that build-apk # expects. However, other submodules have makefiles that reference # the env var names above. Once glutin is enabled and set as the diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 95bb2d054a9..2619827c226 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -83,8 +83,7 @@ class MachCommands(CommandBase): cargo_paths = [path.join('components', 'servo'), path.join('ports', 'cef'), - path.join('ports', 'geckolib'), - path.join('ports', 'gonk')] + path.join('ports', 'geckolib')] for cargo_path in cargo_paths: with cd(cargo_path): diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 8bdce255b38..48f7a0705bc 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -33,7 +33,6 @@ file_patterns_to_ignore = [ # Files that are ignored for all tidy and lint checks. ignored_files = [ # Generated and upstream code combined with our own. Could use cleanup - os.path.join(".", "ports", "gonk", "src", "native_window_glue.cpp"), os.path.join(".", "ports", "geckolib", "gecko_bindings", "bindings.rs"), os.path.join(".", "ports", "geckolib", "gecko_bindings", "structs.rs"), os.path.join(".", "ports", "geckolib", "string_cache", "atom_macro.rs"), diff --git a/servobuild.example b/servobuild.example index da3d8d73c80..1b6848315ec 100644 --- a/servobuild.example +++ b/servobuild.example @@ -46,11 +46,3 @@ debug-mozjs = false #ndk = "/opt/android-ndk" #toolchain = "/opt/android-toolchain" #platform = "android-18" - -# Gonk information -# Please fill the ndk/toolchain for Android too -[gonk] -# Path to B2G repo and build -# Defaults to the value of $GONKDIR -#b2g = "/opt/B2G" -product = "flame"