summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-06-22 11:36:46 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-06-23 17:03:21 +0200
commit4ff62aec5727ea8f0ae8e9771dc72d977df98d70 (patch)
treeddfef23d46e01bef8c65c90e03341418f27fa716 /configure.pri
parenta6c67738b0b7d00687187e7c36b7c1aef218bbc5 (diff)
Detect the presence of host node.js
Allows building with or without it. Fixes: QTBUG-83729 Change-Id: I88d784e3230208e1268491c6ae0a4ebf1543aac8 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index 9c7687eea..d3ba9b147 100644
--- a/configure.pri
+++ b/configure.pri
@@ -191,6 +191,19 @@ defineTest(qtConfTest_detectGn) {
return(false)
}
+defineTest(qtConfTest_detectNodeJS) {
+ nodejs = $$qtConfFindInPath("nodejs$$EXE_SUFFIX")
+ isEmpty(nodejs) {
+ qtLog("'nodejs$$EXE_SUFFIX' not found in PATH. Checking for 'node$$EXE_SUFFIX'.")
+ nodejs = $$qtConfFindInPath("node$$EXE_SUFFIX")
+ isEmpty(nodejs) {
+ qtLog("'node$$EXE_SUFFIX' not found in PATH. Giving up.")
+ return(false)
+ }
+ }
+ return(true)
+}
+
defineTest(qtConfTest_detectEmbedded) {
lessThan(QT_MINOR_VERSION, 9) {
cross_compile: return(true)