servo/ports/cef
2015-01-31 16:10:17 +05:30
..
.cargo Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
interfaces Fix spelling mistakes in comments. 2014-12-11 23:56:29 -05:00
browser.rs Import the util crate as util rather than servo_util. 2015-01-29 12:16:41 +01:00
browser_host.rs Fix various build warnings. 2015-01-28 20:42:39 +01:00
Cargo.lock Only SSL CA certs 2015-01-31 16:10:17 +05:30
Cargo.toml Switch CEF on screen build from glfw -> glutin. 2015-01-19 08:56:43 +10:00
command_line.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
cookie.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
core.rs Import the util crate as util rather than servo_util. 2015-01-29 12:16:41 +01:00
drag_data.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
eutil.rs Fix various build warnings. 2015-01-28 20:42:39 +01:00
frame.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
lib.rs Import the util crate as util rather than servo_util. 2015-01-29 12:16:41 +01:00
macros.rs Fix various build warnings. 2015-01-28 20:42:39 +01:00
print_settings.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
process_message.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
README.md ports/cef: Use the CEF translator tool to generate the full set of CEF 2014-11-27 10:31:32 -06:00
render_handler.rs Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. 2014-12-17 15:19:45 -05:00
request.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
request_context.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
response.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
stream.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
string.rs Fix various build warnings. 2015-01-28 20:42:39 +01:00
string_list.rs ports/cef: Use the CEF translator tool to generate the full set of CEF 2014-11-27 10:31:32 -06:00
string_map.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
string_multimap.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
stubs.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
switches.rs embedding: add some commonly used string constants from chromium 2014-11-20 11:53:37 -05:00
task.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
types.rs Fix spelling mistakes in comments. 2014-12-11 23:56:29 -05:00
urlrequest.rs ports/cef: Use the CEF translator tool to generate the full set of CEF 2014-11-27 10:31:32 -06:00
v8.rs Fix various build warnings. 2015-01-28 20:42:39 +01:00
values.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
window.rs Import the util crate as util rather than servo_util. 2015-01-29 12:16:41 +01:00
wrappers.rs Fix various build warnings. 2015-01-28 20:42:39 +01:00
xml_reader.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
zip_reader.rs Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10: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/