feat(apps/config): Config Merger in python (#24081)

Co-authored-by: FlyingArowana <TheSCREWEDSoftware@users.noreply.github.com>
Co-authored-by: Brian Aldridge <baldridge@resourcedata.com>
This commit is contained in:
Ryan Turner
2025-12-29 04:24:53 +00:00
committed by GitHub
parent b38b34c5d4
commit 386a753b1b
8 changed files with 523 additions and 13 deletions

View File

@@ -178,6 +178,25 @@ foreach(APPLICATION_NAME ${APPLICATIONS_BUILD_LIST})
# Install config
CopyApplicationConfig(${APP_PROJECT_NAME} ${APPLICATION_NAME})
# Copy config merger tool (only once, after all app targets, if enabled)
if(TOOL_CONFIG_MERGER)
if(WIN32)
if("${CMAKE_MAKE_PROGRAM}" MATCHES "MSBuild")
foreach(cfg IN ITEMS Debug Release RelWithDebInfo MinSizeRel)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/bin/${cfg}/configs")
file(COPY "${CMAKE_SOURCE_DIR}/apps/config-merger/python/" DESTINATION "${CMAKE_BINARY_DIR}/bin/${cfg}/configs")
endforeach()
elseif(MINGW)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/bin/configs")
file(COPY "${CMAKE_SOURCE_DIR}/apps/config-merger/python/" DESTINATION "${CMAKE_BINARY_DIR}/bin/configs")
endif()
elseif(UNIX)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/bin/configs")
file(COPY "${CMAKE_SOURCE_DIR}/apps/config-merger/python/" DESTINATION "${CMAKE_BINARY_DIR}/bin/configs")
endif()
endif()
if (UNIX)
install(TARGETS ${APP_PROJECT_NAME} DESTINATION bin)
elseif (WIN32)