[Qt-creator] standalone plugins dependencies
Ziller Eike
Eike.Ziller at theqtcompany.com
Wed Jun 17 14:18:53 CEST 2015
> On Jun 17, 2015, at 1:45 PM, Petr Vanek <petr at yarpen.cz> wrote:
>
> hi all,
>
> let's assume I have 2 standalone plugins with dependency. These plugins
> are not merged into qt-creator tree. How can I specify dependencies
> between these plugs, please?
>
> - plug1, QTC_PLUGIN_DEPENDS += coreplugin texteditor projectexplorer
> - plug2, QTC_PLUGIN_DEPENDS += coreplugin texteditor projectexplorer plug1
>
> I tried to use QTC_PLUGIN_DIRS, for example, with no success.
QTC_PLUGIN_DIRS was exactly created for this.
>
> QTC_PLUGIN_DIRS += ../qore-plugin
You have to set that somewhere before qtcreator(plugin).pri is included.
(and you might want to use $$PWD/...... to avoid relative paths in qmake variables)
So e.g. in your plugin’s .pro file
QTC_PLUGIN_DIRS += $$PWD/../qore-plugin
include($$QTCREATOR_SOURCES/src/qtcreatorplugin.pri)
Or you can set QTC_PLUGIN_DIRS as an environment variable as well.
Also note that this only works if plug1 (qorus-plugin ?) uses a plug1_dependencies.pri to specify its dependencies (i.e. with the QTC_PLUGIN_NAME, QTC_LIB_DEPENDS and QTC_PLUGIN_DEPENDS inside).
Br, Eike
> QTC_PLUGIN_DEPENDS += coreplugin texteditor projectexplorer qoreplugin
> (or qore-plugin)
>
> dirs organization:
>
> build-qore-plugin-qt5-Debug
> build-qorus-ide-qt5-Debug
> build-qtcreator-qt5-Debug
> qore-plugin
> qorus-plugin
> qt-creator
>
> content of the lib/plugins target directory
> libBazaar.so libCore.so libDiffEditor.so libFakeVim.so
> libMercurial.so libqoreplugin.so libSubversion.so libVcsBase.so
> libBinEditor.so libCVS.so libEmacsKeys.so libGit.so
> libProjectExplorer.so libQorusIDE.so libTextEditor.so libWelcome.so
>
>
> thanks,
> Petr
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller, Senior Software Engineer - The Qt Company GmbH
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list