Adapt the Qt Creator plugin project template to recent changes

Change-Id: Id5cc8642547a3698d2e11b956f0c1cfe3e8bea1e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2013-04-18 20:17:50 +02:00
parent 20874ca295
commit 0d5c886af3
4 changed files with 11 additions and 9 deletions

View File

@@ -4,7 +4,5 @@
<license>%License%</license>
<description>%Description%</description>
<url>%URL%</url>
<dependencyList>
<dependency name=\"Core\" version=\"$$QTCREATOR_VERSION\"/>
</dependencyList>
$$dependencyList
</plugin>

View File

@@ -1,6 +1,3 @@
TARGET = %PluginName%
TEMPLATE = lib
DEFINES += %PluginName:u%_LIBRARY
# %PluginName% files
@@ -32,6 +29,3 @@ isEmpty(IDE_BUILD_TREE):IDE_BUILD_TREE=%QtCreatorBuild%
PROVIDER = %VendorName%
include($$QTCREATOR_SOURCES/src/qtcreatorplugin.pri)
include($$QTCREATOR_SOURCES/src/plugins/coreplugin/coreplugin.pri)
LIBS += -L$$IDE_PLUGIN_PATH/QtProject

View File

@@ -0,0 +1,9 @@
QTC_PLUGIN_NAME = %PluginName%
QTC_LIB_DEPENDS += \
# nothing here at this time
QTC_PLUGIN_DEPENDS += \
coreplugin
QTC_PLUGIN_RECOMMENDS += \
# optional plugin dependencies. nothing here at this time

View File

@@ -44,6 +44,7 @@ leave room for the Qt 4 target page.
<displaycategory>Libraries</displaycategory>
<files>
<file source="myplugin.pro" target="%PluginName:l%.pro" openproject="true"/>
<file source="myplugin_dependencies.pri" target="%PluginName:l%_dependencies.pri" openeditor="true"/>
<file source="MyPlugin.pluginspec.in" target="%PluginName%.pluginspec.in" openeditor="true"/>
<file source="myplugin_global.h" target="%PluginName:l%_global.%CppHeaderSuffix%" openeditor="true"/>
<file source="mypluginconstants.h" target="%PluginName:l%constants.%CppHeaderSuffix%" openeditor="true"/>