Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
Description
We currently serialize the objects for qmlcachegen by hand, which makes changing the layout fragile and tedious.
While QML will by default compile to C++, we still need to support it (and any new features that might get added there) in qmlcachegen, lest we loose live preview support.
To ease further maintenance, it might be worthwhile to replace the hand written serialization code with a high-quality serialization library like Capn'Proto or Flatbuffers.
With the options mentioned above, we would only introduce a build time dependency, so nothing would change from the perspective of current Qt users.