[QBS] QTPLUGIN variable counterpart in qbs
christian.kandeler at digia.com
Thu Nov 20 10:53:55 CET 2014
On 11/19/2014 09:28 PM, Yuriy Makarov wrote:
> I’m trying to build an iOS static library with QSql dependency via qbs.
> Qt is also built as a static library. In the app log I see the following
> QSqlDatabase: QSQLITE driver not loaded
> Trying to manually load sqlite plugin via Q_IMPORT_PLUGIN causes link
> error on attempt to resolve qt_static_plugin_qsqlite() symbol.
> According to Qt documentation
> (http://qt-project.org/doc/qt-5/plugins-howto.html), to use plugins in
> static configuration, one should set QTPLUGIN in the corresponding .pro
> file. I wonder if there’s a support for static plugins in qbs. If so,
> what’s the counterpart for QTPLUGIN / import_plugins variables?
In qbs, plugins are a special kind of module, so you just use a dependency:
(Perhaps a convenience item would be helpful here that gets rid of the
need to write out the condition.)
More information about the Qbs