enable lua

This commit is contained in:
2026-01-15 21:43:17 +01:00
parent 6ad11773dd
commit 5187143445
8 changed files with 58 additions and 8 deletions

View File

@@ -9,8 +9,8 @@ Mosis Designer is a Windows desktop application for previewing RML/RCSS files us
## Build Commands
```bash
# Configure the build (requires vcpkg for glfw3 and freetype)
cmake -B build
# Configure the build (requires vcpkg toolchain for dependencies)
cmake -B build -DCMAKE_TOOLCHAIN_FILE=D:/vcpkg/scripts/buildsystems/vcpkg.cmake
# Build debug
cmake --build build --config Debug
@@ -35,15 +35,17 @@ The application watches the parent directory of the loaded file for changes and
Single-file C++23 application (`main.cpp`) that:
- Uses RmlUi for rendering HTML/CSS-like markup (RML/RCSS)
- Uses RmlUi Lua bindings for scripting support in RML documents
- Uses GLFW + OpenGL 3 backend from RmlUi
- Windows-specific file watching via `FindFirstChangeNotification`
- Automatically loads all `.ttf` fonts from the RML file's directory
## Dependencies
- **RmlUi**: Fetched via CMake FetchContent from GitHub
- **RmlUi**: Fetched via CMake FetchContent from GitHub (with Lua bindings enabled)
- **GLFW3**: Via vcpkg
- **FreeType**: Via vcpkg
- **Lua**: Via vcpkg (5.4.x)
## Code Style