pro2cmake: Add LibraryMapping.components

LibraryMapping.components is a list that holds the sub-components of a
CMake package.  Before, we held this information in
LibraryMapping.extra as find_package argument.

A subsequent patch will make use of LibraryMapping.components and
doesn't have to do find_package argument parsing.

Change-Id: Ie0d317245fb6ec1511e06b2e14c364292fced63a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2022-03-03 11:30:21 +01:00
parent b28f436cd4
commit f5a8d70dee

View File

@ -39,6 +39,7 @@ class LibraryMapping:
*, *,
resultVariable: typing.Optional[str] = None, resultVariable: typing.Optional[str] = None,
extra: typing.List[str] = [], extra: typing.List[str] = [],
components: typing.Optional[typing.List[str]] = None,
appendFoundSuffix: bool = True, appendFoundSuffix: bool = True,
emit_if: str = "", emit_if: str = "",
is_bundled_with_qt: bool = False, is_bundled_with_qt: bool = False,
@ -52,6 +53,7 @@ class LibraryMapping:
self.appendFoundSuffix = appendFoundSuffix self.appendFoundSuffix = appendFoundSuffix
# Allows passing addiitonal arguments to the generated find_package call. # Allows passing addiitonal arguments to the generated find_package call.
self.extra = extra self.extra = extra
self.components = components
self.targetName = targetName self.targetName = targetName
# True if qt bundles the library sources as part of Qt. # True if qt bundles the library sources as part of Qt.
@ -77,360 +79,300 @@ class LibraryMapping:
_qt_library_map = [ _qt_library_map = [
# Qt: # Qt:
LibraryMapping("androidextras", "Qt6", "Qt::AndroidExtras", components=["AndroidExtras"]),
LibraryMapping("3danimation", "Qt6", "Qt::3DAnimation", components=["3DAnimation"]),
LibraryMapping("3dcore", "Qt6", "Qt::3DCore", components=["3DCore"]),
LibraryMapping("3dcoretest", "Qt6", "Qt::3DCoreTest", components=["3DCoreTest"]),
LibraryMapping("3dextras", "Qt6", "Qt::3DExtras", components=["3DExtras"]),
LibraryMapping("3dinput", "Qt6", "Qt::3DInput", components=["3DInput"]),
LibraryMapping("3dlogic", "Qt6", "Qt::3DLogic", components=["3DLogic"]),
LibraryMapping("3dquick", "Qt6", "Qt::3DQuick", components=["3DQuick"]),
LibraryMapping("3dquickextras", "Qt6", "Qt::3DQuickExtras", components=["3DQuickExtras"]),
LibraryMapping("3dquickinput", "Qt6", "Qt::3DQuickInput", components=["3DQuickInput"]),
LibraryMapping("3dquickrender", "Qt6", "Qt::3DQuickRender", components=["3DQuickRender"]),
LibraryMapping("3drender", "Qt6", "Qt::3DRender", components=["3DRender"]),
LibraryMapping( LibraryMapping(
"androidextras", "Qt6", "Qt::AndroidExtras", extra=["COMPONENTS", "AndroidExtras"] "application-lib", "Qt6", "Qt::AppManApplication", components=["AppManApplication"]
), ),
LibraryMapping("3danimation", "Qt6", "Qt::3DAnimation", extra=["COMPONENTS", "3DAnimation"]), LibraryMapping("axbase", "Qt6", "Qt::AxBasePrivate", components=["AxBasePrivate"]),
LibraryMapping("3dcore", "Qt6", "Qt::3DCore", extra=["COMPONENTS", "3DCore"]), LibraryMapping("axcontainer", "Qt6", "Qt::AxContainer", components=["AxContainer"]),
LibraryMapping("3dcoretest", "Qt6", "Qt::3DCoreTest", extra=["COMPONENTS", "3DCoreTest"]), LibraryMapping("axserver", "Qt6", "Qt::AxServer", components=["AxServer"]),
LibraryMapping("3dextras", "Qt6", "Qt::3DExtras", extra=["COMPONENTS", "3DExtras"]), LibraryMapping("bluetooth", "Qt6", "Qt::Bluetooth", components=["Bluetooth"]),
LibraryMapping("3dinput", "Qt6", "Qt::3DInput", extra=["COMPONENTS", "3DInput"]), LibraryMapping("bootstrap", "Qt6", "Qt::Bootstrap", components=["Bootstrap"]),
LibraryMapping("3dlogic", "Qt6", "Qt::3DLogic", extra=["COMPONENTS", "3DLogic"]),
LibraryMapping("3dquick", "Qt6", "Qt::3DQuick", extra=["COMPONENTS", "3DQuick"]),
LibraryMapping(
"3dquickextras", "Qt6", "Qt::3DQuickExtras", extra=["COMPONENTS", "3DQuickExtras"]
),
LibraryMapping("3dquickinput", "Qt6", "Qt::3DQuickInput", extra=["COMPONENTS", "3DQuickInput"]),
LibraryMapping(
"3dquickrender", "Qt6", "Qt::3DQuickRender", extra=["COMPONENTS", "3DQuickRender"]
),
LibraryMapping("3drender", "Qt6", "Qt::3DRender", extra=["COMPONENTS", "3DRender"]),
LibraryMapping(
"application-lib", "Qt6", "Qt::AppManApplication", extra=["COMPONENTS", "AppManApplication"]
),
LibraryMapping("axbase", "Qt6", "Qt::AxBasePrivate", extra=["COMPONENTS", "AxBasePrivate"]),
LibraryMapping("axcontainer", "Qt6", "Qt::AxContainer", extra=["COMPONENTS", "AxContainer"]),
LibraryMapping("axserver", "Qt6", "Qt::AxServer", extra=["COMPONENTS", "AxServer"]),
LibraryMapping("bluetooth", "Qt6", "Qt::Bluetooth", extra=["COMPONENTS", "Bluetooth"]),
LibraryMapping("bootstrap", "Qt6", "Qt::Bootstrap", extra=["COMPONENTS", "Bootstrap"]),
# bootstrap-dbus: Not needed in Qt6! # bootstrap-dbus: Not needed in Qt6!
LibraryMapping("client", "Qt6", "Qt::WaylandClient", extra=["COMPONENTS", "WaylandClient"]), LibraryMapping("client", "Qt6", "Qt::WaylandClient", components=["WaylandClient"]),
LibraryMapping("coap", "Qt6", "Qt::Coap", extra=["COMPONENTS", "Coap"]), LibraryMapping("coap", "Qt6", "Qt::Coap", components=["Coap"]),
LibraryMapping("common-lib", "Qt6", "Qt::AppManCommon", extra=["COMPONENTS", "AppManCommon"]), LibraryMapping("common-lib", "Qt6", "Qt::AppManCommon", components=["AppManCommon"]),
LibraryMapping( LibraryMapping("compositor", "Qt6", "Qt::WaylandCompositor", components=["WaylandCompositor"]),
"compositor", "Qt6", "Qt::WaylandCompositor", extra=["COMPONENTS", "WaylandCompositor"] LibraryMapping("concurrent", "Qt6", "Qt::Concurrent", components=["Concurrent"]),
), LibraryMapping("container", "Qt6", "Qt::AxContainer", components=["AxContainer"]),
LibraryMapping("concurrent", "Qt6", "Qt::Concurrent", extra=["COMPONENTS", "Concurrent"]), LibraryMapping("control", "Qt6", "Qt::AxServer", components=["AxServer"]),
LibraryMapping("container", "Qt6", "Qt::AxContainer", extra=["COMPONENTS", "AxContainer"]), LibraryMapping("core_headers", "Qt6", "Qt::WebEngineCore", components=["WebEngineCore"]),
LibraryMapping("control", "Qt6", "Qt::AxServer", extra=["COMPONENTS", "AxServer"]), LibraryMapping("core", "Qt6", "Qt::Core", components=["Core"]),
LibraryMapping( LibraryMapping("crypto-lib", "Qt6", "Qt::AppManCrypto", components=["AppManCrypto"]),
"core_headers", "Qt6", "Qt::WebEngineCore", extra=["COMPONENTS", "WebEngineCore"] LibraryMapping("dbus", "Qt6", "Qt::DBus", components=["DBus"]),
), LibraryMapping("designer", "Qt6", "Qt::Designer", components=["Designer"]),
LibraryMapping("core", "Qt6", "Qt::Core", extra=["COMPONENTS", "Core"]),
LibraryMapping("crypto-lib", "Qt6", "Qt::AppManCrypto", extra=["COMPONENTS", "AppManCrypto"]),
LibraryMapping("dbus", "Qt6", "Qt::DBus", extra=["COMPONENTS", "DBus"]),
LibraryMapping("designer", "Qt6", "Qt::Designer", extra=["COMPONENTS", "Designer"]),
LibraryMapping( LibraryMapping(
"designercomponents", "designercomponents",
"Qt6", "Qt6",
"Qt::DesignerComponentsPrivate", "Qt::DesignerComponentsPrivate",
extra=["COMPONENTS", "DesignerComponentsPrivate"], components=["DesignerComponentsPrivate"],
), ),
LibraryMapping( LibraryMapping(
"devicediscovery", "devicediscovery",
"Qt6", "Qt6",
"Qt::DeviceDiscoverySupportPrivate", "Qt::DeviceDiscoverySupportPrivate",
extra=["COMPONENTS", "DeviceDiscoverySupportPrivate"], components=["DeviceDiscoverySupportPrivate"],
), ),
LibraryMapping( LibraryMapping(
"devicediscovery_support", "devicediscovery_support",
"Qt6", "Qt6",
"Qt::DeviceDiscoverySupportPrivate", "Qt::DeviceDiscoverySupportPrivate",
extra=["COMPONENTS", "DeviceDiscoverySupportPrivate"], components=["DeviceDiscoverySupportPrivate"],
), ),
LibraryMapping("edid", "Qt6", "Qt::EdidSupport", extra=["COMPONENTS", "EdidSupport"]), LibraryMapping("edid", "Qt6", "Qt::EdidSupport", components=["EdidSupport"]),
LibraryMapping("edid_support", "Qt6", "Qt::EdidSupport", extra=["COMPONENTS", "EdidSupport"]), LibraryMapping("edid_support", "Qt6", "Qt::EdidSupport", components=["EdidSupport"]),
LibraryMapping("eglconvenience", "Qt6", "Qt::EglSupport", extra=["COMPONENTS", "EglSupport"]), LibraryMapping("eglconvenience", "Qt6", "Qt::EglSupport", components=["EglSupport"]),
LibraryMapping( LibraryMapping(
"eglfsdeviceintegration", "eglfsdeviceintegration",
"Qt6", "Qt6",
"Qt::EglFSDeviceIntegrationPrivate", "Qt::EglFSDeviceIntegrationPrivate",
extra=["COMPONENTS", "EglFSDeviceIntegrationPrivate"], components=["EglFSDeviceIntegrationPrivate"],
), ),
LibraryMapping( LibraryMapping(
"eglfs_kms_support", "eglfs_kms_support",
"Qt6", "Qt6",
"Qt::EglFsKmsSupportPrivate", "Qt::EglFsKmsSupportPrivate",
extra=["COMPONENTS", "EglFsKmsSupportPrivate"], components=["EglFsKmsSupportPrivate"],
), ),
LibraryMapping( LibraryMapping(
"eglfs_kms_gbm_support", "eglfs_kms_gbm_support",
"Qt6", "Qt6",
"Qt::EglFsKmsGbmSupportPrivate", "Qt::EglFsKmsGbmSupportPrivate",
extra=["COMPONENTS", "EglFsKmsGbmSupportPrivate"], components=["EglFsKmsGbmSupportPrivate"],
), ),
LibraryMapping("egl_support", "Qt6", "Qt::EglSupport", extra=["COMPONENTS", "EglSupport"]), LibraryMapping("egl_support", "Qt6", "Qt::EglSupport", components=["EglSupport"]),
# enginio: Not needed in Qt6! # enginio: Not needed in Qt6!
LibraryMapping( LibraryMapping(
"eventdispatchers", "eventdispatchers",
"Qt6", "Qt6",
"Qt::EventDispatcherSupport", "Qt::EventDispatcherSupport",
extra=["COMPONENTS", "EventDispatcherSupport"], components=["EventDispatcherSupport"],
), ),
LibraryMapping( LibraryMapping(
"eventdispatcher_support", "eventdispatcher_support",
"Qt6", "Qt6",
"Qt::EventDispatcherSupport", "Qt::EventDispatcherSupport",
extra=["COMPONENTS", "EventDispatcherSupport"], components=["EventDispatcherSupport"],
),
LibraryMapping(
"fbconvenience", "Qt6", "Qt::FbSupportPrivate", extra=["COMPONENTS", "FbSupportPrivate"]
),
LibraryMapping(
"fb_support", "Qt6", "Qt::FbSupportPrivate", extra=["COMPONENTS", "FbSupportPrivate"]
), ),
LibraryMapping("fbconvenience", "Qt6", "Qt::FbSupportPrivate", components=["FbSupportPrivate"]),
LibraryMapping("fb_support", "Qt6", "Qt::FbSupportPrivate", components=["FbSupportPrivate"]),
LibraryMapping( LibraryMapping(
"fontdatabase_support", "fontdatabase_support",
"Qt6", "Qt6",
"Qt::FontDatabaseSupport", "Qt::FontDatabaseSupport",
extra=["COMPONENTS", "FontDatabaseSupport"], components=["FontDatabaseSupport"],
), ),
LibraryMapping("gamepad", "Qt6", "Qt::Gamepad", extra=["COMPONENTS", "Gamepad"]), LibraryMapping("gamepad", "Qt6", "Qt::Gamepad", components=["Gamepad"]),
LibraryMapping("geniviextras", "Qt6", "Qt::GeniviExtras", extra=["COMPONENTS", "GeniviExtras"]), LibraryMapping("geniviextras", "Qt6", "Qt::GeniviExtras", components=["GeniviExtras"]),
LibraryMapping( LibraryMapping("global", "Qt6", "Qt::Core", components=["Core"]), # manually added special case
"global", "Qt6", "Qt::Core", extra=["COMPONENTS", "Core"] LibraryMapping("glx_support", "Qt6", "Qt::GlxSupport", components=["GlxSupport"]),
), # manually added special case LibraryMapping("gsttools", "Qt6", "Qt::MultimediaGstTools", components=["MultimediaGstTools"]),
LibraryMapping("glx_support", "Qt6", "Qt::GlxSupport", extra=["COMPONENTS", "GlxSupport"]), LibraryMapping("gui", "Qt6", "Qt::Gui", components=["Gui"]),
LibraryMapping( LibraryMapping("help", "Qt6", "Qt::Help", components=["Help"]),
"gsttools", "Qt6", "Qt::MultimediaGstTools", extra=["COMPONENTS", "MultimediaGstTools"]
),
LibraryMapping("gui", "Qt6", "Qt::Gui", extra=["COMPONENTS", "Gui"]),
LibraryMapping("help", "Qt6", "Qt::Help", extra=["COMPONENTS", "Help"]),
LibraryMapping( LibraryMapping(
"hunspellinputmethod", "hunspellinputmethod",
"Qt6", "Qt6",
"Qt::HunspellInputMethodPrivate", "Qt::HunspellInputMethodPrivate",
extra=["COMPONENTS", "HunspellInputMethodPrivate"], components=["HunspellInputMethodPrivate"],
),
LibraryMapping(
"input", "Qt6", "Qt::InputSupportPrivate", extra=["COMPONENTS", "InputSupportPrivate"]
), ),
LibraryMapping("input", "Qt6", "Qt::InputSupportPrivate", components=["InputSupportPrivate"]),
LibraryMapping( LibraryMapping(
"input_support", "input_support",
"Qt6", "Qt6",
"Qt::InputSupportPrivate", "Qt::InputSupportPrivate",
extra=["COMPONENTS", "InputSupportPrivate"], components=["InputSupportPrivate"],
), ),
LibraryMapping("installer-lib", "Qt6", "Qt::AppManInstaller", components=["AppManInstaller"]),
LibraryMapping("ivi", "Qt6", "Qt::Ivi", components=["Ivi"]),
LibraryMapping("ivicore", "Qt6", "Qt::IviCore", components=["IviCore"]),
LibraryMapping("ivimedia", "Qt6", "Qt::IviMedia", components=["IviMedia"]),
LibraryMapping("knx", "Qt6", "Qt::Knx", components=["Knx"]),
LibraryMapping( LibraryMapping(
"installer-lib", "Qt6", "Qt::AppManInstaller", extra=["COMPONENTS", "AppManInstaller"] "kmsconvenience", "Qt6", "Qt::KmsSupportPrivate", components=["KmsSupportPrivate"]
), ),
LibraryMapping("ivi", "Qt6", "Qt::Ivi", extra=["COMPONENTS", "Ivi"]), LibraryMapping("kms_support", "Qt6", "Qt::KmsSupportPrivate", components=["KmsSupportPrivate"]),
LibraryMapping("ivicore", "Qt6", "Qt::IviCore", extra=["COMPONENTS", "IviCore"]), LibraryMapping("launcher-lib", "Qt6", "Qt::AppManLauncher", components=["AppManLauncher"]),
LibraryMapping("ivimedia", "Qt6", "Qt::IviMedia", extra=["COMPONENTS", "IviMedia"]), LibraryMapping("lib", "Qt6", "Qt::Designer", components=["Designer"]),
LibraryMapping("knx", "Qt6", "Qt::Knx", extra=["COMPONENTS", "Knx"]),
LibraryMapping(
"kmsconvenience", "Qt6", "Qt::KmsSupportPrivate", extra=["COMPONENTS", "KmsSupportPrivate"]
),
LibraryMapping(
"kms_support", "Qt6", "Qt::KmsSupportPrivate", extra=["COMPONENTS", "KmsSupportPrivate"]
),
LibraryMapping(
"launcher-lib", "Qt6", "Qt::AppManLauncher", extra=["COMPONENTS", "AppManLauncher"]
),
LibraryMapping("lib", "Qt6", "Qt::Designer", extra=["COMPONENTS", "Designer"]),
LibraryMapping( LibraryMapping(
"linuxaccessibility_support", "linuxaccessibility_support",
"Qt6", "Qt6",
"Qt::LinuxAccessibilitySupport", "Qt::LinuxAccessibilitySupport",
extra=["COMPONENTS", "LinuxAccessibilitySupport"], components=["LinuxAccessibilitySupport"],
), ),
LibraryMapping("location", "Qt6", "Qt::Location", extra=["COMPONENTS", "Location"]), LibraryMapping("location", "Qt6", "Qt::Location", components=["Location"]),
LibraryMapping("macextras", "Qt6", "Qt::MacExtras", extra=["COMPONENTS", "MacExtras"]), LibraryMapping("macextras", "Qt6", "Qt::MacExtras", components=["MacExtras"]),
LibraryMapping("main-lib", "Qt6", "Qt::AppManMain", extra=["COMPONENTS", "AppManMain"]), LibraryMapping("main-lib", "Qt6", "Qt::AppManMain", components=["AppManMain"]),
LibraryMapping( LibraryMapping("manager-lib", "Qt6", "Qt::AppManManager", components=["AppManManager"]),
"manager-lib", "Qt6", "Qt::AppManManager", extra=["COMPONENTS", "AppManManager"] LibraryMapping("monitor-lib", "Qt6", "Qt::AppManMonitor", components=["AppManMonitor"]),
), LibraryMapping("mqtt", "Qt6", "Qt::Mqtt", components=["Mqtt"]),
LibraryMapping( LibraryMapping("multimedia", "Qt6", "Qt::Multimedia", components=["Multimedia"]),
"monitor-lib", "Qt6", "Qt::AppManMonitor", extra=["COMPONENTS", "AppManMonitor"]
),
LibraryMapping("mqtt", "Qt6", "Qt::Mqtt", extra=["COMPONENTS", "Mqtt"]),
LibraryMapping("multimedia", "Qt6", "Qt::Multimedia", extra=["COMPONENTS", "Multimedia"]),
LibraryMapping( LibraryMapping(
"multimediawidgets", "multimediawidgets",
"Qt6", "Qt6",
"Qt::MultimediaWidgets", "Qt::MultimediaWidgets",
extra=["COMPONENTS", "MultimediaWidgets"], components=["MultimediaWidgets"],
),
LibraryMapping("network", "Qt6", "Qt::Network", extra=["COMPONENTS", "Network"]),
LibraryMapping("networkauth", "Qt6", "Qt::NetworkAuth", extra=["COMPONENTS", "NetworkAuth"]),
LibraryMapping("nfc", "Qt6", "Qt::Nfc", extra=["COMPONENTS", "Nfc"]),
LibraryMapping("oauth", "Qt6", "Qt::NetworkAuth", extra=["COMPONENTS", "NetworkAuth"]),
LibraryMapping("opcua", "Qt6", "Qt::OpcUa", extra=["COMPONENTS", "OpcUa"]),
LibraryMapping(
"opcua_private", "Qt6", "Qt::OpcUaPrivate", extra=["COMPONENTS", "OpcUaPrivate"]
),
LibraryMapping("opengl", "Qt6", "Qt::OpenGL", extra=["COMPONENTS", "OpenGL"]),
LibraryMapping(
"openglwidgets", "Qt6", "Qt::OpenGLWidgets", extra=["COMPONENTS", "OpenGLWidgets"]
),
LibraryMapping(
"package-lib", "Qt6", "Qt::AppManPackage", extra=["COMPONENTS", "AppManPackage"]
), ),
LibraryMapping("network", "Qt6", "Qt::Network", components=["Network"]),
LibraryMapping("networkauth", "Qt6", "Qt::NetworkAuth", components=["NetworkAuth"]),
LibraryMapping("nfc", "Qt6", "Qt::Nfc", components=["Nfc"]),
LibraryMapping("oauth", "Qt6", "Qt::NetworkAuth", components=["NetworkAuth"]),
LibraryMapping("opcua", "Qt6", "Qt::OpcUa", components=["OpcUa"]),
LibraryMapping("opcua_private", "Qt6", "Qt::OpcUaPrivate", components=["OpcUaPrivate"]),
LibraryMapping("opengl", "Qt6", "Qt::OpenGL", components=["OpenGL"]),
LibraryMapping("openglwidgets", "Qt6", "Qt::OpenGLWidgets", components=["OpenGLWidgets"]),
LibraryMapping("package-lib", "Qt6", "Qt::AppManPackage", components=["AppManPackage"]),
LibraryMapping( LibraryMapping(
"packetprotocol", "packetprotocol",
"Qt6", "Qt6",
"Qt::PacketProtocolPrivate", "Qt::PacketProtocolPrivate",
extra=["COMPONENTS", "PacketProtocolPrivate"], components=["PacketProtocolPrivate"],
), ),
LibraryMapping( LibraryMapping(
"particles", "particles",
"Qt6", "Qt6",
"Qt::QuickParticlesPrivate", "Qt::QuickParticlesPrivate",
extra=["COMPONENTS", "QuickParticlesPrivate"], components=["QuickParticlesPrivate"],
), ),
LibraryMapping( LibraryMapping(
"plugin-interfaces", "plugin-interfaces",
"Qt6", "Qt6",
"Qt::AppManPluginInterfaces", "Qt::AppManPluginInterfaces",
extra=["COMPONENTS", "AppManPluginInterfaces"], components=["AppManPluginInterfaces"],
), ),
LibraryMapping("positioning", "Qt6", "Qt::Positioning", extra=["COMPONENTS", "Positioning"]), LibraryMapping("positioning", "Qt6", "Qt::Positioning", components=["Positioning"]),
LibraryMapping( LibraryMapping(
"positioningquick", "Qt6", "Qt::PositioningQuick", extra=["COMPONENTS", "PositioningQuick"] "positioningquick", "Qt6", "Qt::PositioningQuick", components=["PositioningQuick"]
), ),
LibraryMapping("printsupport", "Qt6", "Qt::PrintSupport", extra=["COMPONENTS", "PrintSupport"]), LibraryMapping("printsupport", "Qt6", "Qt::PrintSupport", components=["PrintSupport"]),
LibraryMapping("purchasing", "Qt6", "Qt::Purchasing", extra=["COMPONENTS", "Purchasing"]), LibraryMapping("purchasing", "Qt6", "Qt::Purchasing", components=["Purchasing"]),
LibraryMapping("qmldebug", "Qt6", "Qt::QmlDebugPrivate", components=["QmlDebugPrivate"]),
LibraryMapping( LibraryMapping(
"qmldebug", "Qt6", "Qt::QmlDebugPrivate", extra=["COMPONENTS", "QmlDebugPrivate"] "qmldevtools", "Qt6", "Qt::QmlDevToolsPrivate", components=["QmlDevToolsPrivate"]
), ),
LibraryMapping( LibraryMapping(
"qmldevtools", "Qt6", "Qt::QmlDevToolsPrivate", extra=["COMPONENTS", "QmlDevToolsPrivate"] "qmlcompiler", "Qt6", "Qt::QmlCompilerPrivate", components=["QmlCompilerPrivate"]
), ),
LibraryMapping( LibraryMapping("qml", "Qt6", "Qt::Qml", components=["Qml"]),
"qmlcompiler", "Qt6", "Qt::QmlCompilerPrivate", extra=["COMPONENTS", "QmlCompilerPrivate"] LibraryMapping("qmldom", "Qt6", "Qt::QmlDomPrivate", components=["QmlDomPrivate"]),
), LibraryMapping("qmlmodels", "Qt6", "Qt::QmlModels", components=["QmlModels"]),
LibraryMapping("qml", "Qt6", "Qt::Qml", extra=["COMPONENTS", "Qml"]), LibraryMapping("qmltest", "Qt6", "Qt::QuickTest", components=["QuickTest"]),
LibraryMapping("qmldom", "Qt6", "Qt::QmlDomPrivate", extra=["COMPONENTS", "QmlDomPrivate"]),
LibraryMapping("qmlmodels", "Qt6", "Qt::QmlModels", extra=["COMPONENTS", "QmlModels"]),
LibraryMapping("qmltest", "Qt6", "Qt::QuickTest", extra=["COMPONENTS", "QuickTest"]),
LibraryMapping( LibraryMapping(
"qtmultimediaquicktools", "qtmultimediaquicktools",
"Qt6", "Qt6",
"Qt::MultimediaQuickPrivate", "Qt::MultimediaQuickPrivate",
extra=["COMPONENTS", "MultimediaQuickPrivate"], components=["MultimediaQuickPrivate"],
), ),
LibraryMapping( LibraryMapping(
"quick3dassetimport", "quick3dassetimport",
"Qt6", "Qt6",
"Qt::Quick3DAssetImport", "Qt::Quick3DAssetImport",
extra=["COMPONENTS", "Quick3DAssetImport"], components=["Quick3DAssetImport"],
),
LibraryMapping("core5compat", "Qt6", "Qt::Core5Compat", extra=["COMPONENTS", "Core5Compat"]),
LibraryMapping("quick3d", "Qt6", "Qt::Quick3D", extra=["COMPONENTS", "Quick3D"]),
LibraryMapping(
"quick3drender", "Qt6", "Qt::Quick3DRender", extra=["COMPONENTS", "Quick3DRender"]
), ),
LibraryMapping("core5compat", "Qt6", "Qt::Core5Compat", components=["Core5Compat"]),
LibraryMapping("quick3d", "Qt6", "Qt::Quick3D", components=["Quick3D"]),
LibraryMapping("quick3drender", "Qt6", "Qt::Quick3DRender", components=["Quick3DRender"]),
LibraryMapping( LibraryMapping(
"quick3druntimerender", "quick3druntimerender",
"Qt6", "Qt6",
"Qt::Quick3DRuntimeRender", "Qt::Quick3DRuntimeRender",
extra=["COMPONENTS", "Quick3DRuntimeRender"], components=["Quick3DRuntimeRender"],
),
LibraryMapping("quick3dutils", "Qt6", "Qt::Quick3DUtils", extra=["COMPONENTS", "Quick3DUtils"]),
LibraryMapping(
"quickcontrols2", "Qt6", "Qt::QuickControls2", extra=["COMPONENTS", "QuickControls2"]
), ),
LibraryMapping("quick3dutils", "Qt6", "Qt::Quick3DUtils", components=["Quick3DUtils"]),
LibraryMapping("quickcontrols2", "Qt6", "Qt::QuickControls2", components=["QuickControls2"]),
LibraryMapping( LibraryMapping(
"quickcontrols2impl", "quickcontrols2impl",
"Qt6", "Qt6",
"Qt::QuickControls2Impl", "Qt::QuickControls2Impl",
extra=["COMPONENTS", "QuickControls2Impl"], components=["QuickControls2Impl"],
), ),
LibraryMapping("quick", "Qt6", "Qt::Quick", extra=["COMPONENTS", "Quick"]), LibraryMapping("quick", "Qt6", "Qt::Quick", components=["Quick"]),
LibraryMapping( LibraryMapping(
"quickshapes", "Qt6", "Qt::QuickShapesPrivate", extra=["COMPONENTS", "QuickShapesPrivate"] "quickshapes", "Qt6", "Qt::QuickShapesPrivate", components=["QuickShapesPrivate"]
),
LibraryMapping(
"quicktemplates2", "Qt6", "Qt::QuickTemplates2", extra=["COMPONENTS", "QuickTemplates2"]
),
LibraryMapping("quickwidgets", "Qt6", "Qt::QuickWidgets", extra=["COMPONENTS", "QuickWidgets"]),
LibraryMapping(
"remoteobjects", "Qt6", "Qt::RemoteObjects", extra=["COMPONENTS", "RemoteObjects"]
),
LibraryMapping("script", "Qt6", "Qt::Script", extra=["COMPONENTS", "Script"]),
LibraryMapping("scripttools", "Qt6", "Qt::ScriptTools", extra=["COMPONENTS", "ScriptTools"]),
LibraryMapping("scxml", "Qt6", "Qt::Scxml", extra=["COMPONENTS", "Scxml"]),
LibraryMapping("sensors", "Qt6", "Qt::Sensors", extra=["COMPONENTS", "Sensors"]),
LibraryMapping("serialport", "Qt6", "Qt::SerialPort", extra=["COMPONENTS", "SerialPort"]),
LibraryMapping("serialbus", "Qt6", "Qt::SerialBus", extra=["COMPONENTS", "SerialBus"]),
LibraryMapping("services", "Qt6", "Qt::ServiceSupport", extra=["COMPONENTS", "ServiceSupport"]),
LibraryMapping(
"service_support", "Qt6", "Qt::ServiceSupport", extra=["COMPONENTS", "ServiceSupport"]
),
LibraryMapping("shadertools", "Qt6", "Qt::ShaderTools", extra=["COMPONENTS", "ShaderTools"]),
LibraryMapping("statemachine", "Qt6", "Qt::StateMachine", extra=["COMPONENTS", "StateMachine"]),
LibraryMapping("sql", "Qt6", "Qt::Sql", extra=["COMPONENTS", "Sql"]),
LibraryMapping("svg", "Qt6", "Qt::Svg", extra=["COMPONENTS", "Svg"]),
LibraryMapping("svgwidgets", "Qt6", "Qt::SvgWidgets", extra=["COMPONENTS", "SvgWidgets"]),
LibraryMapping("charts", "Qt6", "Qt::Charts", extra=["COMPONENTS", "Charts"]),
LibraryMapping("testlib", "Qt6", "Qt::Test", extra=["COMPONENTS", "Test"]),
LibraryMapping("texttospeech", "Qt6", "Qt::TextToSpeech", extra=["COMPONENTS", "TextToSpeech"]),
LibraryMapping(
"theme_support", "Qt6", "Qt::ThemeSupport", extra=["COMPONENTS", "ThemeSupport"]
),
LibraryMapping("tts", "Qt6", "Qt::TextToSpeech", extra=["COMPONENTS", "TextToSpeech"]),
LibraryMapping("uiplugin", "Qt6", "Qt::UiPlugin", extra=["COMPONENTS", "UiPlugin"]),
LibraryMapping("uitools", "Qt6", "Qt::UiTools", extra=["COMPONENTS", "UiTools"]),
LibraryMapping(
"virtualkeyboard", "Qt6", "Qt::VirtualKeyboard", extra=["COMPONENTS", "VirtualKeyboard"]
),
LibraryMapping(
"waylandclient", "Qt6", "Qt::WaylandClient", extra=["COMPONENTS", "WaylandClient"]
), ),
LibraryMapping("quicktemplates2", "Qt6", "Qt::QuickTemplates2", components=["QuickTemplates2"]),
LibraryMapping("quickwidgets", "Qt6", "Qt::QuickWidgets", components=["QuickWidgets"]),
LibraryMapping("remoteobjects", "Qt6", "Qt::RemoteObjects", components=["RemoteObjects"]),
LibraryMapping("script", "Qt6", "Qt::Script", components=["Script"]),
LibraryMapping("scripttools", "Qt6", "Qt::ScriptTools", components=["ScriptTools"]),
LibraryMapping("scxml", "Qt6", "Qt::Scxml", components=["Scxml"]),
LibraryMapping("sensors", "Qt6", "Qt::Sensors", components=["Sensors"]),
LibraryMapping("serialport", "Qt6", "Qt::SerialPort", components=["SerialPort"]),
LibraryMapping("serialbus", "Qt6", "Qt::SerialBus", components=["SerialBus"]),
LibraryMapping("services", "Qt6", "Qt::ServiceSupport", components=["ServiceSupport"]),
LibraryMapping("service_support", "Qt6", "Qt::ServiceSupport", components=["ServiceSupport"]),
LibraryMapping("shadertools", "Qt6", "Qt::ShaderTools", components=["ShaderTools"]),
LibraryMapping("statemachine", "Qt6", "Qt::StateMachine", components=["StateMachine"]),
LibraryMapping("sql", "Qt6", "Qt::Sql", components=["Sql"]),
LibraryMapping("svg", "Qt6", "Qt::Svg", components=["Svg"]),
LibraryMapping("svgwidgets", "Qt6", "Qt::SvgWidgets", components=["SvgWidgets"]),
LibraryMapping("charts", "Qt6", "Qt::Charts", components=["Charts"]),
LibraryMapping("testlib", "Qt6", "Qt::Test", components=["Test"]),
LibraryMapping("texttospeech", "Qt6", "Qt::TextToSpeech", components=["TextToSpeech"]),
LibraryMapping("theme_support", "Qt6", "Qt::ThemeSupport", components=["ThemeSupport"]),
LibraryMapping("tts", "Qt6", "Qt::TextToSpeech", components=["TextToSpeech"]),
LibraryMapping("uiplugin", "Qt6", "Qt::UiPlugin", components=["UiPlugin"]),
LibraryMapping("uitools", "Qt6", "Qt::UiTools", components=["UiTools"]),
LibraryMapping("virtualkeyboard", "Qt6", "Qt::VirtualKeyboard", components=["VirtualKeyboard"]),
LibraryMapping("waylandclient", "Qt6", "Qt::WaylandClient", components=["WaylandClient"]),
LibraryMapping( LibraryMapping(
"waylandcompositor", "waylandcompositor",
"Qt6", "Qt6",
"Qt::WaylandCompositor", "Qt::WaylandCompositor",
extra=["COMPONENTS", "WaylandCompositor"], components=["WaylandCompositor"],
), ),
LibraryMapping("webchannel", "Qt6", "Qt::WebChannel", extra=["COMPONENTS", "WebChannel"]), LibraryMapping("webchannel", "Qt6", "Qt::WebChannel", components=["WebChannel"]),
LibraryMapping("webengine", "Qt6", "Qt::WebEngine", extra=["COMPONENTS", "WebEngine"]), LibraryMapping("webengine", "Qt6", "Qt::WebEngine", components=["WebEngine"]),
LibraryMapping( LibraryMapping(
"webenginewidgets", "Qt6", "Qt::WebEngineWidgets", extra=["COMPONENTS", "WebEngineWidgets"] "webenginewidgets", "Qt6", "Qt::WebEngineWidgets", components=["WebEngineWidgets"]
), ),
LibraryMapping("websockets", "Qt6", "Qt::WebSockets", extra=["COMPONENTS", "WebSockets"]), LibraryMapping("websockets", "Qt6", "Qt::WebSockets", components=["WebSockets"]),
LibraryMapping("webview", "Qt6", "Qt::WebView", extra=["COMPONENTS", "WebView"]), LibraryMapping("webview", "Qt6", "Qt::WebView", components=["WebView"]),
LibraryMapping("widgets", "Qt6", "Qt::Widgets", extra=["COMPONENTS", "Widgets"]), LibraryMapping("widgets", "Qt6", "Qt::Widgets", components=["Widgets"]),
LibraryMapping("window-lib", "Qt6", "Qt::AppManWindow", extra=["COMPONENTS", "AppManWindow"]), LibraryMapping("window-lib", "Qt6", "Qt::AppManWindow", components=["AppManWindow"]),
LibraryMapping("winextras", "Qt6", "Qt::WinExtras", extra=["COMPONENTS", "WinExtras"]), LibraryMapping("winextras", "Qt6", "Qt::WinExtras", components=["WinExtras"]),
LibraryMapping("x11extras", "Qt6", "Qt::X11Extras", extra=["COMPONENTS", "X11Extras"]), LibraryMapping("x11extras", "Qt6", "Qt::X11Extras", components=["X11Extras"]),
LibraryMapping("xcb_qpa_lib", "Qt6", "Qt::XcbQpaPrivate", components=["XcbQpaPrivate"]),
LibraryMapping( LibraryMapping(
"xcb_qpa_lib", "Qt6", "Qt::XcbQpaPrivate", extra=["COMPONENTS", "XcbQpaPrivate"] "xkbcommon_support", "Qt6", "Qt::XkbCommonSupport", components=["XkbCommonSupport"]
),
LibraryMapping(
"xkbcommon_support", "Qt6", "Qt::XkbCommonSupport", extra=["COMPONENTS", "XkbCommonSupport"]
),
LibraryMapping("xmlpatterns", "Qt6", "Qt::XmlPatterns", extra=["COMPONENTS", "XmlPatterns"]),
LibraryMapping("xml", "Qt6", "Qt::Xml", extra=["COMPONENTS", "Xml"]),
LibraryMapping(
"qmlworkerscript", "Qt6", "Qt::QmlWorkerScript", extra=["COMPONENTS", "QmlWorkerScript"]
), ),
LibraryMapping("xmlpatterns", "Qt6", "Qt::XmlPatterns", components=["XmlPatterns"]),
LibraryMapping("xml", "Qt6", "Qt::Xml", components=["Xml"]),
LibraryMapping("qmlworkerscript", "Qt6", "Qt::QmlWorkerScript", components=["QmlWorkerScript"]),
LibraryMapping( LibraryMapping(
"quickparticles", "quickparticles",
"Qt6", "Qt6",
"Qt::QuickParticlesPrivate", "Qt::QuickParticlesPrivate",
extra=["COMPONENTS", "QuickParticlesPrivate"], components=["QuickParticlesPrivate"],
), ),
LibraryMapping( LibraryMapping(
"linuxofono_support", "linuxofono_support",
"Qt6", "Qt6",
"Qt::LinuxOfonoSupport", "Qt::LinuxOfonoSupport",
extra=["COMPONENTS", "LinuxOfonoSupport"], components=["LinuxOfonoSupport"],
), ),
LibraryMapping( LibraryMapping(
"linuxofono_support_private", "linuxofono_support_private",
"Qt6", "Qt6",
"Qt::LinuxOfonoSupportPrivate", "Qt::LinuxOfonoSupportPrivate",
extra=["COMPONENTS", "LinuxOfonoSupportPrivate"], components=["LinuxOfonoSupportPrivate"],
), ),
LibraryMapping("tools", "Qt6", "Qt::Tools", extra=["COMPONENTS", "Tools"]), LibraryMapping("tools", "Qt6", "Qt::Tools", components=["Tools"]),
LibraryMapping("axcontainer", "Qt6", "Qt::AxContainer", extra=["COMPONENTS", "AxContainer"]), LibraryMapping("axcontainer", "Qt6", "Qt::AxContainer", components=["AxContainer"]),
LibraryMapping( LibraryMapping("webkitwidgets", "Qt6", "Qt::WebKitWidgets", components=["WebKitWidgets"]),
"webkitwidgets", "Qt6", "Qt::WebKitWidgets", extra=["COMPONENTS", "WebKitWidgets"] LibraryMapping("zlib", "Qt6", "Qt::Zlib", components=["Zlib"]),
), LibraryMapping("httpserver", "Qt6", "Qt::HttpServer", components=["HttpServer"]),
LibraryMapping("zlib", "Qt6", "Qt::Zlib", extra=["COMPONENTS", "Zlib"]), LibraryMapping("sslserver", "Qt6", "Qt::SslServer", components=["HttpServer"]),
LibraryMapping("httpserver", "Qt6", "Qt::HttpServer", extra=["COMPONENTS", "HttpServer"]),
LibraryMapping("sslserver", "Qt6", "Qt::SslServer", extra=["COMPONENTS", "HttpServer"]),
] ]
# Note that the library map is adjusted dynamically further down. # Note that the library map is adjusted dynamically further down.
@ -478,9 +420,7 @@ _library_map = [
extra=["2.6.0"], extra=["2.6.0"],
), ),
LibraryMapping("host_dbus", None, None), LibraryMapping("host_dbus", None, None),
LibraryMapping( LibraryMapping("icu", "ICU", "ICU::i18n ICU::uc ICU::data", components=["i18n", "uc", "data"]),
"icu", "ICU", "ICU::i18n ICU::uc ICU::data", extra=["COMPONENTS", "i18n", "uc", "data"]
),
LibraryMapping("journald", "Libsystemd", "PkgConfig::Libsystemd"), LibraryMapping("journald", "Libsystemd", "PkgConfig::Libsystemd"),
LibraryMapping("jpeg", "JPEG", "JPEG::JPEG"), # see also libjpeg LibraryMapping("jpeg", "JPEG", "JPEG::JPEG"), # see also libjpeg
LibraryMapping("libatomic", "WrapAtomic", "WrapAtomic::WrapAtomic"), LibraryMapping("libatomic", "WrapAtomic", "WrapAtomic::WrapAtomic"),
@ -558,61 +498,59 @@ _library_map = [
resultVariable="TARGET XCB::XCB", resultVariable="TARGET XCB::XCB",
appendFoundSuffix=False, appendFoundSuffix=False,
), ),
LibraryMapping( LibraryMapping("xcb_glx", "XCB", "XCB::GLX", components=["GLX"], resultVariable="XCB_GLX"),
"xcb_glx", "XCB", "XCB::GLX", extra=["COMPONENTS", "GLX"], resultVariable="XCB_GLX"
),
LibraryMapping( LibraryMapping(
"xcb_icccm", "xcb_icccm",
"XCB", "XCB",
"XCB::ICCCM", "XCB::ICCCM",
extra=["0.3.9", "COMPONENTS", "ICCCM"], extra=["0.3.9"],
components=["ICCCM"],
resultVariable="XCB_ICCCM", resultVariable="XCB_ICCCM",
), ),
LibraryMapping( LibraryMapping(
"xcb_image", "xcb_image",
"XCB", "XCB",
"XCB::IMAGE", "XCB::IMAGE",
extra=["0.3.9", "COMPONENTS", "IMAGE"], extra=["0.3.9"],
components=["IMAGE"],
resultVariable="XCB_IMAGE", resultVariable="XCB_IMAGE",
), ),
LibraryMapping( LibraryMapping(
"xcb_keysyms", "xcb_keysyms",
"XCB", "XCB",
"XCB::KEYSYMS", "XCB::KEYSYMS",
extra=["0.3.9", "COMPONENTS", "KEYSYMS"], extra=["0.3.9"],
components=["KEYSYMS"],
resultVariable="XCB_KEYSYMS", resultVariable="XCB_KEYSYMS",
), ),
LibraryMapping( LibraryMapping(
"xcb_randr", "XCB", "XCB::RANDR", extra=["COMPONENTS", "RANDR"], resultVariable="XCB_RANDR" "xcb_randr", "XCB", "XCB::RANDR", components=["RANDR"], resultVariable="XCB_RANDR"
), ),
LibraryMapping( LibraryMapping(
"xcb_render", "xcb_render",
"XCB", "XCB",
"XCB::RENDER", "XCB::RENDER",
extra=["COMPONENTS", "RENDER"], components=["RENDER"],
resultVariable="XCB_RENDER", resultVariable="XCB_RENDER",
), ),
LibraryMapping( LibraryMapping(
"xcb_renderutil", "xcb_renderutil",
"XCB", "XCB",
"XCB::RENDERUTIL", "XCB::RENDERUTIL",
extra=["0.3.9", "COMPONENTS", "RENDERUTIL"], extra=["0.3.9"],
components=["RENDERUTIL"],
resultVariable="XCB_RENDERUTIL", resultVariable="XCB_RENDERUTIL",
), ),
LibraryMapping( LibraryMapping(
"xcb_shape", "XCB", "XCB::SHAPE", extra=["COMPONENTS", "SHAPE"], resultVariable="XCB_SHAPE" "xcb_shape", "XCB", "XCB::SHAPE", components=["SHAPE"], resultVariable="XCB_SHAPE"
),
LibraryMapping(
"xcb_shm", "XCB", "XCB::SHM", extra=["COMPONENTS", "SHM"], resultVariable="XCB_SHM"
),
LibraryMapping(
"xcb_sync", "XCB", "XCB::SYNC", extra=["COMPONENTS", "SYNC"], resultVariable="XCB_SYNC"
), ),
LibraryMapping("xcb_shm", "XCB", "XCB::SHM", components=["SHM"], resultVariable="XCB_SHM"),
LibraryMapping("xcb_sync", "XCB", "XCB::SYNC", components=["SYNC"], resultVariable="XCB_SYNC"),
LibraryMapping( LibraryMapping(
"xcb_xfixes", "xcb_xfixes",
"XCB", "XCB",
"XCB::XFIXES", "XCB::XFIXES",
extra=["COMPONENTS", "XFIXES"], components=["XFIXES"],
resultVariable="TARGET XCB::XFIXES", resultVariable="TARGET XCB::XFIXES",
appendFoundSuffix=False, appendFoundSuffix=False,
), ),
@ -620,7 +558,7 @@ _library_map = [
"xcb-xfixes", "xcb-xfixes",
"XCB", "XCB",
"XCB::XFIXES", "XCB::XFIXES",
extra=["COMPONENTS", "XFIXES"], components=["XFIXES"],
resultVariable="TARGET XCB::XFIXES", resultVariable="TARGET XCB::XFIXES",
appendFoundSuffix=False, appendFoundSuffix=False,
), ),
@ -628,12 +566,11 @@ _library_map = [
"xcb_xinput", "xcb_xinput",
"XCB", "XCB",
"XCB::XINPUT", "XCB::XINPUT",
extra=["1.12", "COMPONENTS", "XINPUT"], extra=["1.12"],
components=["XINPUT"],
resultVariable="XCB_XINPUT", resultVariable="XCB_XINPUT",
), ),
LibraryMapping( LibraryMapping("xcb_xkb", "XCB", "XCB::XKB", components=["XKB"], resultVariable="XCB_XKB"),
"xcb_xkb", "XCB", "XCB::XKB", extra=["COMPONENTS", "XKB"], resultVariable="XCB_XKB"
),
LibraryMapping("xcb_xlib", "X11_XCB", "X11::XCB"), LibraryMapping("xcb_xlib", "X11_XCB", "X11::XCB"),
LibraryMapping("xcomposite", "XComposite", "PkgConfig::XComposite"), LibraryMapping("xcomposite", "XComposite", "PkgConfig::XComposite"),
LibraryMapping("xkbcommon_evdev", "XKB", "XKB::XKB", extra=["0.5.0"]), # see also xkbcommon LibraryMapping("xkbcommon_evdev", "XKB", "XKB::XKB", extra=["0.5.0"]), # see also xkbcommon
@ -854,6 +791,9 @@ def generate_find_package_info(
isRequired = False isRequired = False
extra = lib.extra.copy() extra = lib.extra.copy()
if lib.components:
extra.append("COMPONENTS")
extra += lib.components
if "REQUIRED" in extra and use_qt_find_package: if "REQUIRED" in extra and use_qt_find_package:
isRequired = True isRequired = True