diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2012-10-25 17:34:15 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-05 14:03:02 +0100 |
commit | 6e524bb082d8098ba6be5e47aaf9c9df8b575359 (patch) | |
tree | 3d0dc17ea3c40af582311dfb525cecc2c111ee75 | |
parent | d10d182d0cba2635cfbf85eecb3af4fedcd29c42 (diff) |
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>
9 files changed, 88 insertions, 42 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 diff --git a/examples/designer/containerextension/containerextension.pro b/examples/designer/containerextension/containerextension.pro index 86962092d..a14671226 100644 --- a/examples/designer/containerextension/containerextension.pro +++ b/examples/designer/containerextension/containerextension.pro @@ -1,12 +1,25 @@ +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: + #! [0] TEMPLATE = lib +CONFIG += plugin #! [0] + TARGET = $$qtLibraryTarget($$TARGET) + +target.path = $$[QT_INSTALL_PLUGINS]/designer +INSTALLS += target + +} + #! [1] -CONFIG += plugin QT += widgets designer #! [1] -DESTDIR = $$QT.designer.plugins/designer #! [2] HEADERS += multipagewidget.h \ @@ -23,8 +36,7 @@ OTHER_FILES += multipagewidget.json #! [2] # install -target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qttools/designer/containerextension -INSTALLS += target sources +INSTALLS += sources diff --git a/examples/designer/customwidgetplugin/customwidgetplugin.pro b/examples/designer/customwidgetplugin/customwidgetplugin.pro index 1ff6aa7e1..db6538664 100644 --- a/examples/designer/customwidgetplugin/customwidgetplugin.pro +++ b/examples/designer/customwidgetplugin/customwidgetplugin.pro @@ -1,12 +1,25 @@ -#! [0] #! [1] -CONFIG += plugin +#! [0] QT += widgets designer #! [0] -TARGET = $$qtLibraryTarget($$TARGET) + +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: + #! [2] +CONFIG += plugin TEMPLATE = lib -#! [1] #! [2] -DESTDIR = $$QT.designer.plugins/designer +#! [2] + +TARGET = $$qtLibraryTarget($$TARGET) + +target.path = $$[QT_INSTALL_PLUGINS]/designer +INSTALLS += target + +} #! [3] HEADERS = analogclock.h \ @@ -17,7 +30,6 @@ OTHER_FILES += analogclock.json #! [3] # install -target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qttools/designer/customwidgetplugin -INSTALLS += target sources +INSTALLS += sources diff --git a/examples/designer/taskmenuextension/taskmenuextension.pro b/examples/designer/taskmenuextension/taskmenuextension.pro index b66318eed..900a05cf0 100644 --- a/examples/designer/taskmenuextension/taskmenuextension.pro +++ b/examples/designer/taskmenuextension/taskmenuextension.pro @@ -1,12 +1,25 @@ #! [0] -TEMPLATE = lib +QT += widgets designer #! [0] -TARGET = $$qtLibraryTarget($$TARGET) + +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: + #! [1] +TEMPLATE = lib CONFIG += plugin -QT += widgets designer #! [1] -DESTDIR = $$QT.designer.plugins/designer + +TARGET = $$qtLibraryTarget($$TARGET) + +target.path = $$[QT_INSTALL_PLUGINS]/designer +INSTALLS += target + +} #! [2] HEADERS += tictactoe.h \ @@ -21,7 +34,6 @@ OTHER_FILES += tictactoe.json #! [2] # install -target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qttools/designer/taskmenuextension -INSTALLS += target sources +INSTALLS += sources diff --git a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro index 09342db50..68f4ca49b 100644 --- a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro +++ b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro @@ -1,12 +1,24 @@ #! [0] -CONFIG += plugin QT += widgets designer #! [0] + +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: + TARGET = $$qtLibraryTarget($$TARGET) #! [1] +CONFIG += plugin TEMPLATE = lib #! [1] -DESTDIR = $$QT.designer.plugins/designer + +target.path = $$[QT_INSTALL_PLUGINS]/designer +INSTALLS += target + +} #! [2] HEADERS = worldtimeclock.h \ @@ -16,7 +28,6 @@ SOURCES = worldtimeclock.cpp \ #! [2] # install -target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qttools/designer/worldtimeclockplugin -INSTALLS += target sources +INSTALLS += sources diff --git a/src/designer/src/plugins/activeqt/activeqt.pro b/src/designer/src/plugins/activeqt/activeqt.pro index ebe19e6a0..a94b67105 100644 --- a/src/designer/src/plugins/activeqt/activeqt.pro +++ b/src/designer/src/plugins/activeqt/activeqt.pro @@ -1,7 +1,5 @@ -TEMPLATE = lib TARGET = qaxwidget -DESTDIR = $$QT.designer.plugins/designer -CONFIG += qaxcontainer qt warn_on plugin +CONFIG += qaxcontainer QT += widgets designer-private include(../plugins.pri) diff --git a/src/designer/src/plugins/plugins.pri b/src/designer/src/plugins/plugins.pri index a803d9454..79d10952c 100644 --- a/src/designer/src/plugins/plugins.pri +++ b/src/designer/src/plugins/plugins.pri @@ -1,10 +1,5 @@ QT += designer -!build_pass:contains(QT_CONFIG, build_all): CONFIG += release -DESTDIR = $$QT.designer.plugins/designer -contains(TEMPLATE, ".*lib"):TARGET = $$qtLibraryTarget($$TARGET) -# install -target.path = $$[QT_INSTALL_PLUGINS]/designer -INSTALLS += target - -INCLUDEPATH += $$QT.designer.includes +PLUGIN_TYPE = designer +CNOFIG += tool_plugin +load(qt_plugin) diff --git a/src/designer/src/plugins/qwebview/qwebview.pro b/src/designer/src/plugins/qwebview/qwebview.pro index ad2501026..45e641359 100644 --- a/src/designer/src/plugins/qwebview/qwebview.pro +++ b/src/designer/src/plugins/qwebview/qwebview.pro @@ -1,6 +1,4 @@ -TEMPLATE = lib TARGET = qwebview -CONFIG += qt warn_on plugin QT += widgets webkitwidgets include(../plugins.pri) diff --git a/src/designer/src/plugins/tools/view3d/view3d.pro b/src/designer/src/plugins/tools/view3d/view3d.pro index 7882c476e..a1687dc10 100644 --- a/src/designer/src/plugins/tools/view3d/view3d.pro +++ b/src/designer/src/plugins/tools/view3d/view3d.pro @@ -1,7 +1,4 @@ - -TEMPLATE = lib QT += opengl widgets -CONFIG += qt warn_on plugin TARGET = view3d include(../../plugins.pri) |