]> git.saurik.com Git - apt.git/blame - doc/CMakeLists.txt
test: Avoid use of /proc/self/fd
[apt.git] / doc / CMakeLists.txt
CommitLineData
9a2aa0e7
JAK
1include(Documentation)
2
10ec2d23
JAK
3set(LINGUAS
4 de
5 es
6 fr
7 it
8 ja
9 nl
10 pl
11 pt_BR
12 pt
13)
9a2aa0e7 14
10ec2d23
JAK
15set(ENTITIES
16 apt.ent
17 apt-verbatim.ent
18 ../vendor/${CURRENT_VENDOR}/apt-vendor.ent
19)
9a2aa0e7 20
10ec2d23
JAK
21if(WITH_DOC)
22add_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
31add_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
7363c98f 42find_package(Doxygen REQUIRED)
10ec2d23
JAK
43
44file(GLOB_RECURSE apt_pkg "../apt-pkg/*.h" "../apt-pkg/*.cc")
45configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
46
47add_custom_command(
48 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
7363c98f 49 COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
10ec2d23
JAK
50 COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
51 DEPENDS ${apt_pkg} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
52)
53
54add_custom_target(apt-doxygen ALL
55 DEPENDS ${PROJECT_BINARY_DIR}/doc/doxygen.stamp
56)
57
58install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/doxygen/html
281383ce
JAK
59 DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc
60 PATTERN "*.map" EXCLUDE
61 PATTERN "*.md5" EXCLUDE
62)
9a2aa0e7 63
9a2aa0e7
JAK
64endif()
65
10ec2d23
JAK
66add_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)
9a2aa0e7 85
10ec2d23 86add_update_po4a(update-po4a po/${PROJECT_NAME}-doc.pot "po/header.pot.txt")
9a2aa0e7
JAK
87
88add_subdirectory(examples)