gecko-dev/servo/README.md

116 строки
3.5 KiB
Markdown
Исходник Обычный вид История

The Servo Parallel Browser Project
Servo is a prototype web browser engine written in the [Rust](https://github.com/mozilla/rust)
language. It is currently developed on 64bit OS X and 64bit Linux.
Servo welcomes contribution from everyone. See
[`CONTRIBUTING.md`](CONTRIBUTING.md) for help getting started.
## Prerequisites
On OS X (homebrew):
``` sh
brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
brew install automake libtool pkg-config python
pip install virtualenv
```
On OS X (MacPorts):
``` sh
sudo port install autoconf213 python27 py27-virtualenv
```
On Debian-based Linuxes:
``` sh
sudo apt-get install autoconf2.13 curl freeglut3-dev libtool \
libfreetype6-dev libgl1-mesa-dri libglib2.0-dev xorg-dev \
msttcorefonts gperf g++ automake cmake python-virtualenv
```
On Fedora:
``` sh
sudo yum install autoconf213 curl freeglut-devel libtool gcc-c++ libXi-devel \
freetype-devel mesa-libGL-devel glib2-devel libX11-devel libXrandr-devel gperf \
fontconfig-devel cabextract ttmkfdir python python-virtualenv expat-devel rpm-build
pushd .
cd /tmp
wget http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec
rpmbuild -bb msttcorefonts-2.5-1.spec
sudo yum install $HOME/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm
popd
```
Cross-compilation for Android:
Basically, pre-installed Android tools are needed.
See wiki for [details](https://github.com/mozilla/servo/wiki/Building-for-Android)
## The Rust compiler
Servo builds its own copy of Rust, so there is no need to provide a Rust
compiler.
If you'd like to know the snapshot revision of Rust which we use, see `./rust-snapshot-hash`.
## Building
Servo cannot be built in-tree; you must create a directory in which to run
configure and make and place the build artifacts.
``` sh
git clone https://github.com/mozilla/servo.git
cd servo
mkdir -p build && cd build
../configure
make && make check
servo: Merge #466 - Introduce a phantom type to prevent script from unsafely accessing the layout data (from pcwalton:phantom-type); r=pcwalton See the explanation on the commit for more detail. r? @metajack Source-Repo: https://github.com/servo/servo Source-Revision: 90b01df4c3767c22f3d625dd8ed20bceef8eef04 --HG-- rename : servo/src/components/servo-gfx/color.rs => servo/src/components/gfx/color.rs rename : servo/src/components/servo-gfx/compositor.rs => servo/src/components/gfx/compositor.rs rename : servo/src/components/servo-gfx/display_list.rs => servo/src/components/gfx/display_list.rs rename : servo/src/components/servo-gfx/font.rs => servo/src/components/gfx/font.rs rename : servo/src/components/servo-gfx/font_context.rs => servo/src/components/gfx/font_context.rs rename : servo/src/components/servo-gfx/font_list.rs => servo/src/components/gfx/font_list.rs rename : servo/src/components/servo-gfx/freetype_impl/font_context.rs => servo/src/components/gfx/freetype_impl/font_context.rs rename : servo/src/components/servo-gfx/geometry.rs => servo/src/components/gfx/geometry.rs rename : servo/src/components/servo-gfx/servo_gfx.rc => servo/src/components/gfx/gfx.rc rename : servo/src/components/servo-gfx/native.rs => servo/src/components/gfx/native.rs rename : servo/src/components/servo-gfx/opts.rs => servo/src/components/gfx/opts.rs rename : servo/src/components/servo-gfx/platform/linux/font.rs => servo/src/components/gfx/platform/linux/font.rs rename : servo/src/components/servo-gfx/platform/linux/font_context.rs => servo/src/components/gfx/platform/linux/font_context.rs rename : servo/src/components/servo-gfx/platform/linux/font_list.rs => servo/src/components/gfx/platform/linux/font_list.rs rename : servo/src/components/servo-gfx/platform/macos/font.rs => servo/src/components/gfx/platform/macos/font.rs rename : servo/src/components/servo-gfx/platform/macos/font_context.rs => servo/src/components/gfx/platform/macos/font_context.rs rename : servo/src/components/servo-gfx/platform/macos/font_list.rs => servo/src/components/gfx/platform/macos/font_list.rs rename : servo/src/components/servo-gfx/platform/mod.rs => servo/src/components/gfx/platform/mod.rs rename : servo/src/components/servo-gfx/render_context.rs => servo/src/components/gfx/render_context.rs rename : servo/src/components/servo-gfx/render_layers.rs => servo/src/components/gfx/render_layers.rs rename : servo/src/components/servo-gfx/surface.rs => servo/src/components/gfx/surface.rs rename : servo/src/components/servo-gfx/text/glyph.rs => servo/src/components/gfx/text/glyph.rs rename : servo/src/components/servo-gfx/text/mod.rs => servo/src/components/gfx/text/mod.rs rename : servo/src/components/servo-gfx/text/shaper.rs => servo/src/components/gfx/text/shaper.rs rename : servo/src/components/servo-gfx/text/shaping/harfbuzz.rs => servo/src/components/gfx/text/shaping/harfbuzz.rs rename : servo/src/components/servo-gfx/text/shaping/mod.rs => servo/src/components/gfx/text/shaping/mod.rs rename : servo/src/components/servo-gfx/text/text_run.rs => servo/src/components/gfx/text/text_run.rs rename : servo/src/components/servo-gfx/text/util.rs => servo/src/components/gfx/text/util.rs rename : servo/src/components/servo/compositing/resize_rate_limiter.rs => servo/src/components/main/compositing/resize_rate_limiter.rs rename : servo/src/components/servo/css/matching.rs => servo/src/components/main/css/matching.rs rename : servo/src/components/servo/css/node_style.rs => servo/src/components/main/css/node_style.rs rename : servo/src/components/servo/css/node_util.rs => servo/src/components/main/css/node_util.rs rename : servo/src/components/servo/css/node_void_ptr.rs => servo/src/components/main/css/node_void_ptr.rs rename : servo/src/components/servo/css/select.rs => servo/src/components/main/css/select.rs rename : servo/src/components/servo/dom/bindings/clientrect.rs => servo/src/components/main/dom/bindings/clientrect.rs rename : servo/src/components/servo/dom/bindings/clientrectlist.rs => servo/src/components/main/dom/bindings/clientrectlist.rs rename : servo/src/components/servo/dom/bindings/codegen/BindingGen.py => servo/src/components/main/dom/bindings/codegen/BindingGen.py rename : servo/src/components/servo/dom/bindings/codegen/BindingUtils.cpp => servo/src/components/main/dom/bindings/codegen/BindingUtils.cpp rename : servo/src/components/servo/dom/bindings/codegen/BindingUtils.h => servo/src/components/main/dom/bindings/codegen/BindingUtils.h rename : servo/src/components/servo/dom/bindings/codegen/Bindings.conf => servo/src/components/main/dom/bindings/codegen/Bindings.conf rename : servo/src/components/servo/dom/bindings/codegen/ClientRect.webidl => servo/src/components/main/dom/bindings/codegen/ClientRect.webidl rename : servo/src/components/servo/dom/bindings/codegen/ClientRectList.webidl => servo/src/components/main/dom/bindings/codegen/ClientRectList.webidl rename : servo/src/components/servo/dom/bindings/codegen/Codegen.py => servo/src/components/main/dom/bindings/codegen/Codegen.py rename : servo/src/components/servo/dom/bindings/codegen/CodegenRust.py => servo/src/components/main/dom/bindings/codegen/CodegenRust.py rename : servo/src/components/servo/dom/bindings/codegen/Configuration.py => servo/src/components/main/dom/bindings/codegen/Configuration.py rename : servo/src/components/servo/dom/bindings/codegen/DOMJSClass.h => servo/src/components/main/dom/bindings/codegen/DOMJSClass.h rename : servo/src/components/servo/dom/bindings/codegen/DOMJSProxyHandler.cpp => servo/src/components/main/dom/bindings/codegen/DOMJSProxyHandler.cpp rename : servo/src/components/servo/dom/bindings/codegen/DOMJSProxyHandler.h => servo/src/components/main/dom/bindings/codegen/DOMJSProxyHandler.h rename : servo/src/components/servo/dom/bindings/codegen/DOMParser.webidl => servo/src/components/main/dom/bindings/codegen/DOMParser.webidl rename : servo/src/components/servo/dom/bindings/codegen/ErrorResult.h => servo/src/components/main/dom/bindings/codegen/ErrorResult.h rename : servo/src/components/servo/dom/bindings/codegen/Errors.msg => servo/src/components/main/dom/bindings/codegen/Errors.msg rename : servo/src/components/servo/dom/bindings/codegen/Event.webidl => servo/src/components/main/dom/bindings/codegen/Event.webidl rename : servo/src/components/servo/dom/bindings/codegen/EventTarget.webidl => servo/src/components/main/dom/bindings/codegen/EventTarget.webidl rename : servo/src/components/servo/dom/bindings/codegen/GenerateCSS2PropertiesWebIDL.py => servo/src/components/main/dom/bindings/codegen/GenerateCSS2PropertiesWebIDL.py rename : servo/src/components/servo/dom/bindings/codegen/GlobalGen.py => servo/src/components/main/dom/bindings/codegen/GlobalGen.py rename : servo/src/components/servo/dom/bindings/codegen/HTMLCollection.webidl => servo/src/components/main/dom/bindings/codegen/HTMLCollection.webidl rename : servo/src/components/servo/dom/bindings/codegen/Makefile.in => servo/src/components/main/dom/bindings/codegen/Makefile.in rename : servo/src/components/servo/dom/bindings/codegen/Nullable.h => servo/src/components/main/dom/bindings/codegen/Nullable.h rename : servo/src/components/servo/dom/bindings/codegen/PrimitiveConversions.h => servo/src/components/main/dom/bindings/codegen/PrimitiveConversions.h rename : servo/src/components/servo/dom/bindings/codegen/RegisterBindings.cpp => servo/src/components/main/dom/bindings/codegen/RegisterBindings.cpp rename : servo/src/components/servo/dom/bindings/codegen/RegisterBindings.h => servo/src/components/main/dom/bindings/codegen/RegisterBindings.h rename : servo/src/components/servo/dom/bindings/codegen/TypedArray.h => servo/src/components/main/dom/bindings/codegen/TypedArray.h rename : servo/src/components/servo/dom/bindings/codegen/crashtests/769464.html => servo/src/components/main/dom/bindings/codegen/crashtests/769464.html rename : servo/src/components/servo/dom/bindings/codegen/crashtests/crashtests.list => servo/src/components/main/dom/bindings/codegen/crashtests/crashtests.list rename : servo/src/components/servo/dom/bindings/codegen/parser/README => servo/src/components/main/dom/bindings/codegen/parser/README rename : servo/src/components/servo/dom/bindings/codegen/parser/UPSTREAM => servo/src/components/main/dom/bindings/codegen/parser/UPSTREAM rename : servo/src/components/servo/dom/bindings/codegen/parser/WebIDL.py => servo/src/components/main/dom/bindings/codegen/parser/WebIDL.py rename : servo/src/components/servo/dom/bindings/codegen/parser/runtests.py => servo/src/components/main/dom/bindings/codegen/parser/runtests.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_any_null.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_any_null.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_argument_identifier_conflicts.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_argument_identifier_conflicts.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_argument_novoid.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_argument_novoid.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_array_of_interface.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_array_of_interface.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_arraybuffer.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_arraybuffer.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_attr.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_attr.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_attr_sequence_type.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_attr_sequence_type.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_builtin_filename.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_builtin_filename.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_builtins.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_builtins.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_callback.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_callback.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_callback_interface.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_callback_interface.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_const.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_const.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_constructor.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_constructor.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_constructor_no_interface_object.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_constructor_no_interface_object.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_deduplicate.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_deduplicate.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_dictionary.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_dictionary.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_distinguishability.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_distinguishability.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_double_null.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_double_null.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_duplicate_qualifiers.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_duplicate_qualifiers.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_empty_enum.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_empty_enum.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_enum.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_enum.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_enum_duplicate_values.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_enum_duplicate_values.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_error_colno.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_error_colno.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_error_lineno.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_error_lineno.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_extended_attributes.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_extended_attributes.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_forward_decl.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_forward_decl.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_implements.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_implements.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_incomplete_parent.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_incomplete_parent.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_incomplete_types.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_incomplete_types.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_interface.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_interface.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_interface_const_identifier_conflicts.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_interface_const_identifier_conflicts.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_interface_identifier_conflicts_across_members.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_interface_identifier_conflicts_across_members.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_method.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_method.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_nullable_equivalency.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_nullable_equivalency.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_nullable_void.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_nullable_void.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_optional_constraints.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_optional_constraints.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_overload.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_overload.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_sanity.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_sanity.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_special_method_signature_mismatch.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_special_method_signature_mismatch.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_special_methods.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_special_methods.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_special_methods_uniqueness.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_special_methods_uniqueness.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_treatNonCallableAsNull.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_treatNonCallableAsNull.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_typedef.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_typedef.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_union.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_union.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_union_any.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_union_any.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_union_nullable.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_union_nullable.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_variadic_callback.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_variadic_callback.py rename : servo/src/components/servo/dom/bindings/codegen/parser/tests/test_variadic_constraints.py => servo/src/components/main/dom/bindings/codegen/parser/tests/test_variadic_constraints.py rename : servo/src/components/servo/dom/bindings/codegen/ply/COPYING => servo/src/components/main/dom/bindings/codegen/ply/COPYING rename : servo/src/components/servo/dom/bindings/codegen/ply/README => servo/src/components/main/dom/bindings/codegen/ply/README rename : servo/src/components/servo/dom/bindings/codegen/ply/ply/__init__.py => servo/src/components/main/dom/bindings/codegen/ply/ply/__init__.py rename : servo/src/components/servo/dom/bindings/codegen/ply/ply/lex.py => servo/src/components/main/dom/bindings/codegen/ply/ply/lex.py rename : servo/src/components/servo/dom/bindings/codegen/ply/ply/yacc.py => servo/src/components/main/dom/bindings/codegen/ply/ply/yacc.py rename : servo/src/components/servo/dom/bindings/codegen/pythonpath.py => servo/src/components/main/dom/bindings/codegen/pythonpath.py rename : servo/src/components/servo/dom/bindings/codegen/stubgenerator/Skeleton.cpp => servo/src/components/main/dom/bindings/codegen/stubgenerator/Skeleton.cpp rename : servo/src/components/servo/dom/bindings/codegen/stubgenerator/Skeleton.h => servo/src/components/main/dom/bindings/codegen/stubgenerator/Skeleton.h rename : servo/src/components/servo/dom/bindings/codegen/stubgenerator/generate.sh => servo/src/components/main/dom/bindings/codegen/stubgenerator/generate.sh rename : servo/src/components/servo/dom/bindings/codegen/test/Makefile.in => servo/src/components/main/dom/bindings/codegen/test/Makefile.in rename : servo/src/components/servo/dom/bindings/codegen/test/TestBindingHeader.h => servo/src/components/main/dom/bindings/codegen/test/TestBindingHeader.h rename : servo/src/components/servo/dom/bindings/codegen/test/TestCodeGen.webidl => servo/src/components/main/dom/bindings/codegen/test/TestCodeGen.webidl rename : servo/src/components/servo/dom/bindings/codegen/test/TestDictionary.webidl => servo/src/components/main/dom/bindings/codegen/test/TestDictionary.webidl rename : servo/src/components/servo/dom/bindings/codegen/test/TestTypedef.webidl => servo/src/components/main/dom/bindings/codegen/test/TestTypedef.webidl rename : servo/src/components/servo/dom/bindings/codegen/test/file_bug775543.html => servo/src/components/main/dom/bindings/codegen/test/file_bug775543.html rename : servo/src/components/servo/dom/bindings/codegen/test/forOf_iframe.html => servo/src/components/main/dom/bindings/codegen/test/forOf_iframe.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_InstanceOf.html => servo/src/components/main/dom/bindings/codegen/test/test_InstanceOf.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_bug773326.html => servo/src/components/main/dom/bindings/codegen/test/test_bug773326.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_bug775543.html => servo/src/components/main/dom/bindings/codegen/test/test_bug775543.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_bug788369.html => servo/src/components/main/dom/bindings/codegen/test/test_bug788369.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_enums.html => servo/src/components/main/dom/bindings/codegen/test/test_enums.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_forOf.html => servo/src/components/main/dom/bindings/codegen/test/test_forOf.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_integers.html => servo/src/components/main/dom/bindings/codegen/test/test_integers.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_interfaceToString.html => servo/src/components/main/dom/bindings/codegen/test/test_interfaceToString.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_lookupGetter.html => servo/src/components/main/dom/bindings/codegen/test/test_lookupGetter.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_sequence_wrapping.html => servo/src/components/main/dom/bindings/codegen/test/test_sequence_wrapping.html rename : servo/src/components/servo/dom/bindings/codegen/test/test_traceProtos.html => servo/src/components/main/dom/bindings/codegen/test/test_traceProtos.html rename : servo/src/components/servo/dom/bindings/conversions.rs => servo/src/components/main/dom/bindings/conversions.rs rename : servo/src/components/servo/dom/bindings/document.rs => servo/src/components/main/dom/bindings/document.rs rename : servo/src/components/servo/dom/bindings/domparser.rs => servo/src/components/main/dom/bindings/domparser.rs rename : servo/src/components/servo/dom/bindings/element.rs => servo/src/components/main/dom/bindings/element.rs rename : servo/src/components/servo/dom/bindings/event.rs => servo/src/components/main/dom/bindings/event.rs rename : servo/src/components/servo/dom/bindings/eventtarget.rs => servo/src/components/main/dom/bindings/eventtarget.rs rename : servo/src/components/servo/dom/bindings/htmlcollection.rs => servo/src/components/main/dom/bindings/htmlcollection.rs rename : servo/src/components/servo/dom/bindings/node.rs => servo/src/components/main/dom/bindings/node.rs rename : servo/src/components/servo/dom/bindings/proxyhandler.rs => servo/src/components/main/dom/bindings/proxyhandler.rs rename : servo/src/components/servo/dom/bindings/text.rs => servo/src/components/main/dom/bindings/text.rs rename : servo/src/components/servo/dom/bindings/utils.rs => servo/src/components/main/dom/bindings/utils.rs rename : servo/src/components/servo/dom/bindings/window.rs => servo/src/components/main/dom/bindings/window.rs rename : servo/src/components/servo/dom/characterdata.rs => servo/src/components/main/dom/characterdata.rs rename : servo/src/components/servo/dom/clientrect.rs => servo/src/components/main/dom/clientrect.rs rename : servo/src/components/servo/dom/clientrectlist.rs => servo/src/components/main/dom/clientrectlist.rs rename : servo/src/components/servo/dom/document.rs => servo/src/components/main/dom/document.rs rename : servo/src/components/servo/dom/domparser.rs => servo/src/components/main/dom/domparser.rs rename : servo/src/components/servo/dom/element.rs => servo/src/components/main/dom/element.rs rename : servo/src/components/servo/dom/event.rs => servo/src/components/main/dom/event.rs rename : servo/src/components/servo/dom/eventtarget.rs => servo/src/components/main/dom/eventtarget.rs rename : servo/src/components/servo/dom/htmlcollection.rs => servo/src/components/main/dom/htmlcollection.rs rename : servo/src/components/servo/dom/window.rs => servo/src/components/main/dom/window.rs rename : servo/src/components/servo/engine.rs => servo/src/components/main/engine.rs rename : servo/src/components/servo/html/cssparse.rs => servo/src/components/main/html/cssparse.rs rename : servo/src/components/servo/html/hubbub_html_parser.rs => servo/src/components/main/html/hubbub_html_parser.rs rename : servo/src/components/servo/image.rs => servo/src/components/main/image.rs rename : servo/src/components/servo/layout/block.rs => servo/src/components/main/layout/block.rs rename : servo/src/components/servo/layout/box.rs => servo/src/components/main/layout/box.rs rename : servo/src/components/servo/layout/box_builder.rs => servo/src/components/main/layout/box_builder.rs rename : servo/src/components/servo/layout/context.rs => servo/src/components/main/layout/context.rs rename : servo/src/components/servo/layout/debug.rs => servo/src/components/main/layout/debug.rs rename : servo/src/components/servo/layout/display_list_builder.rs => servo/src/components/main/layout/display_list_builder.rs rename : servo/src/components/servo/layout/flow.rs => servo/src/components/main/layout/flow.rs rename : servo/src/components/servo/layout/inline.rs => servo/src/components/main/layout/inline.rs rename : servo/src/components/servo/layout/layout_task.rs => servo/src/components/main/layout/layout_task.rs rename : servo/src/components/servo/layout/text.rs => servo/src/components/main/layout/text.rs rename : servo/src/components/servo/macros.rs => servo/src/components/main/macros.rs rename : servo/src/components/servo/platform/common/glut_windowing.rs => servo/src/components/main/platform/common/glut_windowing.rs rename : servo/src/components/servo/platform/common/shared_gl_windowing.rs => servo/src/components/main/platform/common/shared_gl_windowing.rs rename : servo/src/components/servo/platform/mod.rs => servo/src/components/main/platform/mod.rs rename : servo/src/components/servo/scripting/script_task.rs => servo/src/components/main/scripting/script_task.rs rename : servo/src/components/servo/servo.rc => servo/src/components/main/servo.rc rename : servo/src/components/servo/util/mod.rs => servo/src/components/main/util/mod.rs rename : servo/src/components/servo/util/task.rs => servo/src/components/main/util/task.rs rename : servo/src/components/servo/windowing.rs => servo/src/components/main/windowing.rs rename : servo/src/components/servo-net/file_loader.rs => servo/src/components/net/file_loader.rs rename : servo/src/components/servo-net/http_loader.rs => servo/src/components/net/http_loader.rs rename : servo/src/components/servo-net/image/base.rs => servo/src/components/net/image/base.rs rename : servo/src/components/servo-net/image/holder.rs => servo/src/components/net/image/holder.rs rename : servo/src/components/servo-net/image/test.jpeg => servo/src/components/net/image/test.jpeg rename : servo/src/components/servo-net/image_cache_task.rs => servo/src/components/net/image_cache_task.rs rename : servo/src/components/servo-net/local_image_cache.rs => servo/src/components/net/local_image_cache.rs rename : servo/src/components/servo-net/servo_net.rc => servo/src/components/net/net.rc rename : servo/src/components/servo-net/resource_task.rs => servo/src/components/net/resource_task.rs rename : servo/src/components/servo-net/util.rs => servo/src/components/net/util.rs rename : servo/src/components/servo-util/cache.rs => servo/src/components/util/cache.rs rename : servo/src/components/servo-util/range.rs => servo/src/components/util/range.rs rename : servo/src/components/servo-util/time.rs => servo/src/components/util/time.rs rename : servo/src/components/servo-util/tree.rs => servo/src/components/util/tree.rs rename : servo/src/components/servo-util/url.rs => servo/src/components/util/url.rs rename : servo/src/components/servo-util/servo_util.rc => servo/src/components/util/util.rc rename : servo/src/components/servo-util/vec.rs => servo/src/components/util/vec.rs rename : servo/src/components/contenttest/contenttest.rs => servo/src/test/harness/contenttest/contenttest.rs rename : servo/src/components/reftest/rasterize.py => servo/src/test/harness/reftest/rasterize.py rename : servo/src/components/reftest/reftest.rs => servo/src/test/harness/reftest/reftest.rs rename : servo/src/test/about-mozilla.html => servo/src/test/html/about-mozilla.html rename : servo/src/test/acid1.html => servo/src/test/html/acid1.html rename : servo/src/test/combining-character-sequences.html => servo/src/test/html/combining-character-sequences.html rename : servo/src/test/content/harness.js => servo/src/test/html/content/harness.js rename : servo/src/test/content/test_prototypes.html => servo/src/test/html/content/test_prototypes.html rename : servo/src/test/content/test_prototypes.js => servo/src/test/html/content/test_prototypes.js rename : servo/src/test/demo.css => servo/src/test/html/demo.css rename : servo/src/test/demo.html => servo/src/test/html/demo.html rename : servo/src/test/head_link_test.html => servo/src/test/html/head_link_test.html rename : servo/src/test/hello.html => servo/src/test/html/hello.html rename : servo/src/test/ligatures.html => servo/src/test/html/ligatures.html rename : servo/src/test/lipsum.html => servo/src/test/html/lipsum.html rename : servo/src/test/lots_of_background_colors.css => servo/src/test/html/lots_of_background_colors.css rename : servo/src/test/mojira.html => servo/src/test/html/mojira.html rename : servo/src/test/small-layout-test.html => servo/src/test/html/small-layout-test.html rename : servo/src/test/small_color_test.css => servo/src/test/html/small_color_test.css rename : servo/src/test/small_color_test.html => servo/src/test/html/small_color_test.html rename : servo/src/test/test-absolute.css => servo/src/test/html/test-absolute.css rename : servo/src/test/test-absolute.html => servo/src/test/html/test-absolute.html rename : servo/src/test/test-alert.js => servo/src/test/html/test-alert.js rename : servo/src/test/test-border.css => servo/src/test/html/test-border.css rename : servo/src/test/test-border.html => servo/src/test/html/test-border.html rename : servo/src/test/test-inline.html => servo/src/test/html/test-inline.html rename : servo/src/test/test-js-alert.html => servo/src/test/html/test-js-alert.html rename : servo/src/test/test-js-image.html => servo/src/test/html/test-js-image.html rename : servo/src/test/test-js.html => servo/src/test/html/test-js.html rename : servo/src/test/test-many-images-different.html => servo/src/test/html/test-many-images-different.html rename : servo/src/test/test-many-images.html => servo/src/test/html/test-many-images.html rename : servo/src/test/test-text-break.html => servo/src/test/html/test-text-break.html rename : servo/src/test/test-text.html => servo/src/test/html/test-text.html rename : servo/src/test/test.css => servo/src/test/html/test.css rename : servo/src/test/test.html => servo/src/test/html/test.html rename : servo/src/test/test.jpeg => servo/src/test/html/test.jpeg rename : servo/src/test/test.js => servo/src/test/html/test.js rename : servo/src/test/test_bg_color.html => servo/src/test/html/test_bg_color.html rename : servo/src/test/test_bg_color_simple.css => servo/src/test/html/test_bg_color_simple.css rename : servo/src/test/test_bg_color_simple.html => servo/src/test/html/test_bg_color_simple.html rename : servo/src/test/test_bindings.html => servo/src/test/html/test_bindings.html rename : servo/src/test/test_bindings.js => servo/src/test/html/test_bindings.js rename : servo/src/test/test_close.html => servo/src/test/html/test_close.html rename : servo/src/test/test_close.js => servo/src/test/html/test_close.js rename : servo/src/test/test_docelem.js => servo/src/test/html/test_docelem.js rename : servo/src/test/test_getter_time.html => servo/src/test/html/test_getter_time.html rename : servo/src/test/test_getter_time.js => servo/src/test/html/test_getter_time.js rename : servo/src/test/test_hammer_layout.css => servo/src/test/html/test_hammer_layout.css rename : servo/src/test/test_hammer_layout.html => servo/src/test/html/test_hammer_layout.html rename : servo/src/test/test_hammer_layout.js => servo/src/test/html/test_hammer_layout.js rename : servo/src/test/test_image_getter.js => servo/src/test/html/test_image_getter.js rename : servo/src/test/test_inline_boxes.html => servo/src/test/html/test_inline_boxes.html rename : servo/src/test/test_linking.css => servo/src/test/html/test_linking.css rename : servo/src/test/test_timeout.html => servo/src/test/html/test_timeout.html rename : servo/src/test/test_timeout.js => servo/src/test/html/test_timeout.js rename : servo/src/test/tiny_test.html => servo/src/test/html/tiny_test.html
2013-05-30 06:30:47 +04:00
./servo ../src/test/html/about-mozilla.html
```
###Building for Android target
``` sh
git clone https://github.com/mozilla/servo.git
cd servo
mkdir -p build && cd build
../configure --target=arm-linux-androideabi --android-cross-path=<Android toolchain path> --android-ndk-path=<Android NDK path> --android-sdk-path=<Android SDK path>
make
(or make package)
```
## Running
### Commandline Arguments
- `-p INTERVAL` turns on the profiler and dumps info to the console every
`INTERVAL` seconds
- `-s SIZE` sets the tile size for rendering; defaults to 512
- `-z` disables all graphical output; useful for running JS / layout tests
### Keyboard Shortcuts
- `Ctrl-L` opens a dialog to browse to a new URL (Mac only currently)
- `Ctrl--` zooms out
- `Ctrl-=` zooms in
- `Backspace` goes backwards in the history
- `Shift-Backspace` goes forwards in the history
- `Esc` exits servo
## Developing
There are lots of make targets you can use:
- `make clean` - cleans Servo and its dependencies, but not Rust
- `make clean-rust` - cleans Rust
- `make clean-servo` - only cleans Servo itself (code in `src/components`)
- `make clean-DEP` - cleans the dependency `DEP`. e.g. `make clean-rust-opengles`
- `make bindings` - generate the Rust WebIDL bindings
- `make DEP` - builds only the specified dependency. e.g. `make rust-opengles`
- `make check-DEP` - build and run tests for specified dependency
- `make package` - build and make app package for specific OS. e.g. apk file of Android
The `make check-*` targets for running tests are listed [here](https://github.com/mozilla/servo/wiki/Testing)