Skip to content

Commit

Permalink
[Doc] Include hosting doc on build
Browse files Browse the repository at this point in the history
  • Loading branch information
CupnPlateGames authored and past-due committed Jan 14, 2024
1 parent 33b4629 commit f04a2bd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ list(APPEND wz2100_doc_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/ScriptingManual.htm"
)

#######################
# Hosting documentation

set(host_doc_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/hosting/AutohostConfig.md"
"${CMAKE_CURRENT_SOURCE_DIR}/hosting/AutoratingServer.md"
"${CMAKE_CURRENT_SOURCE_DIR}/hosting/DedicatedHost.md"
)
set(host_doc_linux_scripts_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/hosting/linux_scripts/common.sh"
"${CMAKE_CURRENT_SOURCE_DIR}/hosting/linux_scripts/config_sample.sh"
"${CMAKE_CURRENT_SOURCE_DIR}/hosting/linux_scripts/game_sample.sh"
"${CMAKE_CURRENT_SOURCE_DIR}/hosting/linux_scripts/wz2100host_sample.service"
)

#######################
# Main documentation

Expand Down Expand Up @@ -232,6 +247,8 @@ if(wz2100_doc_IMAGES_FILES)
install(FILES ${wz2100_doc_IMAGES_FILES} DESTINATION "${CMAKE_INSTALL_DOCDIR}${WZ_OUTPUT_NAME_SUFFIX}/images" COMPONENT Docs)
endif()
install(FILES ${wz2100_doc_FILES} DESTINATION "${CMAKE_INSTALL_DOCDIR}${WZ_OUTPUT_NAME_SUFFIX}" COMPONENT Docs)
install(FILES ${host_doc_FILES} DESTINATION "${CMAKE_INSTALL_DOCDIR}${WZ_OUTPUT_NAME_SUFFIX}/hosting" COMPONENT Docs)
install(FILES ${host_doc_linux_scripts_FILES} DESTINATION "${CMAKE_INSTALL_DOCDIR}${WZ_OUTPUT_NAME_SUFFIX}/hosting/linux_scripts" COMPONENT Docs)

if(UNIX AND NOT SKIPPED_DOC_GENERATION)
# Man-page gzip and installation
Expand Down

0 comments on commit f04a2bd

Please sign in to comment.