Use QtQuickCompiler to compile qml and js at build time
Open, Needs TriagePublic

Description

It would be great to make use of the QtQuickCompiler available since Qt 5.11 to compile qml and js at build time.

It is not so straight forward as we currently don't use qt5_add_resources in our CMake, so it needs some more investigation.

Refs:
http://doc.qt.io/QtQuickCompiler/
http://doc.qt.io/QtQuickCompiler/qquickcompiler-building-with-cmake.html

Related Objects

Some discussion in https://www.qt.io/blog/qml-modules-in-qt-6.2#commento-login-box-container (search "Johnny").

It does not seem possible with rcc. We could try to really have plugins (dynamic libraries) but they would be platform dependent. Need to weigh the pros and cons :)