aboutsummaryrefslogtreecommitdiffstats
path: root/share/share.pro
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-02-08 10:57:10 +0100
committerhjk <hjk@qt.io>2017-02-10 13:30:53 +0000
commit46e4ecbd4404c395d94a410f5001d4427d712c01 (patch)
treeda5904d45e60e32c875ab1ea57830918b57b7a84 /share/share.pro
parentd864bfc52947dbd49257b4d7f2a149755aaccc69 (diff)
Make Creator compile without Qt tools in some configuration
Needing to compile Qt tools is a bit of a chore (and at some point a diskspace issue) when building/starting Creator as sanity check for comparing different compiler optimization settings. This is not an officially supported configuration. Change-Id: I628e33eb7137f09ecfebbd27453de548bac2fde5 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'share/share.pro')
-rw-r--r--share/share.pro19
1 files changed, 17 insertions, 2 deletions
diff --git a/share/share.pro b/share/share.pro
index 0ea55635f0..3fe6c8b32c 100644
--- a/share/share.pro
+++ b/share/share.pro
@@ -1,5 +1,20 @@
TEMPLATE = subdirs
-SUBDIRS = qtcreator/static.pro \
- qtcreator/translations
+SUBDIRS = qtcreator/static.pro
+
+defineTest(hasLupdate) {
+ cmd = $$eval(QT_TOOL.lupdate.binary)
+ isEmpty(cmd) {
+ cmd = $$[QT_HOST_BINS]/lupdate
+ contains(QMAKE_HOST.os, Windows):exists($${cmd}.exe): return(true)
+ contains(QMAKE_HOST.os, Darwin):exists($${cmd}.app/Contents/MacOS/lupdate): return(true)
+ exists($$cmd): return(true)
+ } else {
+ exists($$last(cmd)): return(true)
+ }
+ return(false)
+}
+
+hasLupdate(): SUBDIRS += qtcreator/translations
+
DISTFILES += share.qbs \
../src/share/share.qbs