Mir

Merge lp:~thomir-deactivatedaccount/mir/add-docs-package into lp:~mir-team/mir/trunk

Proposed by Thomi Richards
Status: Merged
Approved by: Robert Ancell
Approved revision: no longer in the source branch.
Merged at revision: 481
Proposed branch: lp:~thomir-deactivatedaccount/mir/add-docs-package
Merge into: lp:~mir-team/mir/trunk
Diff against target: 129 lines (+22/-12)
4 files modified
cmake/Doxygen.cmake (+2/-1)
debian/control (+18/-10)
debian/mir-doc.install (+1/-0)
debian/rules (+1/-1)
To merge this branch: bzr merge lp:~thomir-deactivatedaccount/mir/add-docs-package
Reviewer Review Type Date Requested Status
Robert Ancell Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+152597@code.launchpad.net

Commit message

Build documentation automatically as part of the build.

Description of the change

This branch modified the cmake scripts & debian/ control files to:

 * Automatically build the API documentation as part of a normal build.
 * Build a 'mir-doc' package that contains the mir API documentation.

This package is required before we can post the API documentation online as part of the autolanding process.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:469
http://jenkins.qa.ubuntu.com/job/mir-ci/33/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/mir-quantal-amd64-ci/33//console

Click here to trigger a rebuild:
http://jenkins.qa.ubuntu.com/job/mir-ci/33//rebuild/?

review: Approve (continuous-integration)
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Worked for me

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I'm not convinced I like running doxygen over the whole codebase on every little rebuild.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Is there a cmake method that does this like --enable-doc does on autotools?

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

Hi Robert,

alf's fixed that already - you can run with -DBUILD_DOXYGEN if you want the docs to be built - the debian package builder does this by default now.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cmake/Doxygen.cmake'
--- cmake/Doxygen.cmake 2013-03-04 16:02:02 +0000
+++ cmake/Doxygen.cmake 2013-03-10 21:41:21 +0000
@@ -5,7 +5,8 @@
5 message(STATUS "doxygen ${DOXYGEN_VERSION} (>= 1.8.0) available - enabling make target doc")5 message(STATUS "doxygen ${DOXYGEN_VERSION} (>= 1.8.0) available - enabling make target doc")
6 configure_file(doc/Doxyfile.in6 configure_file(doc/Doxyfile.in
7 ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)7 ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
8 add_custom_target(doc8 add_custom_target(doc ALL
9 COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile9 COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
10 SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)10 SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
11 install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/html DESTINATION ${CMAKE_INSTALL_PATH}/share/doc/mir-doc/)
11endif()12endif()
1213
=== modified file 'debian/control'
--- debian/control 2013-03-04 20:11:18 +0000
+++ debian/control 2013-03-10 21:41:21 +0000
@@ -6,6 +6,8 @@
6Build-Depends: cmake,6Build-Depends: cmake,
7 cmake-data,7 cmake-data,
8 debhelper (>= 9),8 debhelper (>= 9),
9 doxygen,
10 graphviz,
9 libboost1.48-all-dev | libboost-all-dev,11 libboost1.48-all-dev | libboost-all-dev,
10 protobuf-compiler,12 protobuf-compiler,
11 libdrm-dev [!armhf],13 libdrm-dev [!armhf],
@@ -27,7 +29,7 @@
27Depends: ${misc:Depends},29Depends: ${misc:Depends},
28 ${shlibs:Depends},30 ${shlibs:Depends},
29Description: Display server for Ubuntu - protocol implementation31Description: Display server for Ubuntu - protocol implementation
30 Mir is a display server running on linux systems, with a focus on efficiency, 32 Mir is a display server running on linux systems, with a focus on efficiency,
31 robust operation and a well-defined driver model.33 robust operation and a well-defined driver model.
32 .34 .
33 Contains the protocol's shared library.35 Contains the protocol's shared library.
@@ -40,7 +42,7 @@
40 ${misc:Depends},42 ${misc:Depends},
41 ${shlibs:Depends},43 ${shlibs:Depends},
42Description: Display server for Ubuntu - protocol definition44Description: Display server for Ubuntu - protocol definition
43 Mir is a display server running on linux systems, with a focus on efficiency, 45 Mir is a display server running on linux systems, with a focus on efficiency,
44 robust operation and a well-defined driver model.46 robust operation and a well-defined driver model.
45 .47 .
46 Contains the protocol's definition files.48 Contains the protocol's definition files.
@@ -51,7 +53,7 @@
51Depends: ${misc:Depends},53Depends: ${misc:Depends},
52 ${shlibs:Depends},54 ${shlibs:Depends},
53Description: Display server for Ubuntu - server library55Description: Display server for Ubuntu - server library
54 Mir is a display server running on linux systems, with a focus on efficiency, 56 Mir is a display server running on linux systems, with a focus on efficiency,
55 robust operation and a well-defined driver model.57 robust operation and a well-defined driver model.
56 .58 .
57 Contains the shared library needed by server applications for Mir.59 Contains the shared library needed by server applications for Mir.
@@ -63,7 +65,7 @@
63 libmirprotobuf-dev (= ${source:Version}),65 libmirprotobuf-dev (= ${source:Version}),
64 ${misc:Depends},66 ${misc:Depends},
65Description: Display server for Ubuntu - development headers67Description: Display server for Ubuntu - development headers
66 Mir is a display server running on linux systems, with a focus on efficiency, 68 Mir is a display server running on linux systems, with a focus on efficiency,
67 robust operation and a well-defined driver model.69 robust operation and a well-defined driver model.
68 .70 .
69 Contains header files required to build Mir servers.71 Contains header files required to build Mir servers.
@@ -74,7 +76,7 @@
74Depends: ${misc:Depends},76Depends: ${misc:Depends},
75 ${shlibs:Depends},77 ${shlibs:Depends},
76Description: Display server for Ubuntu - client library78Description: Display server for Ubuntu - client library
77 Mir is a display server running on linux systems, with a focus on efficiency, 79 Mir is a display server running on linux systems, with a focus on efficiency,
78 robust operation and a well-defined driver model.80 robust operation and a well-defined driver model.
79 .81 .
80 Contains the shared library needed by client applications for Mir.82 Contains the shared library needed by client applications for Mir.
@@ -86,18 +88,18 @@
86 libmirprotobuf-dev (= ${source:Version}),88 libmirprotobuf-dev (= ${source:Version}),
87 ${misc:Depends},89 ${misc:Depends},
88Description: Display server for Ubuntu - development headers90Description: Display server for Ubuntu - development headers
89 Mir is a display server running on linux systems, with a focus on efficiency, 91 Mir is a display server running on linux systems, with a focus on efficiency,
90 robust operation and a well-defined driver model.92 robust operation and a well-defined driver model.
91 .93 .
92 Contains header files required to develop against Mir.94 Contains header files required to develop against Mir.
9395
94Package: libmirclient-demos96Package: libmirclient-demos
95Architecture: any97Architecture: any
96Depends: ${misc:Depends}, 98Depends: ${misc:Depends},
97 libmirclient-dev(= ${binary:Version}),99 libmirclient-dev(= ${binary:Version}),
98Breaks: mir (<< 0.0.2-0ubuntu1)100Breaks: mir (<< 0.0.2-0ubuntu1)
99Description: Display server for Ubuntu - example client programs 101Description: Display server for Ubuntu - example client programs
100 Mir is a display server running on linux systems, with a focus on efficiency, 102 Mir is a display server running on linux systems, with a focus on efficiency,
101 robust operation and a well-defined driver model.103 robust operation and a well-defined driver model.
102 .104 .
103 Contains demo applications (with source) that use the Mir display server105 Contains demo applications (with source) that use the Mir display server
@@ -108,8 +110,14 @@
108 ${shlibs:Depends},110 ${shlibs:Depends},
109 libmirserver0 (= ${binary:Version}),111 libmirserver0 (= ${binary:Version}),
110Description: Display server for Ubuntu - server executable112Description: Display server for Ubuntu - server executable
111 Mir is a display server running on linux systems, with a focus on efficiency, 113 Mir is a display server running on linux systems, with a focus on efficiency,
112 robust operation and a well-defined driver model.114 robust operation and a well-defined driver model.
113 .115 .
114 Contains the main server executable.116 Contains the main server executable.
115117
118Package: mir-doc
119Architecture: all
120Depends: ${misc:Depends}
121Description: API documentation for mir
122 This package installs the mir API documentation.
123
116124
=== added file 'debian/mir-doc.install'
--- debian/mir-doc.install 1970-01-01 00:00:00 +0000
+++ debian/mir-doc.install 2013-03-10 21:41:21 +0000
@@ -0,0 +1,1 @@
1share/doc/mir-doc/
02
=== modified file 'debian/rules'
--- debian/rules 2013-01-28 20:54:07 +0000
+++ debian/rules 2013-03-10 21:41:21 +0000
@@ -32,7 +32,7 @@
32endif32endif
3333
34override_dh_installexamples:34override_dh_installexamples:
35 dh_installexamples -p libmirclient-demos 35 dh_installexamples -p libmirclient-demos
3636
37override_dh_makeshlibs:37override_dh_makeshlibs:
38 dh_makeshlibs -V38 dh_makeshlibs -V

Subscribers

People subscribed via source and target branches