Commit Graph

9 Commits

Author SHA1 Message Date
Patrick Ohly 88619eb58c C++: replace auto_ptr with unique_ptr
auto_ptr has been deprecated for a while now. unique_ptr can
be taken for granted now, so use that instead.

GDBusMessage requires a custom deleter. Not sure how auto_ptr
handled that before.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2018-01-03 10:39:51 +01:00
Patrick Ohly c99d93372b autotools: build issue with PIM Manager + boost-locale
On current Debian Testing, boost libraries are installed in /usr/lib/<arch>
directories where they are not found by the Boost m4 macros. This breaks the
boost-locale detection because it only tries linking against libs that it
finds in the file system first.

To fix this, at least try linking with -lboost-locale and use that if it
works.
2014-01-21 23:26:45 -08:00
Patrick Ohly e6dddfd1c4 autotools: mark all .99 releases as pre-release
Somehow some policy crept in that said that only versions < .99.6 are
pre-releases. Not sure where that came from. The goal ist to mark all
.99 releases as pre-release in the version string.
2014-01-09 08:47:22 +01:00
Patrick Ohly f9f6eda294 autotools: compile client-test with -g by default
When compiling source files of client-test, use -g as default CXXFLAGS
instead of the "-g -O2" that autotools normally picks.  That speeds up
compilation significantly (on some platforms, gcc can't deal with the
many templates in ClientTest.cpp well) and leads to more useful
executables (suitable for interactive debugging) even when the rest of
the code gets optimized.

Explicitly specifying CXXFLAGS still overrides this per-target
default.

This feature depends on GNU make. A configure check is in place
to disable it when not using GNU make.
2013-10-01 09:28:39 +02:00
Patrick Ohly f13956bd4b PIM: locale-aware sorting and searching
Change the --enable-dbus-service-pim parameter into one which takes a
parameter that specifies how locale-aware sorting and searching is to
be implemented. The default implementation uses boost::locale. It is
expected to get replaced or augemented by OEMs which want to implement
more complex sorting or searching (like ignoring Tussenvoegsel in the
Netherlands).

The LocaleFactory instance takes the current locale from the
environment. Making it and its users aware of locale changes at
runtime might be needed at some point but is not part of the API at
the moment.

The Manager class uses the factory to handle sorting and searching
requests coming in via D-Bus. Right now, that is not functional yet
because the boost::locale implementation is just a stub. It only
compiles and links.

FullView::setSortOrder is now functional.

Clean up view code a bit:
- All views delay populating their content until the caller asks for
  it. For the FullView this will only happen once, so the caller must be
  able to handle an already populated view, which was missing
  in ViewResource. Still need a test for this.
- Use init(<smart pointer) consistently.
2012-10-25 16:43:48 +02:00
Krzesimir Nowak a7ad98fabc Port build system to non-recursive Automake.
All but toplevel Makefile.am are replaced with their non-recursive
counterparts. The generation of configure.in was removed (and thus
configure-{pre,post}.in are also removed) in favor of configure.ac
and m4 macros adding backend specific configure parts.

Version number is generated like in old build system.

There are still many things to improve, but for now there are no
immediate regressions. AUTOTOOLS-TODO contains a list of possible
improvements and fixes. AUTOTOOLS-TESTING contains what was tested
with current build system (configure flags, make options).
2011-08-30 16:38:34 +02:00
Murray Cumming bd8820bcbd Update m4-repo/ files from upstream
These files have changed slightly since they were last copied.
See https://bugs.meego.com/show_bug.cgi?id=17649#c6
2011-07-04 14:43:03 +02:00
Patrick Ohly 5c06549c7a Qt support: use Autotroll to determine right compile flags
Autotroll (http://tsunanet.net/autotroll/) allows configure to
determine the right compile flags needed to access Qt header files
and libraries.

SyncEvolution backends can append new Qt modules to the
"need_qt_modules" variable in the configure stub. If set, configure
will call AT_WITH_QT().

Excluding the GUI part of Qt is currently hard-coded. Enable it again
with "need_qt_modules=$need_qt_modules +gui" if necessary.
2010-06-30 10:38:11 +02:00
Patrick Ohly bb13e0effe autotools: cleaner separation between permanent and temporary m4 macro copies
autogen.sh still didn't remove all obsolete copies of libtool m4 macros.
After moving the only m4 macro that we provide as part of our repository
into m4-repo, it is possible to rebuild m4 during each autogen.sh run.
2009-07-15 22:17:28 +02:00