From 1881310876d62fa12a1724a12b70f30ccd9633bb Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 3 Jan 2012 09:11:05 +0200 Subject: Designer example plugins build behaviour on debug and release Change the building of designer example plugins so, that only release version is build when trying to build both. Designer itself is similarly build only as release version and it won't load debug plugins. --- examples/designer/containerextension/containerextension.pro | 9 +++++++-- examples/designer/customwidgetplugin/customwidgetplugin.pro | 5 +++++ examples/designer/taskmenuextension/taskmenuextension.pro | 9 +++++++-- examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro | 5 +++++ 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/examples/designer/containerextension/containerextension.pro b/examples/designer/containerextension/containerextension.pro index 8183f2d..18b68a5 100644 --- a/examples/designer/containerextension/containerextension.pro +++ b/examples/designer/containerextension/containerextension.pro @@ -1,9 +1,9 @@ #! [0] -TEMPLATE = lib +CONFIG += designer plugin #! [0] TARGET = $$qtLibraryTarget($$TARGET) #! [1] -CONFIG += designer plugin +TEMPLATE = lib #! [1] QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer @@ -19,6 +19,11 @@ SOURCES += multipagewidget.cpp \ multipagewidgetextensionfactory.cpp #! [2] +build_all:!build_pass { + CONFIG -= build_all + CONFIG += release +} + # install target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro diff --git a/examples/designer/customwidgetplugin/customwidgetplugin.pro b/examples/designer/customwidgetplugin/customwidgetplugin.pro index dc9281d..399ad50 100644 --- a/examples/designer/customwidgetplugin/customwidgetplugin.pro +++ b/examples/designer/customwidgetplugin/customwidgetplugin.pro @@ -14,6 +14,11 @@ SOURCES = analogclock.cpp \ customwidgetplugin.cpp #! [3] +build_all:!build_pass { + CONFIG -= build_all + CONFIG += release +} + # install target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro diff --git a/examples/designer/taskmenuextension/taskmenuextension.pro b/examples/designer/taskmenuextension/taskmenuextension.pro index d0e76e8..56b8f02 100644 --- a/examples/designer/taskmenuextension/taskmenuextension.pro +++ b/examples/designer/taskmenuextension/taskmenuextension.pro @@ -1,9 +1,9 @@ #! [0] -TEMPLATE = lib +CONFIG += designer plugin #! [0] TARGET = $$qtLibraryTarget($$TARGET) #! [1] -CONFIG += designer plugin +TEMPLATE = lib #! [1] QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer @@ -18,6 +18,11 @@ SOURCES += tictactoe.cpp \ tictactoetaskmenu.cpp #! [2] +build_all:!build_pass { + CONFIG -= build_all + CONFIG += release +} + # install target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro diff --git a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro index 44500cb..b516cda 100644 --- a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro +++ b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro @@ -14,6 +14,11 @@ SOURCES = worldtimeclock.cpp \ worldtimeclockplugin.cpp #! [2] +build_all:!build_pass { + CONFIG -= build_all + CONFIG += release +} + # install target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro -- cgit v0.12