Files
servo/ports/cef
2015-01-31 23:25:54 +01:00
..
2015-01-28 20:42:39 +01:00
2015-01-28 20:42:39 +01:00
2015-01-28 20:42:39 +01:00
2015-01-28 20:42:39 +01:00
2014-12-11 23:56:29 -05:00
2015-01-28 20:42:39 +01:00
2015-01-28 20:42:39 +01:00

How to test:

  1. Go to http://cefbuilds.com/ and download a binary for your OS/arch
  2. Unpack the (huge) archive
  3. Create both Debug and Release build types for CEF (./build.sh [Debug|Release])
  4. Build servo
  5. 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]
  6. 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 of interfaces/mod.rs is autogenerated. To regenerate:
    • Check out the servo branch of the following repository: https://github.com/pcwalton/chromium-embedded-framework
    • Change to the tools directory 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/