"Fossies" - the Fresh Open Source Software Archive  

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

AddPdfTarget.cmake  (gnucash-docs-4.13):AddPdfTarget.cmake  (gnucash-docs-5.0)
function (add_pdf_target docname lang entities figures) function (add_pdf_target targetbase lang entities figures)
set(docname "gnucash-${targetbase}")
set(fofile "${docname}.fo") set(fofile "${docname}.fo")
set(pdffile "${docname}.pdf") set(pdffile "${docname}.pdf")
set(BUILD_DIR "${DOCDIR_BUILD}/${lang}") set(BUILD_DIR "${DOCDIR_BUILD}/${lang}")
# Determine paper format depending on language (which maps to the document's directory name) # Determine paper format depending on language (which maps to the document's directory name)
# * for language "C" (fallback language) determine paper format based on cur rent locale # * for language "C" (fallback language) determine paper format based on cur rent locale
# * all others use A4. # * all others use A4.
set (XSLTFLAGS_FO "--stringparam paper.type A4") set (XSLTFLAGS_FO "--stringparam paper.type A4")
if (lang STREQUAL "C") if (lang STREQUAL "C")
skipping to change at line 44 skipping to change at line 45
add_custom_command( add_custom_command(
OUTPUT "${BUILD_DIR}/${pdffile}" OUTPUT "${BUILD_DIR}/${pdffile}"
COMMAND ${FOP} ${FOPFLAGS} COMMAND ${FOP} ${FOPFLAGS}
-l ${lang} -l ${lang}
-c "${CMAKE_CURRENT_BINARY_DIR}/fop.xconf" -c "${CMAKE_CURRENT_BINARY_DIR}/fop.xconf"
-fo "${CMAKE_CURRENT_BINARY_DIR}/${fofile}" -fo "${CMAKE_CURRENT_BINARY_DIR}/${fofile}"
-pdf "${BUILD_DIR}/${pdffile}" -pdf "${BUILD_DIR}/${pdffile}"
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${fofile}" ${figures}) DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${fofile}" ${figures})
add_custom_target("${lang}-${docname}-pdf" add_custom_target("${lang}-${targetbase}-pdf"
DEPENDS "${BUILD_DIR}/${pdffile}") DEPENDS "${BUILD_DIR}/${pdffile}")
add_dependencies(${docname}-pdf "${lang}-${docname}-pdf") add_dependencies(${lang}-pdf "${lang}-${targetbase}-pdf")
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)