This is pretty much just an abstraction layer around The Chromium Embedded Framework (https://bitbucket.org/chromiumembedded/cef)
To work with this project you will need a build of the Chromium Embedded Framework. You can download prebuilt versions of CEF from Spotify's Automated Builder if you don't want to compile your own:
https://cef-builds.spotifycdn.com/index.html
You'll probably want the Minimal Distribution unless you need to debug with symbols or something. These belong in the ./thirdparty/cef3/ directory (after extraction.) The paths are currently hardcoded into the root CMakelists.txt file.
The current version of CEF that's supported by this library is:
- 95.7.18+g0d6005e+chromium-95.0.4638.69
This is not the only version that could be supported, but it's the version that's currently configured and tested to work.
- Visual Studio 2019
- CMake 3.15 or newer
mkdir build_x86
cd build_x86
cmake -G "Visual Studio 16 2019" -A Win32 ..mkdir build_x64
cd build_x64
cmake -G "Visual Studio 16 2019" -A x64 ..After running either of these sets of commands, you can enter your created directory and open the gmod-html.sln solution in Visual Studio. Compiling the INSTALL project will place a complete build into the dist folder by default.
- A version of GCC/G++ or Clang/Clang++ with C++11 support
- CMake 3.19 or newer
mkdir build
cd build
cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ..
make && make installThis will place a complete build into the dist folder by default.
Todo
- Improve the CMake files. We don't use them for GMod builds so they're a bit wonky.
- Get the example_host into workable condition. It's disabled at the moment
- Cleanup. Everything is quite messy.
- macOS. These builds require quite a few unique things so they're not handled by the CMake scripts at all at the moment. It's still technically possible to get the builds working, though.
- Dynamic loading of the HTML implementation. Atm we just use dylib() or LoadLibrary() in each host which is kind of lame. It'd be nice to simplify it.