| 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 |
|
| 17 |
Compile-time build dependencies |
| 18 |
------------------------------- |
| 19 |
- gettext (gettext 0.18.1.1-10ubuntu3 or later) |
| 20 |
- glib (libglib2.0, 2.36 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 |
- lomiri-app-launch (liblomiri-app-launch-dev) |
| 26 |
- lomiri-url-dispatcher (liblomiri-url-dispatcher-dev) |
| 27 |
|
| 28 |
Building the code |
| 29 |
----------------- |
| 30 |
The simplest case is: |
| 31 |
$ cd indicator-location-X.Y.Z |
| 32 |
$ mkdir build |
| 33 |
$ cd build |
| 34 |
$ cmake .. |
| 35 |
$ make |
| 36 |
|
| 37 |
Running the tests |
| 38 |
----------------- |
| 39 |
$ cd indicator-location-X.Y.Z |
| 40 |
$ mkdir build |
| 41 |
$ cd build |
| 42 |
$ cmake .. |
| 43 |
$ make |
| 44 |
$ make test |
| 45 |
|
| 46 |
Generating Test Coverage Reports |
| 47 |
-------------------------------- |
| 48 |
$ cd indicator-location-X.Y.Z |
| 49 |
$ mkdir build-coverage |
| 50 |
$ cd build-coverage |
| 51 |
$ cmake -DCMAKE_BUILD_TYPE=coverage .. |
| 52 |
$ make |
| 53 |
$ make coverage-html |
| 54 |
|
| 55 |
Installation |
| 56 |
------------ |
| 57 |
$ mkdir build |
| 58 |
$ cd build |
| 59 |
$ cmake -DCMAKE_INSTALL_PREFIX=/usr .. # Or wherever... |
| 60 |
$ make |
| 61 |
$ make release |
| 62 |
$ make install |
| 63 |
|
| 64 |
What Gets Installed |
| 65 |
------------------- |
| 66 |
${libdir}/systemd/user/indicator-location.service |
| 67 |
${sysconfdir}/xdg/autostart/indicator-location.desktop |
| 68 |
${datadir}/unity/indicators/com.lomiri.indicator.location |
| 69 |
${libexecdir}/indicator-location/indicator-location-service |
| 70 |
|
| 71 |
|