Re: Acquiring Google Mock libraries for tests

2013-10-03 Thread Konrad Zemek

On 02.10.2013 00:41, Sebastian Kügler wrote:

I was having a hard time searching for examples of Google Mock usage on
projects.kde.org, so my question is: how do other KDE projects deal with
acquiring Google Mock?

What is Google Mock and what's the deal about it? Your email describe a
concrete issue, without giving a problem description. For me, it's hard to
make sense of it, not knowing Google Mock. I understand you're talking about a
general problem with precompiled libraries? Another example is libspotify,
if I understand correctly?


Google Mock is a popular library for creating mock objects (for testing 
purposes) in C++. The reason for me being so specific is that when it 
comes to libraries, Google Mock is a very specific case - it needs to be 
compiled along with tests, with same flags, so it should not be 
precompiled. For this reason Kubuntu now ships sources instead of 
precompiled libraries, and some other distros don't provide any package 
whatsoever.


The discussion we have in amarok-devel is about how to acquire Google 
Mock's sources in order to compile them (bundle them in our repository, 
require distros to package them, etc). I asked here because I wanted to 
know how other KDE projects deal with the issue, the assumption being 
that there are other KDE projects using Google Mock.


Konrad


Acquiring Google Mock libraries for tests

2013-10-01 Thread Konrad Zemek

Hey,

Recent changes of Google Mock package in Kubuntu (precompiled libraries 
are no longer shipped) have sparked a discussion on amarok-devel mailing 
list [1] on how should we proceed without readily available libraries to 
link to. Simply compiling sources from distro-provided package is not an 
option as not all distros ship them (e.g. Arch, Suse); that leaves us 
with options of pushing distros to provide such packages, or providing 
sources ourselves (in repository or otherwise).


I was having a hard time searching for examples of Google Mock usage on 
projects.kde.org, so my question is: how do other KDE projects deal with 
acquiring Google Mock?


Konrad

[1] http://mail.kde.org/pipermail/amarok-devel/2013-October/012718.html