mirror of
https://github.com/servo/servo
synced 2026-05-12 09:56:50 +02:00
How to test:
- Go to http://cefbuilds.com/ and download a binary for your OS/arch
- Unpack the (huge) archive
- Create both Debug and Release build types for CEF (
./build.sh [Debug|Release]) - Build servo
- Run a CEF-based executable with the embedding crate preloaded:
- Linux:
LD_LIBRARY_PATH=/path/to/cef-bin-unpack-dir/out/$build_type LD_PRELOAD=/path/to/servo/build/libembedding-*.so [CEF EXE]
- Linux:
- Enjoy CEF-powered crashes
Notes:
- Running with the Debug build in GDB is EXTREMELY slow on startup. Only use this if you are actively debugging an unimplemented CEF interaction.
- The contents of
interfaces/, with the exception ofinterfaces/mod.rsis autogenerated. To regenerate:- Check out the
servobranch of the following repository: https://github.com/pcwalton/chromium-embedded-framework - Change to the
toolsdirectory and run./translator.sh - Run the following command to copy in the Rust header files, replacing
${SERVO_SRC}with the path to your Servo checkout: $ cp ../libcef_dll/rust/*.rs ${SERVO_SRC}/ports/cef/interfaces/
- Check out the