Merge pull request #334 from pcwalton/nuke-cairo

Nuke cairo
This commit is contained in:
Jack Moffitt 2013-04-05 16:43:05 -07:00
commit c617e7d288
13 changed files with 7 additions and 75 deletions

9
.gitmodules vendored
View file

@ -76,9 +76,6 @@
[submodule "src/rust-xlib"] [submodule "src/rust-xlib"]
path = src/rust-xlib path = src/rust-xlib
url = git://github.com/mozilla-servo/rust-xlib.git url = git://github.com/mozilla-servo/rust-xlib.git
[submodule "src/rust-cairo"]
path = src/rust-cairo
url = git://github.com/mozilla-servo/rust-cairo.git
[submodule "src/rust-css"] [submodule "src/rust-css"]
path = src/rust-css path = src/rust-css
url = git://github.com/mozilla-servo/rust-css.git url = git://github.com/mozilla-servo/rust-css.git
@ -88,9 +85,3 @@
[submodule "src/rust"] [submodule "src/rust"]
path = src/rust path = src/rust
url = git://github.com/mozilla/rust.git url = git://github.com/mozilla/rust.git
[submodule "src/cairo"]
path = src/cairo
url = git://github.com/mozilla-servo/cairo.git
[submodule "src/pixman"]
path = src/pixman
url = git://github.com/mozilla-servo/pixman.git

26
configure vendored
View file

@ -414,18 +414,10 @@ else
LIBTOOLIZE=libtoolize LIBTOOLIZE=libtoolize
fi 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" AUTOCMD="${LIBTOOLIZE} && autoconf && autoheader && automake --add-missing --copy --force"
# Copied from cairo's autogen.sh. Build fails without # 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 $? 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"
(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"
if [ $CFG_OSTYPE = "apple-darwin" ] if [ $CFG_OSTYPE = "apple-darwin" ]
then then
@ -496,23 +488,11 @@ do
CONFIGURE_SCRIPT="${CFG_SRC_DIR}src/${i}/js/src/configure" CONFIGURE_SCRIPT="${CFG_SRC_DIR}src/${i}/js/src/configure"
fi fi
# needed because Azure's configure wants "--enable-cairo --enable-skia" # needed because Azure's configure wants "--enable-skia"
CONFIGURE_ARGS="" CONFIGURE_ARGS=""
ENV_VARS="" ENV_VARS=""
if [ $i = "rust-azure" ]; then if [ $i = "rust-azure" ]; then
CONFIGURE_ARGS="--enable-cairo --enable-skia" CONFIGURE_ARGS="--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=
fi fi
if [ -f ${CONFIGURE_SCRIPT} ] if [ -f ${CONFIGURE_SCRIPT} ]

View file

@ -1,8 +1,6 @@
# Tests for these submodules will not be run by the default `make check` target. # Tests for these submodules will not be run by the default `make check` target.
SLOW_TESTS += \ SLOW_TESTS += \
mozjs \ mozjs \
pixman \
cairo \
$(NULL) $(NULL)
# These submodules will not be cleaned by the `make clean-fast` target. # These submodules will not be cleaned by the `make clean-fast` target.
@ -13,8 +11,6 @@ SLOW_BUILDS += \
mozjs \ mozjs \
sharegl \ sharegl \
skia \ skia \
pixman \
cairo \
$(NULL) $(NULL)
# Builds that do not require rustc # Builds that do not require rustc
@ -25,8 +21,6 @@ NATIVE_BUILDS += \
libwapcaplet \ libwapcaplet \
mozjs \ mozjs \
skia \ skia \
pixman \
cairo \
$(NULL) $(NULL)
# NOTE: the make magic can only compute transitive build dependencies, # 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. # NB. This should not be a problem once a real package system exists.
DEPS_rust-cairo += \
cairo \
$(NULL)
DEPS_rust-azure += \ DEPS_rust-azure += \
rust-geom \ rust-geom \
rust-cairo \
skia \ skia \
$(NULL) $(NULL)
@ -51,7 +40,6 @@ DEPS_rust-glut += \
DEPS_rust-layers += \ DEPS_rust-layers += \
rust-azure \ rust-azure \
rust-cairo \
rust-geom \ rust-geom \
rust-glut \ rust-glut \
rust-opengles \ rust-opengles \
@ -102,14 +90,6 @@ DEPS_libcss += \
libparserutils \ libparserutils \
$(NULL) $(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 # Platform-specific dependencies
ifeq ($(CFG_OSTYPE),apple-darwin) ifeq ($(CFG_OSTYPE),apple-darwin)
DEPS_rust-azure += \ DEPS_rust-azure += \
@ -119,11 +99,6 @@ DEPS_rust-azure += \
skia \ skia \
$(NULL) $(NULL)
DEPS_rust-cairo += \
rust-core-foundation \
rust-core-graphics \
$(NULL)
DEPS_rust-io-surface += \ DEPS_rust-io-surface += \
rust-core-foundation \ rust-core-foundation \
$(NULL) $(NULL)
@ -152,12 +127,6 @@ endif
ifeq ($(CFG_OSTYPE),unknown-linux-gnu) ifeq ($(CFG_OSTYPE),unknown-linux-gnu)
DEPS_rust-cairo += \
rust-freetype \
rust-fontconfig \
rust-xlib \
$(NULL)
DEPS_rust-azure += \ DEPS_rust-azure += \
rust-freetype \ rust-freetype \
rust-fontconfig \ rust-fontconfig \

View file

@ -16,7 +16,6 @@ These are the main servo projects, as well as projects that are pure Rust (not b
## Third-party projects ## Third-party projects
* _cairo_ - The cairo rendering library
* _libcss_ - The CSS library from the NetSurf web browser. We are using this for parsing * _libcss_ - The CSS library from the NetSurf web browser. We are using this for parsing
and selector matching until we have a Rust solution and selector matching until we have a Rust solution
* _libhubbub_ - The HTML parser from the NetSurf web browser. We are using this for parsing * _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 * _libparserutils_ - A parsing library used by libcss and libhubbub
* _libwapcaplet_ - A string internment 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 * _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-azure_ - mozilla-central's 2D vector graphics abstraction layer and bindings
* _rust-harfbuzz_ - The harfbuzz text shaping library 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 * _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 ## Library bindings
* _rust-cairo_ - Bindings to the cairo drawing library, a backend for Azure
* _rust-cocoa_ - Bindings to OS X's Cocoa framework * _rust-cocoa_ - Bindings to OS X's Cocoa framework
* _rust-core-foundation_ - Bindings to OS X's Core Foundation 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 * _rust-core-graphics_ - Bindings to OS X's Core Graphics framework, a backend for Azure

@ -1 +0,0 @@
Subproject commit c6402195adc8830d4b2eba3f755044842edb3ae6

@ -1 +0,0 @@
Subproject commit 958bd334b3c17f529c80f2eeef4224f45c62f292

@ -1 +1 @@
Subproject commit 39f62f257f7a85e8a5226a4511a57b7956619d9f Subproject commit 7182446a4370aea910fd767219813e8effd39067

@ -1 +0,0 @@
Subproject commit a8f510a3722f14202ff7d111910fa4a1f04fae45

@ -1 +1 @@
Subproject commit d156fe3d16deb290dbd985b5bdd0046d63500105 Subproject commit ab69046850bfb65b4ddc1c077d17a7f6a089f65f

@ -1 +1 @@
Subproject commit f426314f293d710db330265c6f2033d708246937 Subproject commit 3a4d2d8221ca78e694fc7d15b1154fd1c57a44e5

View file

@ -66,7 +66,7 @@ pub fn from_cmdline_args(args: &[~str]) -> Opts {
fail!(~"unknown backend type") fail!(~"unknown backend type")
} }
} }
None => CairoBackend None => SkiaBackend
}; };
let tile_size: uint = match getopts::opt_maybe_str(&opt_match, ~"s") { let tile_size: uint = match getopts::opt_maybe_str(&opt_match, ~"s") {

View file

@ -9,7 +9,6 @@
#[crate_type = "lib"]; #[crate_type = "lib"];
extern mod azure; extern mod azure;
extern mod cairo;
extern mod geom; extern mod geom;
extern mod http_client; extern mod http_client;
extern mod stb_image; extern mod stb_image;

View file

@ -14,7 +14,6 @@
#[legacy_records]; #[legacy_records];
extern mod azure; extern mod azure;
extern mod cairo;
extern mod geom; extern mod geom;
extern mod gfx (name = "servo_gfx"); extern mod gfx (name = "servo_gfx");
extern mod glut; extern mod glut;