diff options
Diffstat (limited to 'examples')
5 files changed, 84 insertions, 26 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 |