diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2012-01-03 09:11:05 +0200 |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 12:25:10 +0200 |
commit | 1881310876d62fa12a1724a12b70f30ccd9633bb (patch) | |
tree | 537bb68dd662fee654014c90ee16e670763d3c2d | |
parent | 99c0b3427bed90e1c21924ae974ff86cad1ba0c0 (diff) |
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.
4 files changed, 24 insertions, 4 deletions
diff --git a/examples/designer/containerextension/containerextension.pro b/examples/designer/containerextension/containerextension.pro index 8183f2da2b..18b68a5f1b 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 dc9281d911..399ad50bce 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 d0e76e8bf3..56b8f02c97 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 44500cb40d..b516cdabab 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 |