← Back to team overview

kicad-developers team mailing list archive

Re: Make Cairo optional

 

2016-03-22 18:11 GMT+03:00 Simon Wells <swel024@xxxxxxxxx>:
> Due to the performance of cairo on many systems attached is a patch
> that makes the cairo canvas and cairo libs optional.
>
> on osx this removes the need for the following libs
>
> libX11 libXau LibXdmcp LibXext libXrender libcairo
> libfontconfig libfreetype libpixman libpng16.16 libxcb-render
> libxcb-shm libxcb
>
> to be in the bundle. and reduces size by 14MB.
>
> If cairo libs are found by cmake then it is compiled with cairo, and
> if the cairo libs are not found then  it is built without cairo
> support. This has mainly been changed by just removing the required
> field from the find_package(Cairo) in CMake and then some basic #ifdef
> changes and pcbnew/cmakelists to make the cairo sources conditional.
>
> I would expect packagers to still build with all canvases but it may
> be useful for those that are only building for their machines.
>
> Simon
>

I like the idea... But may you add a user specified option so the
cairo may be added during configuration


References