summaryrefslogtreecommitdiff
path: root/examples/designer/arthurplugin/arthurplugin.pro
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-10-25 17:34:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-05 14:03:02 +0100
commit6e524bb082d8098ba6be5e47aaf9c9df8b575359 (patch)
tree3d0dc17ea3c40af582311dfb525cecc2c111ee75 /examples/designer/arthurplugin/arthurplugin.pro
parentd10d182d0cba2635cfbf85eecb3af4fedcd29c42 (diff)
downloadqttools-6e524bb082d8098ba6be5e47aaf9c9df8b575359.tar.gz
adjust to qt_plugin.prf changes
DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. TEMPLATE, some CONFIG flags and TARGET munging are unnecessary, too. this contains a nasty hack for examples, as we don't want users to use the internal prf files. Change-Id: I9af75f3040fd45d87ec9daea27e00588796ebe81 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'examples/designer/arthurplugin/arthurplugin.pro')
-rw-r--r--examples/designer/arthurplugin/arthurplugin.pro21
1 files changed, 16 insertions, 5 deletions
diff --git a/examples/designer/arthurplugin/arthurplugin.pro b/examples/designer/arthurplugin/arthurplugin.pro
index 4b481440f..d8ffc3b11 100644
--- a/examples/designer/arthurplugin/arthurplugin.pro
+++ b/examples/designer/arthurplugin/arthurplugin.pro
@@ -1,9 +1,21 @@
+QT += designer
+
+QTDIR_build {
+# This is only for the Qt build. Do not use externally. We mean it.
+PLUGIN_TYPE = designer
+load(qt_plugin)
+} else {
+# Public example:
CONFIG += plugin
-QT += designer
TEMPLATE = lib
-TARGET = $$qtLibraryTarget(arthurplugin)
-DESTDIR = $$QT.designer.plugins/designer
+
+TARGET = $$qtLibraryTarget($$TARGET)
+
+target.path = $$[QT_INSTALL_PLUGINS]/designer
+INSTALLS += target
+
+}
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
@@ -41,10 +53,9 @@ HEADERS = \
RESOURCES += arthur_plugin.qrc
# install
-target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.jpg *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/qttools/designer/arthurplugin
-INSTALLS += target sources
+INSTALLS += sources
win32-msvc* {
QMAKE_CFLAGS += /Zm500