You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

100 lines
2.2 KiB

  1. include(Documentation)
  2. set(LINGUAS
  3. de
  4. es
  5. fr
  6. it
  7. ja
  8. nl
  9. pl
  10. pt_BR
  11. pt
  12. )
  13. set(TRANSLATED_ENTITIES
  14. apt.ent
  15. )
  16. set(ENTITIES
  17. apt-verbatim.ent
  18. ../vendor/${CURRENT_VENDOR}/apt-vendor.ent
  19. )
  20. if(WITH_DOC)
  21. add_docbook(apt-doc HTML TEXT ALL
  22. DOCUMENTS
  23. guide.dbk
  24. offline.dbk
  25. INSTALL ${CMAKE_INSTALL_DOCDIR}/../apt-doc
  26. LINGUAS ${LINGUAS}
  27. TRANSLATED_ENTITIES ${TRANSLATED_ENTITIES}
  28. DEPENDS ${ENTITIES}
  29. )
  30. add_docbook(libapt-pkg-doc HTML TEXT ALL
  31. DOCUMENTS
  32. design.dbk
  33. dpkg-tech.dbk
  34. files.dbk
  35. method.dbk
  36. INSTALL ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc
  37. LINGUAS ${LINGUAS}
  38. TRANSLATED_ENTITIES ${TRANSLATED_ENTITIES}
  39. DEPENDS ${ENTITIES}
  40. )
  41. find_package(Doxygen REQUIRED)
  42. file(GLOB_RECURSE apt_pkg "../apt-pkg/*.h" "../apt-pkg/*.cc")
  43. configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
  44. add_custom_command(
  45. OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
  46. COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
  47. COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
  48. DEPENDS ${apt_pkg} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
  49. )
  50. add_custom_target(apt-doxygen ALL
  51. DEPENDS ${PROJECT_BINARY_DIR}/doc/doxygen.stamp
  52. )
  53. install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/doxygen/html
  54. DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc
  55. PATTERN "*.map" EXCLUDE
  56. PATTERN "*.md5" EXCLUDE
  57. )
  58. endif()
  59. add_docbook(apt-man MANPAGE ALL
  60. DOCUMENTS
  61. apt.8.xml
  62. apt_auth.conf.5.xml
  63. apt-cache.8.xml
  64. apt-cdrom.8.xml
  65. apt.conf.5.xml
  66. apt-config.8.xml
  67. apt-extracttemplates.1.xml
  68. apt-ftparchive.1.xml
  69. apt-get.8.xml
  70. apt-key.8.xml
  71. apt-mark.8.xml
  72. apt_preferences.5.xml
  73. apt-patterns.7.xml
  74. apt-secure.8.xml
  75. apt-sortpkgs.1.xml
  76. apt-transport-http.1.xml
  77. apt-transport-https.1.xml
  78. apt-transport-mirror.1.xml
  79. sources.list.5.xml
  80. DEPENDS ${ENTITIES}
  81. TRANSLATED_ENTITIES ${TRANSLATED_ENTITIES}
  82. LINGUAS ${LINGUAS}
  83. )
  84. add_update_po4a(update-po4a po/${PROJECT_NAME}-doc.pot "po/header.pot.txt")
  85. add_subdirectory(examples)