BluBrowser for BLUI
This is the CEF code of the child process for BLUI. It's a modified CefSimple example to include the blu_event function which notifies BLUI of Javascript events in the Unreal game engine.
See https://bitbucket.org/chromiumembedded/cef/wiki/Home for general information on CEF.
- Get zip from CEF Builds Site
- download CMake - https://cmake.org/download/
- Replace the code in CefSimple with the code in this repository, the original project has some configuration that needs to be kept for output to work correctly.
- Run
cmake .in downloaded folder to generate .sln (may need to use-DENABLE_DOXYGEN_DOT=OFF optionfor cmake to succeed) - It should compile out of the box for CEF 128 to make the
BluBrowserProcess, but will need/MTonlibcef_dll_wrapperto compile the static library for unreal before copying that portion.- (If you want to build the wrapper lib for use in unreal) Open the solution in Visual Studio and change the project options (C++ -> Code Generation -> Runtime Library) in "libcef_dll_wrapper" to output a "multi-threaded DLL", and build.
- (If you want to build the blu_browser.exe process) Switch "libcef_dll_wrapper" to output "Multi-threaded (/MT)"
- Build the solution, and it will produce the proper dlls, lib files, or the child process exe.