Installing qml caches

Alexander Volkov a.volkov at rusbitech.ru
Mon Jun 4 11:13:36 BST 2018


04.06.2018 04:26, Aleix Pol пишет:
> On Fri, Jun 1, 2018 at 1:10 PM, Alexander Volkov <a.volkov at rusbitech.ru> wrote:
>> Hi all,
>>
>> It would be nice to install .qmlc files in addition to .qml files to reduce
>> start-up time of applications.
>> They are generated with qmlcachegen. For Qt 5.11:
>> qmlcachegen -o example.qmlc qxample.qml
>>
>> Currently qml files are usually installed the following way:
>> install(DIRECTORY qml/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kcm)
>>
>> So this could be changed to something like
>> ecm_install_qml(qml org/kde/kcm)
>>
>> I wonder whether someone already working on this or want to implement such a
>> function?
>> If not, I'll try to do it myself.
>>
>> Cheers,
>> Alexander.
>>
> I'm not sure this makes sense, as far as I know it's not a
> binary-compatible format, so distros would have to recompile every
> application with qmlc files upon Qt update.
>
> Aleix

This can be made optional, as it is done in Qt.
So distros will have a choice whether to install qmlc files or not.
Debian installs them.




More information about the kde-core-devel mailing list