summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2016-10-21 19:14:16 +0200
committerMichal Klocek <michal.klocek@qt.io>2016-12-08 13:56:12 +0000
commit0c6c48da2ad5c60f5404636290eb82f492c2a1a8 (patch)
tree219a3d6ac11ce07cf3873181fc0b4dd285b52970 /configure.pri
parent72242c614378a43c4563c05678d8e46d6fcbaa8d (diff)
Add gn bootstrap to build system
Bootstraps gn wihout rebuild. Change-Id: I09ee4d6b6f458f16f0d9ac18433823153ab75995 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
index dee7847b..e3200120 100644
--- a/configure.pri
+++ b/configure.pri
@@ -10,3 +10,15 @@ defineTest(qtConfTest_detectNinja) {
qtLog("Building own ninja")
return(false)
}
+
+defineTest(qtConfTest_detectGn) {
+ gn = $$qtConfFindInPath("gn")
+ !isEmpty(gn) {
+ qtRunLoggedCommand("$$gn --version", version)|return(false)
+ #accept all for now
+ contains(version, ".*"): return(true)
+ qtLog("Gn version too old")
+ }
+ qtLog("Building own gn")
+ return(false)
+}