summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-06-23 12:37:05 +0200
committerLars Knoll <lars.knoll@qt.io>2016-07-02 06:18:48 +0000
commite9ba9609f1c3797baf8a54ba7213b56dcbe7e1ec (patch)
tree1b86cfd20bae11c3961fc1c7b4770dc430ef398d /configure.pri
parentc167308c5d8d1660ca517c94ce977a8eb440a99a (diff)
Determine the set of modules to skip in qmake
Change-Id: I421f50e5944962eae41700180ee49a916a2a023d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index 5ba2859aa1..073a109ac0 100644
--- a/configure.pri
+++ b/configure.pri
@@ -186,6 +186,27 @@ defineTest(qtConfTest_neon) {
return(false)
}
+defineTest(qtConfTest_skipModules) {
+ skip =
+ ios|tvos {
+ skip += qtdoc qtmacextras qtserialport qtwebkit qtwebkit-examples
+ tvos: skip += qtscript
+ }
+
+ for (m, config.input.skip) {
+ # normalize the command line input
+ m ~= s/^(qt)?/qt/
+ !exists($$_PRO_FILE_PWD_/../$$m) {
+ qtConfAddError("-skip command line argument called with non-existent module '$$m'.")
+ return(false)
+ }
+ skip += $$m
+ }
+ $${1}.value = $$unique(skip)
+ export($${1}.value)
+ return(true)
+}
+
defineTest(qtConfTest_openssl) {
libs = $$getenv("OPENSSL_LIBS")