qt6-bb10/tests/auto
Alexandru Croitor d0c2425d79 CMake: Choose better defaults for qt_add_plugin STATIC/SHARED
There was a recent behavior change where the public CMake API
qt_add_plugin API took into account the value of BUILD_SHARED_LIBS
to decide whether the plugin should be a static or shared library.

Instead, use the following new behavior

 - If no explicit option STATIC / SHARED option is passed, default to
   whatever flavor Qt was built as.
   Aka if Qt was configured with -shared, qt_add_plugin defaults
   to creating shared plugins. If it's a -static Qt, create static
   plugins.
 - If an explicit STATIC / SHARED option is set, override the default
   computed value with the given value.

As a result BUILD_SHARED_LIBS does not affect Qt plugins anymore. This
is more in line with Qt expectations.

Add SHARED as a new valid option to pass to qt_add_plugin (it wasn't
before).

Add tests to check for the above behavior.

Amends aa4a1006cb

Pick-to: 6.1
Fixes: QTBUG-92361
Task-number: QTBUG-88763
Change-Id: Iae806024ddd5cf10cfe58ddbcebd2818084b0bd7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2021-04-07 10:10:55 +02:00
..
cmake CMake: Choose better defaults for qt_add_plugin STATIC/SHARED 2021-04-07 10:10:55 +02:00
concurrent Fix a few compiler warnings in tests 2021-02-02 12:06:05 +01:00
corelib Merge integration refs/builds/qtci/dev/1617702467 2021-04-06 14:51:16 +00:00
dbus dbus: Fix missing QVersionNumber include 2021-01-25 12:09:17 +01:00
gui BLACKLIST tst_qfont for Red Hat 2021-04-06 07:35:24 +03:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network QWindowsPipeReader: determine pipe state before signaling 2021-04-06 11:27:41 +03:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Remove QEXPECT_FAIL from passing test 2021-03-31 10:20:07 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql QSqlQuery: make it a move only type 2021-03-21 10:16:56 +01:00
testlib QAbstractItemModelTester: fix false positive when model has zero columns 2021-03-30 10:36:06 +02:00
tools Silence a bunch of gcc warnings for the moc test 2021-03-29 15:59:48 +02:00
widgets Fix some warnings 2021-03-31 10:51:50 +02:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Build minimal subset of tests in desktop static builds 2021-04-06 09:15:37 +01:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00