[cairo] [PATCH] building libcairo-2.dll on Linux
Hans Breuer
hans at breuer.org
Mon Apr 16 13:22:44 PDT 2007
On 16.04.2007 09:02, Tor Lillqvist wrote:
> Behdad Esfahbod writes:
> > BTW, don't we need
> > to define cairo_public to __declspec(dllexport) and
> > __declspec(dllimport) for win32? I don't see any code for that. Or is
> > that not needed because of cairo.def?
>
If there would be a cairo.def it could replace the __declspec(dllexport)
with one major drawback: the .def file would need to be different depending
on the configuration (e.g. with or without PNG, freetype, etc.).
AFAIR this was the reason to not choose the .def file approach but go for
the cairo_public define, but maybe I'm wrong. Read yourself in the
following thread:
http://lists.freedesktop.org/archives/cairo/2005-September/005247.html
> Marking functions for export is unnecessary as cairo.def takes care of
> listing them.
I thought cairo.def was not part of the distribution but looking at
Makefile.am shows me I was wrong. The approach there still misses
reconfiguration without auto* tools.
Also at least the condition for cairo-pdf.h exports seems wrong. IIRC it
does work without Freetype since quite some time.
Regards,
Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
More information about the cairo
mailing list