← Back to team overview

kicad-developers team mailing list archive

Make Cairo optional

 

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

Attachment: kicad_NoCairo.patch
Description: Binary data


Follow ups