aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-04 15:35:35 +0200
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-04 15:35:35 +0200
commit7a410b589e8c7b15bcc15ec6b2275ffe7e6a7db0 (patch)
treef71bf49d6364e01991d67fadb8a5cd0fccfceced /README
parentaf778cf94bbd8a36cc77e0c6ab2452e5a8044e0a (diff)
downloadqmenumodel-7a410b589e8c7b15bcc15ec6b2275ffe7e6a7db0.tar.gz
qmenumodel-7a410b589e8c7b15bcc15ec6b2275ffe7e6a7db0.tar.bz2
qmenumodel-7a410b589e8c7b15bcc15ec6b2275ffe7e6a7db0.zip
Add instructions.
Diffstat (limited to 'README')
-rw-r--r--README54
1 files changed, 54 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..e8e6b75
--- /dev/null
+++ b/README
@@ -0,0 +1,54 @@
+QMenuModel - a Qt/QML binding for GMenuModel
+(see http://developer.gnome.org/gio/unstable/GMenuModel.html)
+
+
+= Building =
+
+The build system uses cmake.
+To compile, simply invoke cmake and then make, e.g.:
+
+ $ cmake .
+ $ make
+
+
+= Running unit tests =
+
+To run the unit tests, you will need dbus-test-runner. If it wasn’t previously
+installed, install it and then re-run cmake. Then run either of these commands:
+
+ $ make test
+
+ - or -
+
+ $ ctest
+
+
+= Getting code coverage information =
+
+To run the unit tests and generate code coverage information, you need to re-run
+cmake with BUILD_WITH_COVERAGE set to ON and then invoke `make lcov`.
+This requires lcov to be installed.
+
+ $ cmake -DBUILD_WITH_COVERAGE=ON .
+ $ make lcov
+
+This will generate a report (coverage/index.html) which you can view in a
+browser.
+
+
+= API documentation =
+
+To generate API documentation, you need to re-run cmake with GENERATE_DOC set to
+ON and then invoke `make qdoc`. This requires qdoc3 to be installed.
+
+ $ cmake -DGENERATE_DOC=ON .
+ $ make qdoc
+
+The documentation is generated in the HTML format under doc/html/.
+
+
+= Examples =
+
+There are examples of how to use QDBusMenuModel in QML, refer to the README file
+under the examples/ directory for instructions.
+