"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmake/AddXdgHelpTarget.cmake" between
gnucash-docs-4.13.tar.gz and gnucash-docs-5.0.tar.gz

About: GnuCash is a personal and small business finance application (documentation).

AddXdgHelpTarget.cmake  (gnucash-docs-4.13):AddXdgHelpTarget.cmake  (gnucash-docs-5.0)
# #
# Functions to install the docbook xml sources for use with gnome help # Functions to install the docbook xml sources for use with gnome help
# #
# Paremeters: # Paremeters:
# - docname: basename of the main xml file. Will be used to locate # - targetbase: basename of the target to build. Will also be used
# this primary xml file and for various output files/directories # as part of various output files/directories
# - lang: language of the current document # - lang: language of the current document
# - entities: list of all xml files this document is composed of # - entities: list of all xml files this document is composed of
# - figdir: name of the directory holding the images # - figdir: name of the directory holding the images
function (add_xdghelp_target docname lang entities figures) function (add_xdghelp_target targetbase lang entities figures)
set(docname "gnucash-${targetbase}")
set(BUILD_DIR_BASE "${DATADIR_BUILD}/help/${lang}") set(BUILD_DIR_BASE "${DATADIR_BUILD}/help/${lang}")
set(BUILD_DIR "${BUILD_DIR_BASE}/${docname}") set(BUILD_DIR "${BUILD_DIR_BASE}/${docname}")
# Define location where KDE's help system looks for <doc> # Define location where KDE's help system looks for <doc>
# when invoked with help:<doc> # when invoked with help:<doc>
set(kde_lang ${lang}) set(kde_lang ${lang})
if (lang STREQUAL "C") if (lang STREQUAL "C")
set(kde_lang "en") set(kde_lang "en")
endif() endif()
set(BUILD_DIR_KDE_BASE "${DATADIR_BUILD}/doc/HTML") set(BUILD_DIR_KDE_BASE "${DATADIR_BUILD}/doc/HTML")
skipping to change at line 75 skipping to change at line 76
list(APPEND dest_figures "${BUILD_DIR}/${figure}") list(APPEND dest_figures "${BUILD_DIR}/${figure}")
endforeach() endforeach()
if(dest_figures) if(dest_figures)
add_custom_command( add_custom_command(
OUTPUT ${dest_figures} OUTPUT ${dest_figures}
COMMAND ${CMAKE_COMMAND} -E copy ${source_figures} "${BUILD_DIR}/fig ures" COMMAND ${CMAKE_COMMAND} -E copy ${source_figures} "${BUILD_DIR}/fig ures"
DEPENDS ${source_figures} "${CMAKE_CURRENT_BINARY_DIR}/xdghelptrigge r") DEPENDS ${source_figures} "${CMAKE_CURRENT_BINARY_DIR}/xdghelptrigge r")
endif() endif()
add_custom_target("${lang}-${docname}-xdghelp" add_custom_target("${lang}-${targetbase}-xdghelp"
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/xdghelptrigger" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/xdghelptrigger"
${dest_files} ${dest_figures}) ${dest_files} ${dest_figures})
add_dependencies(${docname}-xdghelp "${lang}-${docname}-xdghelp") add_dependencies(${lang}-xdghelp "${lang}-${targetbase}-xdghelp")
set(doc_install_dir_base "${CMAKE_INSTALL_DATADIR}/help/${lang}") set(doc_install_dir_base "${CMAKE_INSTALL_DATADIR}/help/${lang}")
set(doc_install_dir "${doc_install_dir_base}/${docname}") set(doc_install_dir "${doc_install_dir_base}/${docname}")
install(FILES ${source_files} install(FILES ${source_files}
DESTINATION "${doc_install_dir}" DESTINATION "${doc_install_dir}"
COMPONENT "xdghelp") COMPONENT "xdghelp")
install(FILES ${figures} install(FILES ${figures}
DESTINATION "${doc_install_dir}/figures" DESTINATION "${doc_install_dir}/figures"
COMPONENT "xdghelp") COMPONENT "xdghelp")
 End of changes. 5 change blocks. 
5 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)