make contacts and calendar service optional 83/30183/1 tizen_3.0_ivi accepted/tizen/common/20141121.093657 accepted/tizen/ivi/20141201.015707 submit/tizen/20141120.100440 tizen_3.0_ivi_release
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 12 Nov 2014 12:27:29 +0000 (13:27 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Wed, 12 Nov 2014 12:39:15 +0000 (13:39 +0100)
commita3a462223089c044c993ee3824b1759be1e05a14
treef5e26e77226827ec76b782082afc587e7bcb9cf3
parentb7158f86987259a9f12b889ae7308fb79a18e7f3
make contacts and calendar service optional

If enabled, incoming vcard and vcalendar items are stored in contact
service resp. calendar service. When disabled, such incoming items are
silently discarded. This follows the approach already taken for
vbookmark items.

The enabled/disabled check in CMake only looks at availability of the
.pc files. The .spec file then makes the .pc files available only when
desired. This is a bit error prone because something might pull them
in indirectly. However, that itself would be a bug and thus this
simple approach of extending CMake rules was used.

Only the mobile profile uses these services. Instead of checking for
the profile, a package or system bcond would be better. But that needs
to be fixed across multiple packages consistently and thus is not done
as part of this commit here.

Change-Id: I4eef2ab9cb20b9721becac5ea5989c74c183ab22
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
bt-share/CMakeLists.txt
bt-share/src/obex-event-handler.c
packaging/bluetooth-share.spec