2013-04-05 23:31:01 +00:00
|
|
|
/* 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/. */
|
|
|
|
|
2014-08-03 03:41:10 +00:00
|
|
|
#![feature(globs, macro_rules, phase, unsafe_destructor)]
|
2013-10-22 16:16:17 +00:00
|
|
|
|
2014-11-13 03:48:31 +00:00
|
|
|
#![deny(unused_imports)]
|
|
|
|
#![deny(unused_variables)]
|
2014-09-14 13:56:58 +00:00
|
|
|
|
2014-04-27 22:52:39 +00:00
|
|
|
#![feature(phase)]
|
2014-06-28 01:25:07 +00:00
|
|
|
#[phase(plugin, link)]
|
2014-04-04 22:52:50 +00:00
|
|
|
extern crate log;
|
|
|
|
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate azure;
|
|
|
|
extern crate collections;
|
|
|
|
extern crate geom;
|
|
|
|
extern crate layers;
|
2014-04-27 22:52:39 +00:00
|
|
|
extern crate libc;
|
2014-07-02 00:06:14 +00:00
|
|
|
extern crate native;
|
|
|
|
extern crate rustrt;
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate stb_image;
|
|
|
|
extern crate png;
|
2014-09-08 06:33:09 +00:00
|
|
|
extern crate serialize;
|
2014-11-04 01:30:35 +00:00
|
|
|
extern crate unicode;
|
2014-06-28 01:25:07 +00:00
|
|
|
#[phase(plugin)]
|
2014-09-23 12:53:37 +00:00
|
|
|
extern crate "plugins" as servo_plugins;
|
2014-09-20 22:35:08 +00:00
|
|
|
extern crate "net" as servo_net;
|
2014-06-28 01:25:07 +00:00
|
|
|
#[phase(plugin, link)]
|
2014-09-20 22:35:08 +00:00
|
|
|
extern crate "util" as servo_util;
|
|
|
|
extern crate "msg" as servo_msg;
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate style;
|
|
|
|
extern crate sync;
|
2014-11-05 01:12:32 +00:00
|
|
|
extern crate time;
|
2014-08-09 03:00:27 +00:00
|
|
|
extern crate url;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2013-04-18 19:53:41 +00:00
|
|
|
// Eventually we would like the shaper to be pluggable, as many operating systems have their own
|
|
|
|
// shapers. For now, however, this is a hard dependency.
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate harfbuzz;
|
2013-04-18 19:53:41 +00:00
|
|
|
|
2013-08-23 04:00:42 +00:00
|
|
|
// Linux and Android-specific library dependencies
|
2014-11-13 03:48:31 +00:00
|
|
|
#[cfg(any(target_os="linux", target_os = "android"))]
|
|
|
|
extern crate fontconfig;
|
|
|
|
|
|
|
|
#[cfg(any(target_os="linux", target_os = "android"))]
|
|
|
|
extern crate freetype;
|
2013-04-18 19:53:41 +00:00
|
|
|
|
|
|
|
// Mac OS-specific library dependencies
|
2014-03-19 16:35:17 +00:00
|
|
|
#[cfg(target_os="macos")] extern crate core_foundation;
|
|
|
|
#[cfg(target_os="macos")] extern crate core_graphics;
|
|
|
|
#[cfg(target_os="macos")] extern crate core_text;
|
2013-04-18 19:53:41 +00:00
|
|
|
|
2014-06-05 17:58:44 +00:00
|
|
|
pub use render_context::RenderContext;
|
|
|
|
|
2013-12-13 01:58:21 +00:00
|
|
|
// Private rendering modules
|
2013-08-16 22:46:03 +00:00
|
|
|
mod render_context;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
|
|
|
// Rendering
|
|
|
|
pub mod color;
|
2014-06-05 20:46:28 +00:00
|
|
|
#[path="display_list/mod.rs"]
|
2012-11-12 20:08:38 +00:00
|
|
|
pub mod display_list;
|
|
|
|
pub mod render_task;
|
|
|
|
|
|
|
|
// Fonts
|
|
|
|
pub mod font;
|
2013-10-16 22:37:42 +00:00
|
|
|
pub mod font_context;
|
2014-07-08 23:31:07 +00:00
|
|
|
pub mod font_cache_task;
|
|
|
|
pub mod font_template;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
|
|
|
// Misc.
|
2013-08-20 20:39:48 +00:00
|
|
|
mod buffer_map;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2013-04-18 19:53:41 +00:00
|
|
|
// Platform-specific implementations.
|
|
|
|
#[path="platform/mod.rs"]
|
|
|
|
pub mod platform;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
|
|
|
// Text
|
2012-12-04 20:23:32 +00:00
|
|
|
#[path = "text/mod.rs"]
|
|
|
|
pub mod text;
|