freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Question about default SVG library integration in FreeTyp


From: Werner LEMBERG
Subject: Re: [ft-devel] Question about default SVG library integration in FreeType build system
Date: Mon, 22 Jul 2019 15:06:44 +0200 (CEST)

>> Simply protect the whole code in the SVG module file(s) with
>>
>>   #ifdef FT_CONFIG_OPTION_SVG
>>   ...
>>   #endif
> 
> I tried this.  But there's one problem with it. The `bzip2' module
> doesn't expose anything apart from some functions. However, my `svg'
> module exposes a renderer class with the name
> `ft_svg_renderer_class'.  This gets added in the list of the default
> modules too.  With the approach you suggested, this class doesn't
> get exposed when the macro FT_CONFIG_OPTION_SVG' isn't defined.
> That leads to an `undefined reference' error.

Ah, ok.  Well, then we need an #else part that sets up a dummy module
which returns `I don't work' for everything so that it gets skipped
in the module searching loop.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]