diff options
Diffstat (limited to 'configure.pri')
-rw-r--r-- | configure.pri | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri index c7ce83bb3..549b1efd0 100644 --- a/configure.pri +++ b/configure.pri @@ -116,6 +116,16 @@ defineTest(qtConfTest_detectNinja) { return(false) } +defineTest(qtConfTest_detectProtoc) { + protoc = $$qtConfFindInPath("protoc") + isEmpty(protoc) { + qtLog("Optional protoc could not be found.") + return(false) + } + qtLog("Found protoc from path: $$protoc") + return(true) +} + defineTest(qtConfTest_detectGn) { gn = $$qtConfFindInPath("gn$$EXE_SUFFIX") !isEmpty(gn) { @@ -136,3 +146,13 @@ defineTest(qtConfTest_embedded) { $$qtConfEvaluate("features.cross_compile"): return(true) return(false) } + +defineTest(qtConfTest_detectIcuuc) { + pkgConfig = $$first($$list($$pkgConfigExecutable())) + !isEmpty(pkgConfig) { + qtRunLoggedCommand("$$pkgConfig --libs --static libxml-2.0", xmllibs) + contains(xmllibs,".*-licuuc.*"):return(true) + qtLog("System libxml2 is not configured with ICU") + } + return(false) +} |