./SC.sh build configureSC.bat build configure_Build/_Projects. SC build compile) executables will be at _Build/_Outputs/${platform}-${arch}-${build}-${compiler}-${config}/${EXAMPLE_NAME}.| Property | Value |
|---|---|
| Location | Examples/SCExample |
| Description | Simple immediate mode gui application using sokol and dear imgui libraries pausing in absence of inputs and I/O to save CPU time |
| Purposes | Use SC::Build to build on macOS, windows and linux and SC::Async as I/O event Loop |
| Use Plugin and FileSystemWatcher libraries implementing hot-reload | |
| Prerequisites | Linux - Fedora: sudo dnf install mesa-libGL-devel mesa-libEGL-devel libX11-devel libXi-devel libXcursor-devel |
Linux - Ubuntu: sudo apt-get install libgles2-mesa-dev libx11-dev libxi-dev libxcursor-dev | |
| Windows: None | |
| macOS: None | |
| Dependencies | sokol and dear-imgui are automatically downloaded during ./SC.sh build configure or SC.bat build configure |
| Run (Posix) | ./SC.sh build run SCExample (will also compile before running) |
| Run (Windows) | SC.bat build run SCExample (will also compile before running) |
| Debug (VSCode) | Select correct SCExample $ARCH ($PLATFORM) for your system and press Start Debugging (F5) |
| Debug (XCode) | Open _Build/_Projects/SCWorkspace/XCode/SCExample.xcodeproj and choose Product --> Run |
| Debug (VS2022) | Open _Build/_Projects/SCWorkspace/VisualStudio2022/SCExample.sln and start Debugging (F5) |
| Property | Value |
|---|---|
| Location | Examples/AsyncWebServer |
| Description | Simple Http server listening on port 8090 by default, serving a folder for a static website. |
| Purposes | Show how to create an http server with a runtime configurable set of buffers |
| Prerequisites | Linux: None |
| Windows: None | |
| macOS: None | |
| Dependencies | None |
| Run (Posix) | Examples/AsyncWebServer/BuildAndRun.sh (will also compile before running) |
| Run (Windows) | Examples/AsyncWebServer/BuildAndRun.bat (will also compile before running) |
| Parameters | All parameters can be added after BuildAndRun for example BuildAndRun.sh --directory /somedir: |
--directory /path/to/dir: Serves the given folder | |
| Debug (XCode) | Open _Build/_Projects/SCWorkspace/XCode/AsyncWebServer.xcodeproj and choose Product --> Run |
| Debug (VS2022) | Open _Build/_Projects/SCWorkspace/VisualStudio2022/AsyncWebServer.sln and start Debugging (F5) |
Some relevant blog posts are:
| Example | Description |
|---|---|
| Serialization | Use Reflection and Serialization to persist application state |
| WebServer | Use Http to statically host a website from a specified directory |
There are many way to learn about the library:
https://github.com/user-attachments/assets/2a38310c-6a28-4f86-a0f3-665dc15b126d https://github.com/Pagghiu/SaneCppLibraries/assets/5406873/5c7d4036-6e0c-4262-ad57-9ef84c214717