[PATCH xorg-gtest 0/2] Import googletest into xorg-gtest

Peter Hutterer peter.hutterer at who-t.net
Wed Oct 3 23:44:01 PDT 2012


We need to build googletest and xorg-gtest from source for users of
xorg-gtest because we cannot guarantee a stable ABI (see googletest
documentation/C++ ODR for reasons).

This means we need googletest source, xorg-gtest source and actual test
sources around to compile. To further entertain developers, one shouldn't
make install googletest (it will complain about it), one must provide an
absolute path to googletest's sources for xorg-gtest, one must make install
xorg-gtest, and then, in the client, provide the path to the googletest
sources and set PKG_CONFIG_PATH etc. to the xorg-gtest installed bits.
This is madness, or at least inconvenient, whichever comes first.

Extra fun is to be had if one tries to build against a googletest that's in
the package repo and may be out of date.

These patches import googletest into xorg-gtest and thus allow xorg-gtest to
be built with normal dependencies only, and likewise the clients to use
xorg-gtest without having to worry about googletest. Clients must update to
the new Makefile-xorg-gtest.am though to avoid build errors once this is
merged.

Cheers,
  Peter


More information about the xorg-devel mailing list