>> 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

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to