Page MenuHome

CMake: optionally disable OBJ, STL & GPencil SVG support
ClosedPublic

Authored by Campbell Barton (campbellbarton) on Jun 7 2022, 7:15 AM.

Details

Summary

The following CMake options have been added (enabled by default),
except for the lite build configuration.

  • WITH_IO_STL
  • WITH_IO_WAVEFRONT_OBJ
  • WITH_IO_GPENCIL (for grease pencil SVG importing).

    Note that it was already possible to disable grease pencil export by disabling WITH_PUGIXML & WITH_HARU.

This is intended to keep the lite builds fast and small for building,
linking & execution.


NOTE: I've opted to use WITH_IO_ prefix and I think this helps differentiate these options from other libraries WITH_STL especially reads as if it might control C++ STL, for consistency it would be nicer to use WITH_IO_COLLADA but this can be handled separately.

Diff Detail

Repository
rB Blender
Branch
TEMP-CMAKE-DISABLE-IO (branched from master)
Build Status
Buildable 22445
Build 22445: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) requested review of this revision.Jun 7 2022, 7:15 AM
Campbell Barton (campbellbarton) created this revision.
  • Re-order directory inclusion in source/blender/io/CMakeLists.txt (harmless but keep OBJ/STL/GPENCIL order).
  • Correct comment after endif.
This revision is now accepted and ready to land.Jun 7 2022, 8:34 AM

Idea is fine with me, did not check changes in detail but from quick look also sounds good.