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