This is an archive of the discontinued LLVM Phabricator instance.

Doxygen: add build option to use svg instead of png files for graphs
ClosedPublic

Authored by hans on Aug 12 2015, 2:50 PM.

Diff Detail

Event Timeline

hans updated this revision to Diff 31987.Aug 12 2015, 2:50 PM
hans retitled this revision from to Doxygen: add build option to use svg instead of png files for graphs.
hans updated this object.
hans added a reviewer: logan.
hans added a subscriber: llvm-commits.
hans added a comment.Aug 14 2015, 11:30 AM

Ping?

I think this is a really straight-forward patch, but it would be great to have someone take a look at it.

Logan doesn't seem to be around. Takumi or Sean, maybe you can take a look?

silvas edited edge metadata.Aug 17 2015, 2:47 PM

This looks fine.

Just for reference, is the significantly decreased size due to the SVG files just being smaller, or compressing better? Given that most browsers seem to support SVG nowadays (http://caniuse.com/#feat=svg), it might make sense to just hardcode svg in the doxygen.cfg.in file (with a comment explaining the choice). That avoids surfacing any complexity in cmake.

silvas accepted this revision.Aug 17 2015, 2:47 PM
silvas edited edge metadata.

Forgot to hit accept.

This revision is now accepted and ready to land.Aug 17 2015, 2:47 PM
hans added a comment.Aug 17 2015, 4:12 PM

Just for reference, is the significantly decreased size due to the SVG files just being smaller, or compressing better? Given that most browsers seem to support SVG nowadays (http://caniuse.com/#feat=svg), it might make sense to just hardcode svg in the doxygen.cfg.in file (with a comment explaining the choice). That avoids surfacing any complexity in cmake.

The svg files are smaller, but the big reduction comes from better compression.

For LLVM, the doxygen with png is 1.6 GB uncompressed and 980 MB compressed. With svg, it's 867 MB uncompressed and 65 MB compressed.

This revision was automatically updated to reflect the committed changes.