[cairo] Re: various glitz issues

David Reveman c99drn at cs.umu.se
Wed May 19 06:17:09 PDT 2004

On Wed, 2004-05-19 at 14:18 +0200, Øyvind Kolås wrote: 
> I agree that cairo shouldn't need to bother about anything, but this
> responsibility should not fall on the layer above cairo either,. linking
> just with cairo should be enough, cairo should pull in the deps it's
> libraries need, and the availability of features are checked at compile
> time using the feature defines?

Yes, and this is also how it works right now.

Cairo depends on the glitz library, so all applications linked to cairo
will also be linked to libglitz. 

Cairo doesn't depend on glitz's GLX or the AGL backend libraries, so by
linking to cairo the application will not automatically be linked to
libglitz-glx or libglitz-agl.

libglitz-glx and libglitz-agl provides functionality for creating and
destroying glitz surfaces, this is something an application or a layer
above cairo should do, and it's of course then also their responsibility
to link to the libglitz-glx or libglitz-agl library.

An application cannot use both libglitz-agl and libglitz-glx as they are
linked to different OpenGL libraries. If cairo would depend on
libglitz-glx or libglitz-agl, then applications that use AGL can't use
the same cairo library as the applications using GLX.

More information about the cairo mailing list