summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_example_installs.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-12-21 19:36:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-31 15:51:21 +0100
commit2b397f985e4ef6ae5c0571a928bb1320fb048c61 (patch)
tree2ddc370676933da9c57bd104f455c272ee7ebc98 /mkspecs/features/qt_example_installs.prf
parent6c9e2219aca80e4fd426c9364eb93a880e9052ca (diff)
do not actually build examples in production builds
-developer-build enables an actual build of examples, based on the assumption that developers want to test it (it can be still disabled with -nomake examples). regular users otoh want only the examples sources installed. Change-Id: Ifc6a108099929175a3960480802b271a758fdd38 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'mkspecs/features/qt_example_installs.prf')
-rw-r--r--mkspecs/features/qt_example_installs.prf8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkspecs/features/qt_example_installs.prf b/mkspecs/features/qt_example_installs.prf
index 5a87eeba64..ccb19fcbd4 100644
--- a/mkspecs/features/qt_example_installs.prf
+++ b/mkspecs/features/qt_example_installs.prf
@@ -92,4 +92,12 @@ probase = $$relative_path($$_PRO_FILE_PWD_, $$dirname(_QMAKE_CONF_)/examples)
allfiles -= doc
!isEmpty(allfiles): warning("remaining files in $$_PRO_FILE_PWD_: $$allfiles")
}
+
+ # Do not actually build the examples in production builds
+ !equals(TEMPLATE, subdirs):!contains(QT_CONFIG, private_tests) {
+ TEMPLATE = aux
+ CONFIG -= have_target qt staticlib dll
+ SOURCES =
+ INSTALLS -= target
+ }
}