forked from qt-creator/qt-creator
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:
@@ -4,7 +4,5 @@
|
||||
<license>%License%</license>
|
||||
<description>%Description%</description>
|
||||
<url>%URL%</url>
|
||||
<dependencyList>
|
||||
<dependency name=\"Core\" version=\"$$QTCREATOR_VERSION\"/>
|
||||
</dependencyList>
|
||||
$$dependencyList
|
||||
</plugin>
|
||||
|
@@ -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
|
||||
|
@@ -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
|
@@ -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"/>
|
||||
|
Reference in New Issue
Block a user