2011-10-10 08:32:07 +02:00
|
|
|
#! [1]
|
|
|
|
DEFINES += EXAMPLE_LIBRARY
|
|
|
|
#! [1]
|
|
|
|
|
|
|
|
# Example files
|
|
|
|
|
|
|
|
#! [2]
|
|
|
|
SOURCES += exampleplugin.cpp
|
|
|
|
|
2014-03-31 11:04:17 +02:00
|
|
|
HEADERS += exampleplugin.h \
|
|
|
|
example_global.h \
|
2011-10-10 08:32:07 +02:00
|
|
|
exampleconstants.h
|
|
|
|
#! [2]
|
|
|
|
|
|
|
|
# Qt Creator linking
|
|
|
|
|
|
|
|
#! [3]
|
|
|
|
## set the QTC_SOURCE environment variable to override the setting here
|
|
|
|
QTCREATOR_SOURCES = $$(QTC_SOURCE)
|
|
|
|
isEmpty(QTCREATOR_SOURCES):QTCREATOR_SOURCES=/Users/example/qtcreator-src
|
|
|
|
|
|
|
|
## set the QTC_BUILD environment variable to override the setting here
|
|
|
|
IDE_BUILD_TREE = $$(QTC_BUILD)
|
|
|
|
isEmpty(IDE_BUILD_TREE):IDE_BUILD_TREE=/Users/example/qtcreator-build
|
|
|
|
#! [3]
|
|
|
|
|
|
|
|
#! [4]
|
|
|
|
## uncomment to build plugin into user config directory
|
|
|
|
## <localappdata>/plugins/<ideversion>
|
|
|
|
## where <localappdata> is e.g.
|
2012-10-09 12:21:04 +02:00
|
|
|
## "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later
|
2012-11-28 19:54:34 +01:00
|
|
|
## "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux
|
2012-10-09 12:21:04 +02:00
|
|
|
## "~/Library/Application Support/QtProject/Qt Creator" on Mac
|
2011-10-10 08:32:07 +02:00
|
|
|
# USE_USER_DESTDIR = yes
|
|
|
|
#! [4]
|
|
|
|
|
2014-05-25 08:45:19 +03:00
|
|
|
#! [5]
|
2014-03-31 11:04:17 +02:00
|
|
|
###### If the plugin can be depended upon by other plugins, this code needs to be outsourced to
|
|
|
|
###### <dirname>_dependencies.pri, where <dirname> is the name of the directory containing the
|
|
|
|
###### plugin's sources.
|
|
|
|
|
|
|
|
QTC_PLUGIN_NAME = Example
|
|
|
|
QTC_LIB_DEPENDS += \
|
|
|
|
# nothing here at this time
|
|
|
|
|
|
|
|
QTC_PLUGIN_DEPENDS += \
|
|
|
|
coreplugin
|
|
|
|
|
|
|
|
QTC_PLUGIN_RECOMMENDS += \
|
|
|
|
# optional plugin dependencies. nothing here at this time
|
|
|
|
|
|
|
|
###### End _dependencies.pri contents ######
|
2014-05-25 08:45:19 +03:00
|
|
|
#! [5]
|
2014-03-31 11:04:17 +02:00
|
|
|
|
2014-05-25 08:45:19 +03:00
|
|
|
#![6]
|
2011-10-10 08:32:07 +02:00
|
|
|
include($$QTCREATOR_SOURCES/src/qtcreatorplugin.pri)
|
|
|
|
|
2014-05-25 08:45:19 +03:00
|
|
|
#![6]
|
2011-10-10 08:32:07 +02:00
|
|
|
|