Skip to content

qml: register QML as modules

Pierre Lamot requested to merge chub/vlc:qml/qml-as-modules into master

register Qml as modules and properly generate the QML cache (qmlcachegen) which should reduce the binary size (as we're currently shipping both cached and original version) and improve first time load (and slightly loading time in general)

future patches may provide

  • better tooling integration (code completion, linter)
  • imports using namespace (import VLC.Player) rather than absolute path imports

this is still a draft:

  • At the moment, the meson side is broken as it expects the qrc to be present at "configure" time to extract dependencies, I'm currently working on adding the support of Qml module in meson the same way CMake does.
  • autotools part should be reviewable

Merge request reports