Go to file
Alexandru Croitor f67d8ae2d4 Fix plugin target names to be compatible with Qt 5
In Qt 5, qmake generates CMake Config files which expose the plugins
as imported libraries. The name of these libraries are derived from
the plugin class name. So QCocoaIntegrationPlugin, and not qcocoa.

To keep compatibility between Qt5 and Qt6 CMake target names,
the pro2cmake script should generate plugin target names based on the
plugin class names.
To avoid passing the same name in qt_add_plugin (target and CLASS_NAME),
derive the class name from the target if the class name is
not explicitly specified.

Also add a new OUTPUT_NAME parameter which is used to change the
final file name of the plugin, so that it's compatible with Qt5.
For example to generate a qcocoa.dylib file, instead of
QCocoaIntegrationPlugin.dylib file.

The same OUTPUT_NAME value will be used for generation of plugin .prl
files for qmake consumption.

Change-Id: I4d53e680d7beb62befecd359cdf6bba60a34ff0d
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2020-01-27 11:49:11 +00:00
bin Add initial support for CMake "Ninja Multi-Config" generator 2020-01-27 11:47:57 +00:00
cmake Fix plugin target names to be compatible with Qt 5 2020-01-27 11:49:11 +00:00
coin Add initial support for CMake "Ninja Multi-Config" generator 2020-01-27 11:47:57 +00:00
config.tests Add initial support for cross-building to iOS 2019-12-03 13:35:59 +00:00
dist Add changes file for Qt 5.14.0 2019-12-03 13:44:27 +01:00
doc Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
examples Post Merge Fixes 2020-01-24 12:29:18 +00:00
lib
mkspecs qml_plugin.prf: Use and prefer QML_IMPORT_VERSION over IMPORT_VERSION 2020-01-17 11:16:44 +01:00
qmake Post Merge Fixes 2020-01-24 12:29:18 +00:00
src Add initial support for CMake "Ninja Multi-Config" generator 2020-01-27 11:47:57 +00:00
tests Post Merge Fixes 2020-01-24 12:29:18 +00:00
util Fix plugin target names to be compatible with Qt 5 2020-01-27 11:49:11 +00:00
.gitattributes
.gitignore Merge remote-tracking branch 'origin/wip/qt6' into wip/cmake 2019-07-11 17:17:51 +02:00
.qmake.conf Bump version 2019-12-17 12:41:31 +01:00
.tag
CMakeLists.txt Add custom targets for documentation 2019-12-18 14:27:01 +00:00
config_help.txt Merge remote-tracking branch 'origin/5.15' into dev 2020-01-09 01:00:26 +01:00
configure Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
configure.bat Configure: simplify logic 2019-03-14 12:13:58 +00:00
configure.cmake Post Merge Fixes 2020-01-24 12:29:18 +00:00
configure.json Post Merge Fixes 2020-01-24 12:29:18 +00:00
configure.pri Merge remote-tracking branch 'origin/5.15' into dev 2020-01-04 15:32:34 +01:00
dependencies.yaml Re-add dependencies.yaml so repos outside qt5 can be built with Coin 2019-09-19 17:07:36 +00:00
header.BSD Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.COMM Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.FDL Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.GPL Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.GPL-EXCEPT Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL3 Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL3-COMM Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL-NOGPL2 Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL-ONLY Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.MIT qsimd: add support for new x86 CPU features 2018-05-05 06:20:07 +00:00
INSTALL INSTALL: Remove outdated reference to Windows CE 2019-02-13 13:01:57 +00:00
LICENSE.FDL
LICENSE.GPL2 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.GPL3 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.GPL3-EXCEPT Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.LGPL3 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.LGPLv3 Remove LICENSE.GPLv3, LICENSE.LGPLv21, LGPL_EXCEPTION.txt 2018-04-16 11:02:14 +00:00
LICENSE.QT-LICENSE-AGREEMENT Update enterprise license agreement v4.2.1 2019-12-18 13:07:19 +02:00
qtbase.pro nuke configure -host-option 2016-12-13 18:55:59 +00:00
sync.profile Merge remote-tracking branch 'origin/5.15' into dev 2020-01-04 15:32:34 +01:00