meta-qt6/scripts
Samuli Piippo 284bfb1174 Conversion script to use new module names
meta-qt6 is planned to be as much as possible a drop-in replacement
for meta-qt5 layer. All the Qt module recipes use the same names as
the ones in meta-qt5. This means that both meta-qt5 and meta-qt6
layers can not be used at the same and adding both Qt5 and Qt6 to
the same image is not possible.

This script does a brute force rename for all the module names to make
it possible to use both layers at the same time. The new module names
get '6' postfix e.g. qtbase6, qtdeclarative6, qtdeclarative6-native.

Since both Qt versions deploy files with same names, the install paths
for either meta-qt5 or meta-qt6 must be changed.

For meta-qt5:

  QT_DIR_NAME  = "/qt5"

For meta-qt6:

  QT6_INSTALL_BINDIR:append = "/qt6"
  QT6_INSTALL_DATADIR:append = "/qt6"
  QT6_INSTALL_PLUGINSDIR:append = "/qt6"
  QT6_INSTALL_QMLDIR:append = "/qt6"
  QT6_INSTALL_TRANSLATIONSDIR:append = "/qt6"
  EXTRANATIVEPATH:append = "/qt6"

configured in a suitable global configuration file.

Change-Id: I141e3b7a2d6c7df8795e67311e06e7a0465de91a
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2023-08-28 09:43:23 +00:00
..
convert-to-new-modules.sh Conversion script to use new module names 2023-08-28 09:43:23 +00:00