Make the factoryloader test compile without library support
We define QT_STATICPLUGIN for the plugins in this case, so that they define the factory functions needed to link them directly into the test. Change-Id: I0f2de7bf6bec5a6d53ec9ad92536817c1221b7d5 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>bb10
parent
1d44b6bedb
commit
46730ca610
|
|
@ -7,6 +7,8 @@ TARGET = $$qtLibraryTarget(plugin1)
|
|||
DESTDIR = ../bin
|
||||
winrt:include(../winrt.pri)
|
||||
|
||||
!qtConfig(library): DEFINES += QT_STATICPLUGIN
|
||||
|
||||
# This is testdata for the tst_qpluginloader test.
|
||||
target.path = $$[QT_INSTALL_TESTS]/tst_qfactoryloader/bin
|
||||
INSTALLS += target
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ TARGET = $$qtLibraryTarget(plugin2)
|
|||
DESTDIR = ../bin
|
||||
winrt:include(../winrt.pri)
|
||||
|
||||
!qtConfig(library): DEFINES += QT_STATICPLUGIN
|
||||
|
||||
# This is testdata for the tst_qpluginloader test.
|
||||
target.path = $$[QT_INSTALL_TESTS]/tst_qfactoryloader/bin
|
||||
INSTALLS += target
|
||||
|
|
|
|||
Loading…
Reference in New Issue