diff --git a/configure b/configure index f035ad7f3ad..2e7ebb59a52 100755 --- a/configure +++ b/configure @@ -414,18 +414,10 @@ else LIBTOOLIZE=libtoolize fi -PIXMAN_ACLOCALCMD="aclocal ${OSX_PKG_CONFIG_M4_MACROS}" -CAIRO_ACLOCALCMD="aclocal ${OSX_PKG_CONFIG_M4_MACROS} -Ibuild" AUTOCMD="${LIBTOOLIZE} && autoconf && autoheader && automake --add-missing --copy --force" # Copied from cairo's autogen.sh. Build fails without -CAIRO_BOILERPLATE="touch boilerplate/Makefile.am.features && touch src/Makefile.am.features" -PIXMAN_AUTOCMD="${PIXMAN_ACLOCALCMD} && ${AUTOCMD}" -CAIRO_AUTOCMD="${CAIRO_BOILERPLATE} && ${CAIRO_ACLOCALCMD} && ${AUTOCMD}" -(cd ${CFG_SRC_DIR}src/pixman && eval ${PIXMAN_AUTOCMD}) || exit $? -(cd ${CFG_SRC_DIR}src/cairo && eval ${CAIRO_AUTOCMD}) || exit $? - -CFG_SUBMODULES="libwapcaplet rust-wapcaplet rust-harfbuzz rust-opengles skia rust-azure rust-cairo rust-stb-image rust-geom rust-glut rust-layers rust-http-client libparserutils libhubbub libcss rust-netsurfcss rust-css rust-hubbub sharegl rust-mozjs mozjs pixman cairo" +CFG_SUBMODULES="libwapcaplet rust-wapcaplet rust-harfbuzz rust-opengles skia rust-azure rust-stb-image rust-geom rust-glut rust-layers rust-http-client libparserutils libhubbub libcss rust-netsurfcss rust-css rust-hubbub sharegl rust-mozjs mozjs" if [ $CFG_OSTYPE = "apple-darwin" ] then @@ -496,23 +488,11 @@ do CONFIGURE_SCRIPT="${CFG_SRC_DIR}src/${i}/js/src/configure" fi - # needed because Azure's configure wants "--enable-cairo --enable-skia" + # needed because Azure's configure wants "--enable-skia" CONFIGURE_ARGS="" ENV_VARS="" if [ $i = "rust-azure" ]; then - CONFIGURE_ARGS="--enable-cairo --enable-skia" - fi - # libpng isn't available by default on OS X so don't make it required for cairo - # png is in turn required for the svg backend - if [ $i = "cairo" -a ${CFG_OSTYPE} = "apple-darwin" ]; then - CONFIGURE_ARGS="--enable-png=no --enable-svg=no --enable-ft=no --enable-xlib=no" - fi - - # Tell pkg-config that the pixman library is in-tree - if [ $i = "cairo" ]; then - export PKG_CONFIG_PATH=../pixman - else - export PKG_CONFIG_PATH= + CONFIGURE_ARGS="--enable-skia" fi if [ -f ${CONFIGURE_SCRIPT} ] diff --git a/mk/sub.mk b/mk/sub.mk index bfb02360686..e636d15e61b 100644 --- a/mk/sub.mk +++ b/mk/sub.mk @@ -1,8 +1,6 @@ # Tests for these submodules will not be run by the default `make check` target. SLOW_TESTS += \ mozjs \ - pixman \ - cairo \ $(NULL) # These submodules will not be cleaned by the `make clean-fast` target. @@ -13,8 +11,6 @@ SLOW_BUILDS += \ mozjs \ sharegl \ skia \ - pixman \ - cairo \ $(NULL) # Builds that do not require rustc @@ -25,8 +21,6 @@ NATIVE_BUILDS += \ libwapcaplet \ mozjs \ skia \ - pixman \ - cairo \ $(NULL) # NOTE: the make magic can only compute transitive build dependencies, @@ -35,13 +29,8 @@ NATIVE_BUILDS += \ # NB. This should not be a problem once a real package system exists. -DEPS_rust-cairo += \ - cairo \ - $(NULL) - DEPS_rust-azure += \ rust-geom \ - rust-cairo \ skia \ $(NULL) @@ -51,7 +40,6 @@ DEPS_rust-glut += \ DEPS_rust-layers += \ rust-azure \ - rust-cairo \ rust-geom \ rust-glut \ rust-opengles \ @@ -102,14 +90,6 @@ DEPS_libcss += \ libparserutils \ $(NULL) -DONE_pixman = "$(B)src/pixman/pixman/.libs/libpixman-1.a" - -DONE_cairo = "$(B)src/cairo/src/.libs/libcairo.a" - -DEPS_cairo += \ - pixman \ - $(NULL) - # Platform-specific dependencies ifeq ($(CFG_OSTYPE),apple-darwin) DEPS_rust-azure += \ @@ -119,11 +99,6 @@ DEPS_rust-azure += \ skia \ $(NULL) -DEPS_rust-cairo += \ - rust-core-foundation \ - rust-core-graphics \ - $(NULL) - DEPS_rust-io-surface += \ rust-core-foundation \ $(NULL) @@ -152,12 +127,6 @@ endif ifeq ($(CFG_OSTYPE),unknown-linux-gnu) -DEPS_rust-cairo += \ - rust-freetype \ - rust-fontconfig \ - rust-xlib \ - $(NULL) - DEPS_rust-azure += \ rust-freetype \ rust-fontconfig \ diff --git a/src/README.md b/src/README.md index 48729d8cf3d..f27f834f58f 100644 --- a/src/README.md +++ b/src/README.md @@ -16,7 +16,6 @@ These are the main servo projects, as well as projects that are pure Rust (not b ## Third-party projects -* _cairo_ - The cairo rendering library * _libcss_ - The CSS library from the NetSurf web browser. We are using this for parsing and selector matching until we have a Rust solution * _libhubbub_ - The HTML parser from the NetSurf web browser. We are using this for parsing @@ -24,7 +23,6 @@ These are the main servo projects, as well as projects that are pure Rust (not b * _libparserutils_ - A parsing library used by libcss and libhubbub * _libwapcaplet_ - A string internment library used by libcss and libhubbub * _mozjs_ - The SpiderMonkey JavaScript engine, forked from mozilla-central -* _pixman_ - Pixel manipulation library (used by cairo) * _rust-azure_ - mozilla-central's 2D vector graphics abstraction layer and bindings * _rust-harfbuzz_ - The harfbuzz text shaping library and bindings * _rust-stb-image_ - The stb_image library and bindings. We are using this for image decoding @@ -33,7 +31,6 @@ These are the main servo projects, as well as projects that are pure Rust (not b ## Library bindings -* _rust-cairo_ - Bindings to the cairo drawing library, a backend for Azure * _rust-cocoa_ - Bindings to OS X's Cocoa framework * _rust-core-foundation_ - Bindings to OS X's Core Foundation framework * _rust-core-graphics_ - Bindings to OS X's Core Graphics framework, a backend for Azure diff --git a/src/servo-gfx/opts.rs b/src/servo-gfx/opts.rs index 897d202514b..eec76517db6 100644 --- a/src/servo-gfx/opts.rs +++ b/src/servo-gfx/opts.rs @@ -62,7 +62,7 @@ pub fn from_cmdline_args(args: &[~str]) -> Opts { fail!(~"unknown backend type") } } - None => CairoBackend + None => SkiaBackend }; let tile_size: uint = match getopts::opt_maybe_str(&opt_match, ~"s") { diff --git a/src/servo-gfx/servo_gfx.rc b/src/servo-gfx/servo_gfx.rc index 7baa4aa4bef..31f0977da06 100644 --- a/src/servo-gfx/servo_gfx.rc +++ b/src/servo-gfx/servo_gfx.rc @@ -5,7 +5,6 @@ #[crate_type = "lib"]; extern mod azure; -extern mod cairo; extern mod geom; extern mod http_client; extern mod stb_image; diff --git a/src/servo/servo.rc b/src/servo/servo.rc index 61d4c233a60..4eed08214ab 100755 --- a/src/servo/servo.rc +++ b/src/servo/servo.rc @@ -10,7 +10,6 @@ #[legacy_records]; extern mod azure; -extern mod cairo; extern mod geom; extern mod gfx (name = "servo_gfx"); extern mod glut;