Build: install the metatypes inside Qt's own arch-specific data dir

We don't want it in /lib64/metatypes, but instead /lib64/qt6/metatypes

Pick-to: 6.4
Change-Id: Id8e48e8f498c4a029619fffd17293602d7fd8bd8
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Thiago Macieira 2022-11-22 12:34:28 -08:00
parent 2becb1c207
commit d9dfe91417
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ for(dep, qt_module_deps) {
} else {
metatypes_filename = $$lower($$replace($${infixed_module_name}, $$QT_LIBINFIX, ''))$${ABI}_$${build_type}_metatypes.json
}
metatypes_filepath = $$[QT_INSTALL_LIBS]/metatypes/$${metatypes_filename}
metatypes_filepath = $$[QT_INSTALL_ARCHDATA]/metatypes/$${metatypes_filename}
exists($${metatypes_filepath}) {
QML_FOREIGN_METATYPES += $${metatypes_filepath}
break()