summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2016-10-21 16:41:08 +0200
committerMichal Klocek <michal.klocek@qt.io>2016-11-30 10:41:50 +0000
commit15a38cb07539dce2b6f7e9008d79e2b7335d3289 (patch)
tree8900444e4aff22619864a6ab07eed81ae995dfdd /configure.pri
parentf2f20462e146508868d488f9bc370c53e000d2d9 (diff)
Add support for system based ninja
Adds system-ninja feature, which is enabled if ninja is found in system path. Change-Id: Icc58bc252d67a27f80c139349be28f9fd239108a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
new file mode 100644
index 00000000..dee7847b
--- /dev/null
+++ b/configure.pri
@@ -0,0 +1,12 @@
+
+defineTest(qtConfTest_detectNinja) {
+ ninja = $$qtConfFindInPath("ninja")
+ !isEmpty(ninja) {
+ qtLog("Found ninja from path: $$ninja")
+ qtRunLoggedCommand("$$ninja --version", version)|return(false)
+ contains(version, "1.*"): return(true)
+ qtLog("Ninja version too old")
+ }
+ qtLog("Building own ninja")
+ return(false)
+}