Commit 72828ed7 authored by Joerg Bornemann's avatar Joerg Bornemann Committed by Qt Cherry-pick Bot
Browse files

CMake: Don't give plugins PUBLIC usage requirements


The pro2cmake.py conversion script faithfully reproduced the .pro files
for the plugins, which specified the libraries as public. But in CMake,
the implications of this are that public usage requirements should then
be propagated to consumers. We don't expect any consumers, since a
plugin is created as a MODULE library in CMake, so for Windows we don't
even have an import library to link with. The only exception to this is
for static builds where plugins are created as STATIC libraries
instead, but only in certain controlled situations do we then link to
plugins. Even then, usage requirements are not expected to propagate to
the consumers, so these relationships should always be specified as
private.

Task-number: QTBUG-90819
Change-Id: I97ac6b81cfc89ded50e9f4038f53c8c7c98c3f4c
Reviewed-by: default avatarQt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: default avatarAlexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 864ae072)
Rev...
No related merge requests found
Showing with 13 additions and 16 deletions
...@@ -20,7 +20,7 @@ qt_internal_add_qml_module(qtquickvirtualkeyboardplugin ...@@ -20,7 +20,7 @@ qt_internal_add_qml_module(qtquickvirtualkeyboardplugin
QtQuick.VirtualKeyboard.Styles/2.2 QtQuick.VirtualKeyboard.Styles/2.2
SOURCES SOURCES
qtquickvirtualkeyboardplugin.cpp qtquickvirtualkeyboardplugin.h qtquickvirtualkeyboardplugin.cpp qtquickvirtualkeyboardplugin.h
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
......
...@@ -16,7 +16,7 @@ qt_internal_add_plugin(QVirtualKeyboardPlugin ...@@ -16,7 +16,7 @@ qt_internal_add_plugin(QVirtualKeyboardPlugin
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
......
...@@ -16,7 +16,7 @@ qt_internal_add_plugin(QtVirtualKeyboardHangulPlugin ...@@ -16,7 +16,7 @@ qt_internal_add_plugin(QtVirtualKeyboardHangulPlugin
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
......
...@@ -15,13 +15,12 @@ qt_internal_add_plugin(QtVirtualKeyboardOpenWnnPlugin ...@@ -15,13 +15,12 @@ qt_internal_add_plugin(QtVirtualKeyboardOpenWnnPlugin
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
Qt::VirtualKeyboard Qt::VirtualKeyboard
LIBRARIES # special case BundledOpenwnn
BundledOpenwnn
) )
# Resources: # Resources:
......
...@@ -16,13 +16,12 @@ qt_internal_add_plugin(QtVirtualKeyboardPinyinPlugin ...@@ -16,13 +16,12 @@ qt_internal_add_plugin(QtVirtualKeyboardPinyinPlugin
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
Qt::VirtualKeyboard Qt::VirtualKeyboard
LIBRARIES # special case BundledPinyin
BundledPinyin # special case
) )
# Resources: # Resources:
......
...@@ -15,13 +15,12 @@ qt_internal_add_plugin(QtVirtualKeyboardTCImePlugin ...@@ -15,13 +15,12 @@ qt_internal_add_plugin(QtVirtualKeyboardTCImePlugin
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
Qt::VirtualKeyboardPrivate Qt::VirtualKeyboardPrivate
LIBRARIES # special case BundledTcime
BundledTcime # special case
) )
# Resources: # Resources:
......
...@@ -15,7 +15,7 @@ qt_internal_add_plugin(QtVirtualKeyboardThaiPlugin ...@@ -15,7 +15,7 @@ qt_internal_add_plugin(QtVirtualKeyboardThaiPlugin
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
...@@ -49,7 +49,7 @@ qt_internal_add_resource(QtVirtualKeyboardThaiPlugin "qmake_virtualkeyboard_thai ...@@ -49,7 +49,7 @@ qt_internal_add_resource(QtVirtualKeyboardThaiPlugin "qmake_virtualkeyboard_thai
##################################################################### #####################################################################
qt_internal_extend_target(QtVirtualKeyboardThaiPlugin CONDITION QT_FEATURE_hunspell qt_internal_extend_target(QtVirtualKeyboardThaiPlugin CONDITION QT_FEATURE_hunspell
PUBLIC_LIBRARIES LIBRARIES
Qt::HunspellInputMethodPrivate Qt::HunspellInputMethodPrivate
) )
......
...@@ -15,7 +15,7 @@ qt_internal_add_qml_module(qtquickvirtualkeyboardsettingsplugin ...@@ -15,7 +15,7 @@ qt_internal_add_qml_module(qtquickvirtualkeyboardsettingsplugin
QtQuick/2.0 QtQuick/2.0
SOURCES SOURCES
qtquickvirtualkeyboardsettingsplugin.cpp qtquickvirtualkeyboardsettingsplugin.h qtquickvirtualkeyboardsettingsplugin.cpp qtquickvirtualkeyboardsettingsplugin.h
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
......
...@@ -21,7 +21,7 @@ qt_internal_add_qml_module(qtquickvirtualkeyboardstylesplugin ...@@ -21,7 +21,7 @@ qt_internal_add_qml_module(qtquickvirtualkeyboardstylesplugin
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::Qml Qt::Qml
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment