From aeb036ed8715d0c099d3dca87f7def4dbaf8e9b4 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 27 Nov 2012 20:40:16 +0100 Subject: centralize and fixup example sources install targets it's confusing for the users if the examples' project files contain code to install their own sources. also, this constitutes an enormous code duplication, and lots of mistakes. consequently, automate it. more or less as a side effect, this also removes the entirely meaningless target installs in subdirs projects. Task-number: QTBUG-28184 Change-Id: I9fc1367a06db9e2c46aeb67d68729a4f67163ef9 Reviewed-by: hjk --- examples/qtestlib/qtestlib.pro | 6 ------ examples/qtestlib/tutorial1/tutorial1.pro | 4 +--- examples/qtestlib/tutorial2/tutorial2.pro | 4 +--- examples/qtestlib/tutorial3/tutorial3.pro | 4 +--- examples/qtestlib/tutorial4/tutorial4.pro | 4 +--- examples/qtestlib/tutorial5/tutorial5.pro | 4 +--- 6 files changed, 5 insertions(+), 21 deletions(-) (limited to 'examples/qtestlib') diff --git a/examples/qtestlib/qtestlib.pro b/examples/qtestlib/qtestlib.pro index 8addbcba63..383e5aa9e3 100644 --- a/examples/qtestlib/qtestlib.pro +++ b/examples/qtestlib/qtestlib.pro @@ -1,8 +1,2 @@ TEMPLATE = subdirs SUBDIRS = tutorial1 tutorial2 tutorial3 tutorial4 tutorial5 - -# install -target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib -sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS qtestlib.pro README -sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib -INSTALLS += target sources diff --git a/examples/qtestlib/tutorial1/tutorial1.pro b/examples/qtestlib/tutorial1/tutorial1.pro index 016de61d7b..8e77a9c5ff 100644 --- a/examples/qtestlib/tutorial1/tutorial1.pro +++ b/examples/qtestlib/tutorial1/tutorial1.pro @@ -3,8 +3,6 @@ QT += testlib # install target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1 -sources.files = $$SOURCES *.pro -sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1 -INSTALLS += target sources +INSTALLS += target QT += widgets diff --git a/examples/qtestlib/tutorial2/tutorial2.pro b/examples/qtestlib/tutorial2/tutorial2.pro index b8f73a9b52..58e70d4508 100644 --- a/examples/qtestlib/tutorial2/tutorial2.pro +++ b/examples/qtestlib/tutorial2/tutorial2.pro @@ -3,8 +3,6 @@ QT += testlib # install target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial2 -sources.files = $$SOURCES *.pro -sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial2 -INSTALLS += target sources +INSTALLS += target QT += widgets diff --git a/examples/qtestlib/tutorial3/tutorial3.pro b/examples/qtestlib/tutorial3/tutorial3.pro index 18183226ef..918dbf1187 100644 --- a/examples/qtestlib/tutorial3/tutorial3.pro +++ b/examples/qtestlib/tutorial3/tutorial3.pro @@ -3,8 +3,6 @@ QT += testlib # install target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial3 -sources.files = $$SOURCES *.pro -sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial3 -INSTALLS += target sources +INSTALLS += target QT += widgets diff --git a/examples/qtestlib/tutorial4/tutorial4.pro b/examples/qtestlib/tutorial4/tutorial4.pro index 6c82aa6500..f7b40dd4ca 100644 --- a/examples/qtestlib/tutorial4/tutorial4.pro +++ b/examples/qtestlib/tutorial4/tutorial4.pro @@ -3,8 +3,6 @@ QT += testlib # install target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial4 -sources.files = $$SOURCES *.pro -sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial4 -INSTALLS += target sources +INSTALLS += target QT += widgets diff --git a/examples/qtestlib/tutorial5/tutorial5.pro b/examples/qtestlib/tutorial5/tutorial5.pro index 3120c40912..facb21ea14 100644 --- a/examples/qtestlib/tutorial5/tutorial5.pro +++ b/examples/qtestlib/tutorial5/tutorial5.pro @@ -3,8 +3,6 @@ QT += testlib # install target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial5 -sources.files = $$SOURCES *.pro -sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial5 -INSTALLS += target sources +INSTALLS += target QT += widgets -- cgit v1.2.3