webui/examples/C++
Hassan DRAGA a59c1fe1db TLS GCC/Clang
- To build lib with TLS: `make WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="~/OpenSSL/include" WEBUI_TLS_LIB="~/OpenSSL/lib"`
- To build examples with TLS: `make WEBUI_USE_TLS=1` (Only Dynamic. No static TLS will be supported)
2023-10-23 17:58:39 -04:00
..
call_cpp_from_js TLS GCC/Clang 2023-10-23 17:58:39 -04:00
call_js_from_cpp TLS GCC/Clang 2023-10-23 17:58:39 -04:00
minimal TLS GCC/Clang 2023-10-23 17:58:39 -04:00
serve_a_folder TLS GCC/Clang 2023-10-23 17:58:39 -04:00
README.md Remove trailing whitespaces 2023-10-10 02:36:21 +02:00

WebUI C++ Examples

Examples of how to create a WebUI application in C++.

The only requirement to build the examples is a a C++11 compiler.

  • minimal: Creates a minimal WebUI application.
  • call_c_from_js: Calls C++ from JavaScript.
  • call_js_from_c: Calls JavaScript from C++.
  • serve_a_folder: Uses WebUI to serve a folder that contains multiple files.

To build an example, cd into its directory and run the make command.

  • Windows

    # G++
    mingw32-make
    
    # MSVC
    nmake
    
  • Linux

    # G++
    make
    
    # Clang
    make CXX=clang
    
  • macOS

    make