Commit Graph

126 Commits

Author SHA1 Message Date
Jakub Sitnicki
7552030ef9 build: add code coverage support
Build all targets, except for CLI tools (mmcli, uml290), with special
flags needed for collecting code coverage information when the build has
been configured with --enable-code-coverage.

Three new targets are available in the top build directory:

 - `check-code-coverage' runs the test suite and generates a code
   coverage report,

 - `code-coverage-capture' generates a code coverage report from already
   collected data, which can come in handy when one wants to see code
   paths touched by a particular test,

 - `code-coverage-clean' removes the collected coverage data and the
   generated reports.
2015-01-11 19:32:43 +01:00
Aleksander Morgado
46b707f847 mbim: use the new response checker helper method
mbim_message_response_get_result() is available in libmbim-glib 1.11.1.
2014-12-30 12:46:07 +01:00
Aleksander Morgado
8718ed53be build: remove --with-newest-qmi-commands configure option
We don't want people to use the logic enabled by this switch, so remove it from
configure to avoid confusions. Developers can still enable the related code by
defining WITH_NEWEST_QMI_COMMANDS via CFLAGS; e.g.:

 $ NOCONFIGURE=1 ./autogen.sh
 $ ./configure CFLAGS="-DWITH_NEWEST_QMI_COMMANDS"
2014-09-15 11:00:57 +02:00
Aleksander Morgado
836892902e broadband-modem-qmi: A-GPS available by default
Also bump libqmi requirement to 1.11.1, which is the one exposing the new A-GPS
related commands.
2014-09-05 12:10:55 +02:00
Aleksander Morgado
1acfb0ad2f build: post release version bump to 1.5.0 (development) 2014-08-22 18:11:27 +02:00
Aleksander Morgado
a2a7131701 release: bump version to 1.4.0 2014-08-22 17:54:28 +02:00
Aleksander Morgado
3dd6f93133 build: require libmbim 1.10.0
We were depending on some new MbimNwError values defined at some point in the
1.9 development series. Depend on the new stable 1.10 version now that it's been
released.
2014-08-04 15:20:57 +02:00
Aleksander Morgado
ff4e45791d build: use the correct pkg-config in checks 2014-06-13 16:54:06 +02:00
Aleksander Morgado
6313f5707e build: look for gdbus-codegen through pkg-config 2014-06-11 17:14:18 +02:00
Aleksander Morgado
8ca6c6cbad build: glib-genmarshal no longer needed 2014-06-11 17:12:52 +02:00
Ben Chan
235fb874c9 modem-helpers-mbim: map more MbimNwError to MMMobileEquipmentError
Commit b1ae81a in libmim ("libmbim-glib: add additional GMM cause codes
to MbimNwError") added additional GMM cause codes to MbimNwError. This
patch maps some of those MbimNwError to MMMobileEquipmentError.

This patch requires libmbim >= 1.9.0
2014-06-10 10:18:28 +02:00
Aleksander Morgado
ae99c452eb examples: add modem watcher example in JS 2014-04-11 10:31:02 +02:00
Aleksander Morgado
ebff76cfaa examples: add modem watcher example in python 2014-04-11 10:31:01 +02:00
Aleksander Morgado
a2ef167ccd build: require libmbim 1.8
We're going to add support for some features only available in that version.
2014-03-06 14:30:56 +01:00
Dan Williams
acc7b4b8b9 Revert "broadband-modem-mbim: update to use mbim_message_device_service_subscribe_list"
This reverts commit 8327db70b9.

libmbim change not committed yet...
2014-02-19 18:59:24 -06:00
Ben Chan
8327db70b9 broadband-modem-mbim: update to use mbim_message_device_service_subscribe_list
libmbim renames 'MBIM_CID_DEVICE_SERVICE_SUBSCRIBER_LIST' to
'MBIM_CID_DEVICE_SERVICE_SUBSCRIBE_LIST' to be consistent with the MBIM
specification. This patch updates MMBroadbandModemMbim accordingly.
2014-02-19 18:52:17 -06:00
Aleksander Morgado
46ff06ff80 service,tests: new DBus service file for tests 2014-02-13 13:41:17 +01:00
Aleksander Morgado
4827e79848 libmm-glib,tests: use gdbus-codegen to generate code for the new Test interface 2014-02-13 13:41:14 +01:00
Aleksander Morgado
1eaa416f22 introspection,tests: add new 'Test' interface 2014-02-13 13:41:12 +01:00
Aleksander Morgado
d81dd74452 build: post release version bump to 1.3.0 (development) 2014-01-30 17:57:11 +01:00
Aleksander Morgado
2c53c664d8 release: bump version to 1.2.0 2014-01-30 17:17:45 +01:00
Aleksander Morgado
5b078edc21 release: bump version to 1.1.900 (1.2-rc1)
Also bump soname of libmm-glib, as the interface has grown since the last tag.
2013-12-10 14:27:35 +01:00
Aleksander Morgado
0c618274e8 build: require libqmi 1.6.0
We were already requiring some features from 1.5.0 (dev version), so depend
on the stable 1.6.0 now that it's out.
2013-09-05 15:32:54 +02:00
Christian Persch
81194337fe build: Error out if vala bindings are enabled but Makefile.vapigen not found
Cannot test this for enable_vala=auto since enable_vala has been set to
yes/no by this time.

Bug #705641.
2013-08-14 13:30:36 +02:00
Christian Persch
bfae863296 libmm-glib: Add vala bindings
Bug #705641.
2013-08-14 13:30:35 +02:00
Christian Persch
b8838b8882 libmm-glib: Generate GObject introspection information
Bug #705641.
2013-08-14 13:30:35 +02:00
Aleksander Morgado
512ef6970c broadband-modem-qmi: implement manual CDMA activation
We'll also now require libqmi 1.5 (git master), needed to handle the PRL TLV
in 'DMS Activate Manual'.

TODO: require 1.6 as soon as it is released.
2013-08-08 09:50:04 +02:00
Aleksander Morgado
74056e02ce build: fix dbus activation file generation
https://bugzilla.gnome.org/show_bug.cgi?id=704711
2013-07-23 11:04:29 +02:00
Aleksander Morgado
599b3dd830 build: post release version bump to 1.1.0 (development) 2013-07-19 11:14:09 +02:00
Aleksander Morgado
5c68a3686d release: bump version to 1.0.0 2013-07-19 10:00:01 +02:00
Aleksander Morgado
5b3392e84b build: require libmbim by default, and explicitly log about --without-mbim 2013-07-14 17:13:07 +02:00
Aleksander Morgado
ac588e9d0e build: explicitly log about --without-qmi when looking for libqmi fails 2013-07-14 17:13:07 +02:00
Aleksander Morgado
76ff021a3c build: require libmbim-glib >= 1.4.0
We need it to get SMS support.
2013-06-24 19:37:38 +02:00
Aleksander Morgado
223db868a8 dbus: no need for systemd and nosystemd setups of the service file
We can just merge them.
2013-06-23 12:08:03 +02:00
Aleksander Morgado
a33e9671ea build: remove --with-tests option 2013-06-18 16:51:52 +02:00
Aleksander Morgado
f3f499fcec test: remove testers of the old interface
Old python tests using the old ModemManager interface are removed, as mmcli
provides already a much nicer way to test the DBus interface.

Also, mm-test.py and the PPPD plugin get removed, which were also using the old
interface, and which were not very useful for testing newer non-PPP based
modems.

https://bugzilla.gnome.org/show_bug.cgi?id=702061
2013-06-18 16:30:26 +02:00
Aleksander Morgado
56cce85153 build: use new mailing list as contact address 2013-06-13 11:35:57 +02:00
Aleksander Morgado
2139e394c2 build: setup libtool versioning for libmm-glib
We'll use it once we've released 0.8.
2013-06-13 11:11:02 +02:00
Aleksander Morgado
a43cecb456 api,header: setup and export MM version symbols in the API 2013-06-13 10:04:49 +02:00
Aleksander Morgado
0c7265de29 build: new strict & permissive polkit policies in '--with-polkit'
The '--with-polkit' configure switch now supports more options than just yes
or no:

 * strict: Active user needs to explicitly authenticate when peforming an
   operation defined in the Device.Control, Messaging, Location or Contacts
   interfaces. Polkit policy is set to 'auth_self_keep'.

 * permissive: Active user doesn't need to explicitly authenticate when
   peforming an operation defined in the Device.Control, Messaging, Location or
   Contacts interfaces. Polkit policy is set to 'yes'.

 * none: don't use polkit.

If '--with-polkit' is not given, usage will be automatically decided based on
the presence of the Polkit headers in the system (if headers found, strict
policy will be applied, otherwise none).

Also:
 * '--with-polkit' is equivalent to '--with-polkit=strict'
 * '--with-polkit=yes' is equivalent to '--with-polkit=strict'
 * '--with-polkit=no' is equivalent to '--with-polkit=none'
 * '--without-polkit' is equivalent to '--with-polkit=none'

By default, ModemManager will always apply the strict policy, in order to
protect the user from unwanted operations in the modem (e.g. getting the PIN
locked forever after wrong PIN/PUK unlock attempts).

https://bugzilla.gnome.org/show_bug.cgi?id=701740
2013-06-13 09:21:52 +02:00
Aleksander Morgado
9765790831 build: distribute in .xz format
Up to 30% size reduction:

$ du -hs ModemManager-0.7.991.tar.*
  1.6M	ModemManager-0.7.991.tar.bz2
  1.1M	ModemManager-0.7.991.tar.xz
2013-06-10 16:58:43 +02:00
Aleksander Morgado
81451db1d7 release: bump version to 0.7.991
Tagging to handle the new API updates, so that applications depending on the
libmm-glib library can use the version number to check support.
2013-06-05 19:15:16 +02:00
Aleksander Morgado
e134a81a87 build: use --enable-gtk-doc instead of our custom --with-docs 2013-05-26 19:16:39 +02:00
Aleksander Morgado
3ed1cb2e1d docs: don't require 'dia' to build the docs
These diagrams are not expected to change much, so just include the generated
PNGs in the repository, and remove 'dia' from the prerequisites to build the
documentation.
2013-05-26 19:16:39 +02:00
Aleksander Morgado
7ceca95323 build: require mbim-glib >= 1.0.0 when building MBIM support 2013-05-22 17:47:07 +02:00
Adrian Bunk
f31ab09433 configure.ac: enable maintainer mode by default
This is how it should be, and also consistent with NetworkManager.
2013-05-13 16:51:08 +02:00
Aleksander Morgado
0e60d964b3 build: MBIM support is auto
Use it if found, don't use it if not found.

Can be explicitly requested with --with-mbim.
2013-04-17 15:34:23 +02:00
Aleksander Morgado
dd5680debe build: new '--with-mbim' configure switch
Will enable MBIM support through libmbim.
2013-04-17 15:19:37 +02:00
Aleksander Morgado
678f596ff9 qcdm-serial-port: avoid playing with GByteArray internals
Since glib 2.32, we can use g_byte_array_new_take() to build a new GByteArray
from an own allocated buffer, so skip playing with the GByteArray internals.
2013-04-02 17:04:01 +02:00
Aleksander Morgado
e6a5ad259c build: fix check for libqmi when newest QMI commands are enabled
Reported by Marius Kotsbak <marius.kotsbak@gmail.com>
2013-03-14 14:41:50 +01:00