docs: frontends,dbal,txt (2 files)

This commit is contained in:
2025-12-26 06:16:24 +00:00
parent c1d9c58707
commit 089aae1555
2 changed files with 32 additions and 0 deletions

View File

@@ -23,6 +23,13 @@ target_link_libraries(dbal-qml PRIVATE Qt6::Core Qt6::Gui Qt6::Quick)
qt_finalize_executable(dbal-qml)
if(NOT "${CMAKE_GENERATOR}" STREQUAL "Ninja")
message(
STATUS
"dbal-qml is designed for Ninja; configure with `cmake -G Ninja` so the Conan Ninja toolchain is used."
)
endif()
install(TARGETS dbal-qml
RUNTIME DESTINATION bin
)

View File

@@ -0,0 +1,25 @@
# DBAL QML Player
This small Qt Quick app renders the `FrontPage.qml` guided hero and telemetry tiles.
## Dependencies
- We resolve Qt6 and Ninja via `conanfile.txt`.
- `CMakeDeps` + `CMakeToolchain` expose the Ninja toolchain so `cmake -G Ninja` runs the same generator as Conan.
## Local build
```bash
cd frontends/dbal/qml
conan install . --output-folder=build --build=missing
cmake -S . -B build -G Ninja
cmake --build build
./build/dbal-qml
```
The `cmake` invocation purposely targets the Ninja generator and matches the toolchain that Conan emits.
## Notes
- The QML files are exposed via `qt_add_qml_module` and bundled together with the executable.
- If you forget `-G Ninja`, the CMake script prints a reminder so you can reconfigure accordingly.