build(qt6): update cmake generator to scan .hpp headers

generate_cmake.py now includes *.hpp alongside *.h when building
the header list. CMakeLists.txt regenerated — src/ now has 2 .cpp
sources (DBALClient, PackageLoader) after ModPlayer, NodeRegistry,
and PackageRegistry were converted to header-only .hpp files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 21:03:43 +00:00
parent 296de30836
commit 6a0a5fee41
2 changed files with 10 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
# AUTO-GENERATED by generate_cmake.py — do not edit manually
# Generated from cmake_config.json | 293 QML files, 6 C++ sources, 22 SVGs, 1 audio assets
# Generated from cmake_config.json | 296 QML files, 3 C++ sources, 22 SVGs, 1 audio assets
#
# Discovered packages:
# analytics v1.0.0 - Analytics Studio
@@ -46,10 +46,7 @@ qt_policy(SET QTP0001 NEW)
qt_add_executable(dbal-qml
main.cpp
src/DBALClient.cpp
src/ModPlayer.cpp
src/NodeRegistry.cpp
src/PackageLoader.cpp
src/PackageRegistry.cpp
)
target_compile_definitions(dbal-qml PRIVATE SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
@@ -131,7 +128,9 @@ set_source_files_properties(../../qml/MetaBuilder/AppLogic.js PROPERTIES QT_RESO
set_source_files_properties(../../qml/MetaBuilder/CActivityList.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CActivityList.qml)
set_source_files_properties(../../qml/MetaBuilder/CAdapterPatternSelector.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAdapterPatternSelector.qml)
set_source_files_properties(../../qml/MetaBuilder/CAddDropdownDialog.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAddDropdownDialog.qml)
set_source_files_properties(../../qml/MetaBuilder/CAddFieldDialog.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAddFieldDialog.qml)
set_source_files_properties(../../qml/MetaBuilder/CAddRouteDialog.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAddRouteDialog.qml)
set_source_files_properties(../../qml/MetaBuilder/CAdminContentPanel.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAdminContentPanel.qml)
set_source_files_properties(../../qml/MetaBuilder/CAdminDialogs.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAdminDialogs.qml)
set_source_files_properties(../../qml/MetaBuilder/CAdminStatsBar.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAdminStatsBar.qml)
set_source_files_properties(../../qml/MetaBuilder/CAdminToolbar.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CAdminToolbar.qml)
@@ -151,6 +150,7 @@ set_source_files_properties(../../qml/MetaBuilder/CComponentTypeLegend.qml PROPE
set_source_files_properties(../../qml/MetaBuilder/CConfigStatCard.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CConfigStatCard.qml)
set_source_files_properties(../../qml/MetaBuilder/CConnectionLayer.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CConnectionLayer.qml)
set_source_files_properties(../../qml/MetaBuilder/CConnectionTest.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CConnectionTest.qml)
set_source_files_properties(../../qml/MetaBuilder/CCreateSchemaDialog.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CCreateSchemaDialog.qml)
set_source_files_properties(../../qml/MetaBuilder/CDataTable.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CDataTable.qml)
set_source_files_properties(../../qml/MetaBuilder/CDatabaseEnvConfig.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CDatabaseEnvConfig.qml)
set_source_files_properties(../../qml/MetaBuilder/CDatabaseStatsRow.qml PROPERTIES QT_RESOURCE_ALIAS qmllib/MetaBuilder/CDatabaseStatsRow.qml)
@@ -409,7 +409,9 @@ qt_add_qml_module(dbal-qml
../../qml/MetaBuilder/CActivityList.qml
../../qml/MetaBuilder/CAdapterPatternSelector.qml
../../qml/MetaBuilder/CAddDropdownDialog.qml
../../qml/MetaBuilder/CAddFieldDialog.qml
../../qml/MetaBuilder/CAddRouteDialog.qml
../../qml/MetaBuilder/CAdminContentPanel.qml
../../qml/MetaBuilder/CAdminDialogs.qml
../../qml/MetaBuilder/CAdminStatsBar.qml
../../qml/MetaBuilder/CAdminToolbar.qml
@@ -429,6 +431,7 @@ qt_add_qml_module(dbal-qml
../../qml/MetaBuilder/CConfigStatCard.qml
../../qml/MetaBuilder/CConnectionLayer.qml
../../qml/MetaBuilder/CConnectionTest.qml
../../qml/MetaBuilder/CCreateSchemaDialog.qml
../../qml/MetaBuilder/CDataTable.qml
../../qml/MetaBuilder/CDatabaseEnvConfig.qml
../../qml/MetaBuilder/CDatabaseStatsRow.qml

View File

@@ -169,7 +169,7 @@ def find_audio_assets(root_dir: Path) -> list[str]:
def find_cpp_sources(root_dir: Path) -> dict[str, list[str]]:
"""Find all *.cpp and *.h files in src/."""
"""Find all *.cpp, *.h, and *.hpp files in src/."""
src_dir = root_dir / "src"
result = {"cpp": [], "h": []}
if not src_dir.exists():
@@ -177,8 +177,9 @@ def find_cpp_sources(root_dir: Path) -> dict[str, list[str]]:
result["cpp"] = sorted(
str(f.relative_to(root_dir)) for f in src_dir.rglob("*.cpp")
)
headers = list(src_dir.rglob("*.h")) + list(src_dir.rglob("*.hpp"))
result["h"] = sorted(
str(f.relative_to(root_dir)) for f in src_dir.rglob("*.h")
str(f.relative_to(root_dir)) for f in headers
)
return result