This directory contains the "minimal" target which demonstrates the minimal functionality required to build an executable using the shared library target.
See the shared library target for details common to all executable targets.
The "minimal" target is implemented as follows:
- Define the target-specific CMake build configuration in the CMakeLists.txt file.
- Call the shared entry point functions that initialize, run and shut down CEF.
- Main process (all platforms): main_minimal.cc
- Sub-process (macOS only): process_helper_mac_minimal.cc
- Implement the shared::Create*ProcessApp functions to create a CefApp instance appropriate to the process type.
- Browser process: app_browser_minimal.cc implements the
shared::CreateBrowserProcessApp
method to return aCefApp
instance.- The
OnContextInitialized
method creates the initial CefBrowser instance using the shared::CreateBrowser helper function.
- The
- Renderer process: app_renderer_minimal.cc implements the
shared::CreateRendererProcessApp
method to return NULL (noCefApp
for this process). - Other sub-processes: app_other_minimal.cc implements the
shared::CreateOtherProcessApp
method to return NULL (noCefApp
for this process).
- Browser process: app_browser_minimal.cc implements the
- Provide a concrete CefClient implementation in client_minimal.cc and client_minimal.h to handle CefBrowser callbacks.
Other targets use the minimal implementation source files (*_minimal.cc) in cases where example-specific customization is not required.
See the shared library target for configuration details.
See the shared library target for setup and build instructions.