384.2.1
by Charles Kerr
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%. |
1 |
#
|
2 |
# Copyright (C) 2013 Canonical Ltd |
|
3 |
#
|
|
4 |
# This program is free software: you can redistribute it and/or modify |
|
5 |
# it under the terms of the GNU General Public License version 3 as |
|
6 |
# published by the Free Software Foundation. |
|
7 |
#
|
|
8 |
# This program is distributed in the hope that it will be useful, |
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 |
# GNU General Public License for more details. |
|
12 |
#
|
|
13 |
# You should have received a copy of the GNU General Public License |
|
14 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 |
#
|
|
16 |
||
384.2.8
by Charles Kerr
In INSTALL, document the DBus runtime dependencies |
17 |
Compile-time build dependencies |
18 |
-------------------------------
|
|
19 |
- gettext (gettext 0.18.1.1-10ubuntu3 or later) |
|
20 |
- glib (libglib2.0, 2.35.4 or later) |
|
21 |
- cmake (cmake, 2.8.9 or later) |
|
22 |
- gcovr (gcovr, 2.4 or later) |
|
23 |
- lcov (lcov, 1.9 or later) |
|
24 |
- google test (libgtest-dev, 1.6.0 or later) |
|
25 |
- cppcheck (cppcheck) |
|
384.2.1
by Charles Kerr
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%. |
26 |
|
384.2.8
by Charles Kerr
In INSTALL, document the DBus runtime dependencies |
27 |
Runtime DBus dependencies |
28 |
-------------------------
|
|
29 |
- com.canonical.indicators.webcredentials |
|
30 |
- org.freedesktop.Accounts |
|
31 |
- org.freedesktop.Accounts.User |
|
32 |
- org.freedesktop.DisplayManager.Seat |
|
384.2.70
by Charles Kerr
update comments & documentation to reflect that we've replaced consolekit and login1 |
33 |
- org.freedesktop.login1.Manager |
34 |
- org.freedesktop.login1.Seat |
|
35 |
- org.freedesktop.login1.User |
|
384.2.8
by Charles Kerr
In INSTALL, document the DBus runtime dependencies |
36 |
- org.gnome.ScreenSaver |
37 |
- org.gnome.SessionManager |
|
38 |
- org.gnome.SessionManager.EndSessionDialog |
|
384.2.1
by Charles Kerr
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%. |
39 |
|
40 |
Building the code |
|
41 |
-----------------
|
|
42 |
The simplest case is: |
|
384.2.8
by Charles Kerr
In INSTALL, document the DBus runtime dependencies |
43 |
$ cd indicator-session-X.Y.Z |
44 |
$ mkdir build |
|
45 |
$ cd build |
|
46 |
$ cmake .. |
|
47 |
$ make |
|
384.2.1
by Charles Kerr
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%. |
48 |
|
49 |
Running the tests |
|
50 |
-----------------
|
|
384.2.8
by Charles Kerr
In INSTALL, document the DBus runtime dependencies |
51 |
$ cd indicator-session-X.Y.Z |
52 |
$ mkdir build |
|
53 |
$ cd build |
|
54 |
$ cmake .. |
|
55 |
$ make |
|
56 |
$ make test |
|
57 |
$ make cppcheck |
|
384.2.1
by Charles Kerr
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%. |
58 |
|
59 |
Generating Test Coverage Reports |
|
60 |
--------------------------------
|
|
384.2.8
by Charles Kerr
In INSTALL, document the DBus runtime dependencies |
61 |
$ cd indicator-session-X.Y.Z |
62 |
$ mkdir build-coverage |
|
63 |
$ cd build-coverage |
|
64 |
$ cmake -DCMAKE_BUILD_TYPE=coverage .. |
|
65 |
$ make |
|
66 |
$ make coverage-html |
|
384.2.1
by Charles Kerr
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%. |
67 |
|
68 |
Installation
|
|
69 |
------------
|
|
70 |
||
384.2.8
by Charles Kerr
In INSTALL, document the DBus runtime dependencies |
71 |
what gets installed |
72 |
LC_ALL=C /usr/bin/intltool-merge -x -u --no-translations com.canonical.indicator.session.gschema.xml.in com.canonical.indicator.session.gschema.xml |
|
73 |
||
74 |
||
75 |
||
76 |
||
384.2.1
by Charles Kerr
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%. |
77 |
FIXME: not tested |
78 |
To get files that form part of an installation, run a "make install" |
|
79 |
in the build directory. By default, this installs them in the "install" |
|
80 |
subdirectory of the build directory. If you want to install into a |
|
81 |
different directory, use |
|
82 |
||
83 |
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local # Or wherever... |
|
84 |
$ make release |
|
85 |
$ make install |
|
86 |