mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 20:22:27 +02:00
install a json file with build info beside console
This commit is contained in:
parent
59d4750153
commit
b7998935b0
3 changed files with 17 additions and 4 deletions
|
@ -31,15 +31,15 @@ macro(SET_PACKAGING_PARAMETERS)
|
|||
elseif (RELEASE_TYPE STREQUAL "PR")
|
||||
set(DEPLOY_PACKAGE TRUE)
|
||||
set(PR_BUILD 1)
|
||||
set(BUILD_VERSION "PR${RELEASE_NUMBER}")
|
||||
set(BUILD_ORGANIZATION "High Fidelity - PR#${RELEASE_NUMBER}")
|
||||
set(INTERFACE_BUNDLE_NAME "High Fidelity PR#${RELEASE_NUMBER}")
|
||||
set(BUILD_VERSION "PR#${RELEASE_NUMBER}")
|
||||
set(BUILD_ORGANIZATION "High Fidelity - ${BUILD_VERSION}")
|
||||
set(INTERFACE_BUNDLE_NAME "High Fidelity ${BUILD_VERSION}")
|
||||
set(INTERFACE_ICON_PREFIX "interface-beta")
|
||||
set(CONSOLE_ICON "console-beta.ico")
|
||||
else ()
|
||||
set(DEV_BUILD 1)
|
||||
set(BUILD_VERSION "dev")
|
||||
set(BUILD_ORGANIZATION "High Fidelity - Dev")
|
||||
set(BUILD_ORGANIZATION "High Fidelity - ${BUILD_VERSION}")
|
||||
set(INTERFACE_BUNDLE_NAME "Interface")
|
||||
set(INTERFACE_ICON_PREFIX "interface-beta")
|
||||
set(CONSOLE_ICON "console-beta.ico")
|
||||
|
|
4
cmake/templates/console-build-info.json.in
Normal file
4
cmake/templates/console-build-info.json.in
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"releaseType": "@RELEASE_TYPE@",
|
||||
"buildIdentifier": "@BUILD_VERSION@"
|
||||
}
|
|
@ -53,4 +53,13 @@ endif()
|
|||
|
||||
if (PR_BUILD OR PRODUCTION_BUILD)
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL FALSE EXCLUDE_FROM_DEFAULT_BUILD FALSE)
|
||||
|
||||
# configure our build info json file and install it beside the console
|
||||
set(CONSOLE_BUILD_INFO_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/console-build-info.json")
|
||||
configure_file("${HF_CMAKE_DIR}/templates/console-build-info.json.in" ${CONSOLE_BUILD_INFO_OUTPUT})
|
||||
install(
|
||||
FILES ${CONSOLE_BUILD_INFO_OUTPUT}
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${SERVER_COMPONENT}
|
||||
)
|
||||
endif ()
|
||||
|
|
Loading…
Reference in a new issue