Conditionally disable generating help translations
The gnome-doc-utils dependency is problematic for gnome-continuous. This adds a configure switch --disable-documentation that turns off generating and installing the translated help, which is the only thing that requires xml2po and thus gnome-doc-utils. Closes: bgo #726585
This commit is contained in:
parent
6cf3f09384
commit
6ea5612863
3 changed files with 19 additions and 7 deletions
|
|
@ -29,12 +29,6 @@ endforeach()
|
|||
install(FILES ${HELP_SOURCE} DESTINATION ${HELP_DEST}/C)
|
||||
install(FILES C/figures/geary.svg DESTINATION ${HELP_DEST}/C/figures)
|
||||
|
||||
|
||||
FIND_PROGRAM(XML2PO_BIN xml2po)
|
||||
IF(NOT XML2PO_BIN)
|
||||
MESSAGE(FATAL_ERROR "xml2po not found")
|
||||
ENDIF()
|
||||
|
||||
# Hacked together from the similar macro in cmake/Gettext.cmake.
|
||||
MACRO(HELP_CREATE_TRANSLATIONS _firstLang)
|
||||
SET(_translatedPages)
|
||||
|
|
@ -78,4 +72,11 @@ MACRO(HELP_CREATE_TRANSLATIONS _firstLang)
|
|||
ENDIF()
|
||||
ENDMACRO()
|
||||
|
||||
HELP_CREATE_TRANSLATIONS(ALL ${TRANSLATED} COMMENT "Translating help docs.")
|
||||
IF(TRANSLATE_HELP)
|
||||
FIND_PROGRAM(XML2PO_BIN xml2po)
|
||||
IF(NOT XML2PO_BIN)
|
||||
MESSAGE(FATAL_ERROR "xml2po not found")
|
||||
ENDIF()
|
||||
|
||||
HELP_CREATE_TRANSLATIONS(ALL ${TRANSLATED} COMMENT "Translating help docs.")
|
||||
ENDIF()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue