/html5-gui-demo

Demos for using HTML 5 as a GUI for C++ apps

Primary LanguageC++MIT LicenseMIT

HTML 5 GUI Demo

Demos for using HTML 5 as a GUI for C++ apps

Talk

The demos were created for a talk I gave at CppCon.

Demos list

  • ws-simple: A simple echo-server using WebSockets. Uses Boost.Beast
  • cef-async: A simple CEF echo application using asynchronous communication
  • cef-sync: A simple CEF echo application using synchronous communication
  • fs-browser: A simple filesystem browser demo with two implementations: WebSockets and CEF
  • demo-3d: A simple demo with GUI over a custom OpenGL window with two implementations: No GUI and CEF

Building

This repo has submodules. Clone with --recursive or call git submodule update --init after cloning.

There's a master CMakeLists.txt in the root directory, which can be used to build all demos. It downloads and prepares all dependencies, except Boost. You need to configure with -DHTML5_DEMO_BOOST_DIR=path/to/your/boost/installation or have Boost in your global include and library paths.

Currently the only supported configuration is to build all demos. I may provide configuration options to build only selected ones, but it won't be soon. In the meantime I welcome pull requests which do so.

License

All demos under the MIT license. See accompanying file LICENSE or copy here.

Copyright © 2019 Borislav Stanimirov