"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmake/AddChmTarget.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).

AddChmTarget.cmake  (gnucash-docs-4.13):AddChmTarget.cmake  (gnucash-docs-5.0)
function (add_chm_target docname lang entities figures) function (add_chm_target targetbase lang entities figures)
set(docname "gnucash-${targetbase}")
set(chmfile "${docname}.chm") set(chmfile "${docname}.chm")
set(mapfile "${docname}.hhmap") set(mapfile "${docname}.hhmap")
set(BUILD_DIR "${DOCDIR_BUILD}/${lang}") set(BUILD_DIR "${DOCDIR_BUILD}/${lang}")
file(MAKE_DIRECTORY "${BUILD_DIR}") file(MAKE_DIRECTORY "${BUILD_DIR}")
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/htmlhelp") file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/htmlhelp")
add_custom_command( add_custom_command(
OUTPUT "${BUILD_DIR}/${chmfile}" "${BUILD_DIR}/${mapfile}" OUTPUT "${BUILD_DIR}/${chmfile}" "${BUILD_DIR}/${mapfile}"
COMMAND ${CMAKE_COMMAND} -v COMMAND ${CMAKE_COMMAND} -v
skipping to change at line 26 skipping to change at line 27
-D CURRENT_BIN_DIR=${CMAKE_CURRENT_BINARY_DIR} -D CURRENT_BIN_DIR=${CMAKE_CURRENT_BINARY_DIR}
-D BUILD_DIR=${BUILD_DIR} -D BUILD_DIR=${BUILD_DIR}
-D XSLTPROC=${XSLTPROC} -D XSLTPROC=${XSLTPROC}
"-DXSLTPROCFLAGS=\"${XSLTPROCFLAGS}\"" "-DXSLTPROCFLAGS=\"${XSLTPROCFLAGS}\""
"-Dentities=\"${entities}\"" "-Dentities=\"${entities}\""
-D HHC=${HHC} -D HHC=${HHC}
-P ${CMAKE_SOURCE_DIR}/cmake/MakeChm.cmake -P ${CMAKE_SOURCE_DIR}/cmake/MakeChm.cmake
DEPENDS ${entities} "index.docbook" "${CMAKE_SOURCE_DIR}/docbook/gnc-doc bookx.dtd" ${figures} DEPENDS ${entities} "index.docbook" "${CMAKE_SOURCE_DIR}/docbook/gnc-doc bookx.dtd" ${figures}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/htmlhelp") WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/htmlhelp")
add_custom_target("${lang}-${docname}-chm" add_custom_target("${lang}-${targetbase}-chm"
DEPENDS "${BUILD_DIR}/${chmfile}" "${BUILD_DIR}/${mapfile}") DEPENDS "${BUILD_DIR}/${chmfile}" "${BUILD_DIR}/${mapfile}")
add_dependencies(${docname}-chm "${lang}-${docname}-chm") add_dependencies(${lang}-chm "${lang}-${targetbase}-chm")
install(FILES install(FILES
"${BUILD_DIR}/${chmfile}" "${BUILD_DIR}/${chmfile}"
"${BUILD_DIR}/${mapfile}" "${BUILD_DIR}/${mapfile}"
DESTINATION "${CMAKE_INSTALL_DOCDIR}/${lang}" DESTINATION "${CMAKE_INSTALL_DOCDIR}/${lang}"
COMPONENT "chm") COMPONENT "chm")
endfunction() endfunction()
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

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